tgfmcp
by vaibhavpandeyvpz·★ 2·Score 38
Telegram stdio MCP server exposing Bot API tools and message notifications through Telegraf.
Overview
tgfmcp is a specialized MCP server that bridges the Telegram Bot API with MCP-compatible clients. It uses Telegraf directly for polling and API operations, providing comprehensive tools for message manipulation (send, reply, edit, delete, etc.) and chat information retrieval. The server can optionally emit incoming message events through an MCP notification channel, allowing real-time interaction with Telegram conversations. It includes security features through user and chat allowlists and handles media attachments by storing them locally.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose tgfmcp when you need to integrate Telegram messaging into AI workflows through MCP, especially for building chatbots or notification systems with full message control capabilities.
When NOT to choose this
Don't use tgfmcp if you require bidirectional communication with Telegram users beyond basic bot functionality, as bots cannot initiate conversations or access arbitrary private chats.
Tools this server exposes
12 tools extracted from the READMEtelegram_get_meGet information about the Telegram bot
telegram_get_statusGet the status of the Telegram bot
telegram_get_chatGet information about a specific chat
telegram_get_chat_administratorsGet the administrators of a specific chat
telegram_lookup_chatLook up chat information
telegram_send_messageSend a message to a chat
telegram_send_media_from_base64Send media from base64 encoding
telegram_send_media_from_pathSend media from a file path
telegram_reply_to_messageReply to a specific message
telegram_react_to_messageReact to a message with an emoji
telegram_edit_messageEdit an existing message
telegram_delete_messageDelete a message
Comparable tools
Installation
Installation
- Install globally:
npm install -g tgfmcp- Configure your bot token:
tgfmcp configure- Run the MCP server:
tgfmcp mcpFor Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"telegram": {
"command": "tgfmcp",
"args": ["mcp"]
}
}
}FAQ
- Can this MCP server receive Telegram messages in real-time?
- Yes, when started with --channels flag, it can emit incoming message events through MCP notification channel.
- How do I secure access to my Telegram bot through MCP?
- Use the interactive configuration to set up allowlists for specific users and chats that can interact with your bot.
Compare tgfmcp with
Last updated · Auto-generated from public README + GitHub signals.