Telegram Topics MCP Server
Provides tools for interacting with Telegram supergroup forum topics, including sending messages to specific topic threads, creating, editing, closing, and reopening topics, and listing registered topic mappings.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
📡 Telegram Topics MCP Server
Official Model Context Protocol (MCP) server that empowers Claude Desktop, Claude Code, and autonomous AI agents to seamlessly route alerts, create topics, and manage Telegram supergroup forum threads.
💡 Why This Exists
Modern AI workflows run continuous tasks: coding iterations, automated research, data scraping, and daily summaries. Routing all agent output into a single Telegram channel creates unreadable noise.
Telegram Forum Topics solve this by creating dedicated sub-threads (e.g., #engineering, #marketing, #financial-audits).
This MCP server gives Claude native tools to:
Send targeted updates directly into the right topic thread (
send_topic_message).Create new discussion threads on the fly for new projects or incident tickets (
create_forum_topic).Archive/Close topics when tasks or sprints are completed (
close_forum_topic).Resolve division tags into specific
thread_ids automatically (list_registered_topics).
Related MCP server: SimpleTgChatMcp
🛠️ Available MCP Tools
Tool | Parameters | Description |
|
| Posts formatted Markdown or text into a specific topic thread. |
|
| Spawns a new forum topic in your Telegram supergroup. |
|
| Renames a topic or updates its icon. |
|
| Marks a topic as closed/archived. |
|
| Reopens a closed forum topic. |
|
| Permanently deletes a topic and all its messages. |
|
| Pins a key message inside a topic thread. |
|
| Clears all pinned messages inside a topic thread. |
| none | Returns human-readable mapping from |
🚀 Setup & Integration
1. Prerequisites
A Telegram Supergroup with Topics enabled (Group Settings → Topics: On).
A Telegram Bot Token from @BotFather added as an Administrator in the group with Manage Topics permission.
Your Supergroup Chat ID (e.g.,
-100xxxxxxxxxx).
2. Integration with Claude Code CLI
Add this MCP server to your Claude Code workspace in one command:
claude mcp add telegram-topics -- python3 /path/to/server.pySet environment variables in your terminal:
export TELEGRAM_BOT_TOKEN="your_bot_token"
export TELEGRAM_CHAT_ID="-100xxxxxxxxxx"
# Optional topic routing shortcut:
export TELEGRAM_TOPIC_MAP='{"ENGINEERING": 1760, "MARKETING": 137, "GENERAL": 1}'3. Integration with Claude Desktop
Open your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server under mcpServers:
{
"mcpServers": {
"telegram-topics": {
"command": "python3",
"args": ["/absolute/path/to/mcp-telegram-topics/server.py"],
"env": {
"TELEGRAM_BOT_TOKEN": "your_bot_token_here",
"TELEGRAM_CHAT_ID": "-100xxxxxxxxxx",
"TELEGRAM_TOPIC_MAP": "{\"DEV\": 1760, \"MARKETING\": 137}"
}
}
}
}Restart Claude Desktop. You will see the hammer icon 🔨 with Telegram tools active!
💬 Example Prompt in Claude
"Claude, analyze the bug in
auth.py, fix it, and send a completion summary to our Engineering topic thread on Telegram."
Claude will automatically:
Inspect the code and patch the issue.
Call
send_topic_message(thread_id=1760, message="✅ Fixed JWT expiration bug in auth.py").
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your Telegram, WhatsApp, Instagram, mail and calendar in Claude or ChatGPT. Never sends messages.
Hosted Telegram MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude Code to send messages to and receive instructions from Telegram, with task tracking and persistent storage.-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to send messages, media, and manage Telegram chat messages through a Telegram bot, including sending photos, documents, and editing or deleting messages.MIT
- AlicenseAqualityDmaintenanceEnables Claude to send and manage Telegram messages through a bot, supporting remote deployment for scheduled automations.1039 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables users to run Claude Code from Telegram with voice notes both ways, persistent memory, live tool-call progress, and 24/7 daemon supervision. It also adds scheduled messages, Google Calendar integration, inline buttons, and session/subagent monitoring.-