home / mcp / telegram mcp server
mcp server for telegram
Configuration
View docs{
"mcpServers": {
"bobidk91-ops-telegram-mcp-server": {
"url": "https://telegram-mcp-server-production.up.railway.app",
"headers": {
"NODE_ENV": "production",
"WORDPRESS_URL": "YOUR_WORDPRESS_URL",
"PEXELS_API_KEY": "YOUR_PEXELS_API_KEY",
"TELEGRAM_BOT_TOKEN": "YOUR_BOT_TOKEN",
"WORDPRESS_USERNAME": "YOUR_WORDPRESS_USERNAME",
"TELEGRAM_CHANNEL_ID": "YOUR_CHANNEL_ID",
"WORDPRESS_APPLICATION_PASSWORD": "YOUR_WORDPRESS_APP_PASSWORD"
}
}
}
}You can run a unified MCP (Model Context Protocol) server that exposes Telegram, Pexels, and WordPress interactions via a single HTTP API. This server lets you send messages, fetch media, manage WordPress content, and perform JSON-RPC 2.0 operations from MCP clients with ease, all while using a RESTful HTTP endpoint for MCP calls and an integrated Telegram bot channel workflow.
You interact with the server through an MCP client by calling the available tools exposed over the HTTP API. The server provides a comprehensive set of endpoints to send messages to Telegram, fetch and curate media from Pexels, and manage WordPress content such as posts, pages, media, users, categories, and more. Use the MCP client to invoke the methods by name and pass the required arguments as described in the tool reference. The HTTP endpoint accepts MCP JSON-RPC 2.0 requests, and you can use REST-style calls to list available tools.
Prerequisites: install Node.js and npm on your machine or server. You will also need an MCP client to send JSON-RPC 2.0 requests to the server and the following API keys configured in your environment.
Step-by-step commands to set up locally:
Configuration and environment variables you need to run this server locally or in the cloud are listed below. Prepare these values in your environment before starting the server.
Security best practices include keeping tokens and API keys secure, using secure channels (HTTPS) for all MCP calls, and rotating credentials regularly.
If you deploy to Railway or another hosting service, ensure the required environment variables are set in the deployment environment.
Send a text message to a Telegram channel or chat.
Send a photo to Telegram.
Send a video to Telegram.
Send a document to Telegram.
Create and send a poll in Telegram.
Send a reaction to a Telegram message.
Edit an existing Telegram message.
Delete a Telegram message.
Pin a Telegram message in the chat.
Unpin a Telegram message.
Retrieve information about a Telegram channel.
Retrieve channel statistics for Telegram.
Search photos on Pexels by query.
Retrieve a specific photo by ID from Pexels.
Get curator-selected photos from Pexels.
Search videos on Pexels by query.
Fetch popular videos from Pexels.
Fetch a list of WordPress posts.
Get a WordPress post by ID.
Create a new WordPress post.
Update an existing WordPress post.
Delete a WordPress post.
Fetch a list of WordPress pages.
Get a WordPress page by ID.
Create a new WordPress page.
Update an existing WordPress page.
Delete a WordPress page.
Fetch a list of WordPress media items.
Get a WordPress media item by ID.
Upload a new WordPress media item.
Update a WordPress media item.
Delete a WordPress media item.
Fetch WordPress categories.
Get a WordPress category by ID.
Create a new WordPress category.
Update a WordPress category.
Delete a WordPress category.
Fetch WordPress tags.
Get a WordPress tag by ID.
Create a new WordPress tag.
Update a WordPress tag.
Delete a WordPress tag.
Fetch WordPress users.
Get a WordPress user by ID.
Create a new WordPress user.
Update a WordPress user.
Delete a WordPress user.
Fetch WordPress comments.
Get a WordPress comment by ID.
Create a new WordPress comment.
Update a WordPress comment.
Delete a WordPress comment.
Fetch WordPress site information.
Fetch WordPress site settings.
Search WordPress content.
Test the connection to WordPress.