MCP server for Telegram - lets AI agents communicate with users via Telegram
Project description
Telegram MCP
MCP server that lets AI agents communicate with users via Telegram.
Installation
pip install telegram-mcp
Configuration
Add to your MCP client config:
{
"telegram": {
"command": "telegram-mcp",
"env": {
"TELEGRAM_BOT_TOKEN": "your-bot-token",
"TELEGRAM_CHAT_ID": "your-chat-id"
}
}
}
Get Your Credentials
- Create a bot via @BotFather → copy the token
- Message your bot, then get your chat ID from @userinfobot
Tools
interact
Send a message to the user via Telegram.
# Status update
interact(message="Working on it...")
# Ask a question (blocks until user replies)
result = interact(message="What's next?", wait_for_reply=True)
# Yes/No with buttons
result = interact(message="Delete?", choices=["Yes", "No"], wait_for_reply=True)
get_messages
Get recent conversation history.
result = get_messages(limit=10)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
telegram_mcp-0.2.0.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file telegram_mcp-0.2.0.tar.gz.
File metadata
- Download URL: telegram_mcp-0.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a0ff15972cbb7dbade5fcf34e6590ee5c53e1e191eee35d65fddabe5466ee3
|
|
| MD5 |
4ac0744801d8228d75b9afb83337ae3c
|
|
| BLAKE2b-256 |
676d787b911dac91febdd7051790c41af610aa94f8192b4fd66a8cf87074eff8
|
File details
Details for the file telegram_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: telegram_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0c17d0e28c7920cc64dcaa2f18317ff4f0bc86f12dd41ef0fc5c80c5565563f
|
|
| MD5 |
a5b3ad461b155e2d3ccd08271d994beb
|
|
| BLAKE2b-256 |
39a0c9cfac87481aa6f9843bd60f706277f62fc1f3fec82751b218699f233deb
|