telegram-bot-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@telegram-bot-mcpsend a message 'Reminder: meeting at 3pm' to my Telegram"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Telegram Bot MCP Server
An MCP (Model Context Protocol) server for sending and receiving Telegram messages via a bot. It allows AI assistants to interact directly with you through Telegram by sending messages, reading recent messages, and sending photos.
Features
This MCP server provides the following tools:
telegram_send_message: Send a text message to your configured Telegram chat.telegram_get_messages: Retrieve recent messages sent to the bot (in-memory cache of up to 100 recent messages).telegram_send_photo: Send an image file (via local absolute path) to your configured Telegram chat, with an optional caption.
Related MCP server: telegram-mcp
Prerequisites
You will need a Telegram Bot token and your Chat ID:
Create a bot using @BotFather on Telegram and get the Bot Token.
Start a conversation with your bot.
Find your Chat ID (you can use bots like
@userinfobotto find your ID).
Usage
Running via npx (Recommended)
You can run this MCP server directly using npx without needing to clone the repository. This is the easiest way to integrate it into your MCP clients like Claude Desktop or Cursor.
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"telegram-bot-mcp"
],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_CHAT_ID": "your_chat_id_here"
}
}
}
}(Note: If the package isn't published to npm yet, you can use the github repo path or a local absolute path to the build/index.js file instead)
Cursor / Other MCP Clients
Go to your MCP configuration settings in the client.
Add a new server.
Type:
stdioCommand:
npx -y telegram-bot-mcpMake sure to provide the required environment variables:
TELEGRAM_BOT_TOKENTELEGRAM_CHAT_ID
Environment Variables
Variable | Description | Required |
| Your Telegram Bot token from @BotFather | Yes |
| Your personal Telegram Chat ID | Yes |
| Optional proxy URL (e.g. | No |
Local Development
If you want to clone the repo and run it locally:
# Clone the repository
git clone https://github.com/yourusername/telegram-bot-mcp.git
cd telegram-bot-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Start the server (ensure you have set the env vars)
TELEGRAM_BOT_TOKEN=your_token TELEGRAM_CHAT_ID=your_id npm startPublishing to npm (npx support)
If you haven't published this package yet, you can do so to enable the npx usage globally. To publish:
Make sure you are logged in to npm:
npm loginRun
npm publish
After publishing, anyone can use npx -y telegram-bot-mcp to use your MCP server.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that enables interaction with Telegram messaging platform, allowing users to retrieve unread messages, fetch entity information, and send messages through natural language interfaces.610
- Alicense-qualityCmaintenanceAn MCP server that enables interaction with Telegram to send, read, and search messages across chats and dialogs. It supports waiting for incoming messages and retrieving conversation history through natural language commands.104MIT
- AlicenseAqualityCmaintenanceMCP server that exposes a Telegram bot, enabling sending messages and retrieving updates through natural language.3MIT
- FlicenseAqualityCmaintenanceAn MCP server for interacting with Telegram bots and channels using the Telegraf library. It allows AI agents to send messages, manage channels, forward content, and intelligently respond to Telegram conversations.5458
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tingkai-c/telegram-bot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server