Telegram Bot MCP
Provides tools for interacting with the Telegram Bot API, enabling AI agents to manage chats, messages, forum topics, and delete messages in Telegram.
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 MCPdelete message 42 from chat -1001234567890"
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
A FastMCP server that exposes Telegram Bot API operations as Model Context Protocol (MCP) tools. The server uses aiogram for Telegram Bot API calls and pydantic-settings for environment-based configuration.
Requirements
Python 3.10 or newer
A Telegram bot token from BotFather
An MCP-compatible client that can connect over
streamable-http,sse, orstdio
Related MCP server: telegram-mcp-kit
Installation
Clone or download this project.
Install dependencies.
pip install -r requirements.txtCreate your environment file.
cp .env.example .envOn Windows PowerShell:
Copy-Item .env.example .envEdit
.envas needed for server transport, logging, and safety limits. (logging and safety limits currently not working)
Running the server
Run from the project root:
python telegram_bot_mcp.pyThe default transport is streamable-http on 127.0.0.1:51000.
You can override transport, host, and port with command-line arguments:
python telegram_bot_mcp.py --transport streamable-http --host 127.0.0.1 --port 51000Supported transport values are:
streamable-httpssestdio
MCP client configuration example
For a client that launches the server with a command, use a configuration similar to:
{
"mcpServers": {
"telegram-bot-mcp": {
"command": "python",
"args": ["telegram_bot_mcp.py", "--transport", "stdio"]
}
}
}For HTTP-based clients, start the server with streamable-http and configure the client to connect to:
http://127.0.0.1:51000/mcpSupported MCP tools
Server tools
Tool | Description |
| Returns basic MCP server status, server name, and active transport. |
User and bot identity tools
Tool | Parameters | Description |
|
| Returns sanitized identity information for the supplied Telegram bot token. |
Chat tools
Tool | Parameters | Description |
|
| Returns sanitized Telegram chat information for a chat ID or username. Note: the tool name currently uses |
|
| Deletes a forum topic from a Telegram forum supergroup. Requires |
Message tools
Tool | Parameters | Description |
|
| Deletes one Telegram message from a conversation. |
|
| Deletes multiple Telegram messages by explicit message IDs. Limited to 100 message IDs per call. |
|
| Best-effort deletion of every message ID in an inclusive range. Requires |
Telegram Bot API limitations
Telegram bots can only perform actions allowed by the Telegram Bot API and the bot's permissions in each chat. In particular:
The bot must be a member of the target chat.
Administrative permissions may be required for deleting messages or forum topics.
The Telegram Bot API cannot enumerate an entire chat history for deletion.
Message deletion is best-effort and may fail for messages the bot is not allowed to delete.
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
- AlicenseBqualityCmaintenanceFull-featured Telegram Bot API server for MCP (Model Context Protocol). 174 tools covering the entire Bot API — messages, chats, stickers, payments, forums, stories, and more.100327MIT
- AlicenseAqualityDmaintenanceExposes the Telegram Bot API as tools for Claude Code or any MCP client, enabling message sending, chat management, file handling, and bot information retrieval.201MIT
- AlicenseAqualityCmaintenanceAn MCP server that lets an LLM send messages, photos, and documents to Telegram through a bot. Provides four tools: get_me, send_message, send_photo, and send_document.4MIT
- AlicenseAqualityDmaintenanceExposes the Telegram Bot API as tools for MCP clients, enabling sending messages, photos, polls, and more via a Telegram bot.11MIT
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
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/pixellover1433/TelegramBotMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server