About mcp-telegram-bot
mcp-telegram-bot exposes a Telegram bot through an MCP server. It is for MCP clients that need to send messages, check bot details, or retrieve recent updates.
Key features
- 01Send messages to Telegram chats
- 02Retrieve bot information
- 03Get recent Telegram updates
- 04Read bot status resource
Use cases
- 01Send a message to a Telegram chat
- 02Check the bot's information
- 03Retrieve recent updates from Telegram
MCP support
Exposes tools for sending messages, retrieving bot information and updates, plus a bot status resource to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
3Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | The message text to send. |
| chat_id | string | Yes | The Telegram chat ID to send the message to. Can be a numeric ID or username with @ prefix. |
Details
From the project READMEmcp-telegram-bot
MCP server that exposes a Telegram bot
Install
pip install mcp-telegram-bot
Setup
- Create a Telegram bot by talking to @BotFather on Telegram
- Get your bot token
- Set the
TELEGRAM_BOT_TOKENenvironment variable
Usage
export TELELEGRAM_BOT_TOKEN="your-bot-token-here"
mcp-telegram-bot
MCP Tools
- send_message: Send a message to a Telegram chat
- get_me: Get bot information
- get_updates: Get recent updates from Telegram
MCP Resources
- bot://status: Get bot status
mcp-name: io.github.daedalus/mcp-telegram-bot
Development
git clone https://github.com/daedalus/mcp-telegram-bot.git
cd mcp-telegram-bot
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.