Telegram MCP Server
Enables sending and receiving Telegram messages, retrieving bot information, and fetching updates through the Telegram Bot API.
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 MCP Server
An MCP server that enables sending and receiving Telegram messages from MCP (Model Context Protocol) clients such as Gemini Spark and Claude Desktop.
Prerequisites
Node.js is required for operation.
Install Node.js:
If it is not installed yet, download and install the LTS version from the Node.js official website.
After installation is complete, restart Command Prompt or PowerShell and verify that
node -vandnpm -vwork.
Create a Telegram Bot:
Search for @BotFather in the Telegram app and use the
/newbotcommand to create a new bot.Note down the HTTP API Token displayed after creation (e.g.,
123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ).
Related MCP server: Telegram MCP Server
Setup Steps
Navigate to the repository directory and install dependencies:
npm installConfigure environment variables:
Copy
.env.examplein the directory to.env.
copy .env.example .envOpen the
.envfile and set theTELEGRAM_BOT_TOKENyou noted down.
TELEGRAM_BOT_TOKEN=ここにBotのトークンを貼り付け
TELEGRAM_DEFAULT_CHAT_ID=(任意)デフォルトの宛先チャットID
If
TELEGRAM_DEFAULT_CHAT_IDis specified, messages will automatically be sent to that chat when the chat ID is omitted in tool calls.
Run the build: Compile TypeScript to JavaScript.
npm run buildStarting the Server and Registering with MCP Clients
1. Start the Server
To start locally, install dependencies, build, and then start as follows.
npm startBy default, the server starts on port 3000 and the following endpoints are available.
SSE endpoint:
http://localhost:3000/sse
To change the port number, start with the environment variable PORT specified, or add PORT=8080 to the .env file.
2. Register with MCP Clients
For Claude Desktop
Add the SSE server to the configuration file (e.g., AppData\Roaming\Claude\claude_desktop_config.json) as follows.
{
"mcpServers": {
"telegram-mcp": {
"type": "sse",
"url": "http://localhost:3000/sse"
}
}
}For Clients such as Gemini Spark
In the client's settings screen, select the SSE transport and register by specifying http://localhost:3000/sse as the URL.
Provided Tools
1. telegram_get_me
Overview: Retrieves the bot's own account information. Useful for connection verification tests.
Parameters: None
2. telegram_send_message
Overview: Sends a message to the specified
chat_id.Parameters:
text(string, required): The message to send.chat_id(string, optional): The destination chat ID or username (e.g.,@my_channel). If not specified, the default ID in.envis used.parse_mode(string, optional): Formatting mode (choose fromMarkdown,HTML,MarkdownV2).
3. telegram_get_updates
Overview: Retrieves the latest messages (updates) sent to the bot.
Parameters:
offset(number, optional): The update ID that serves as the starting position for retrieval.limit(number, optional): The maximum number of items to retrieve at once (1-100, default 100).timeout(number, optional): The long polling timeout in seconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Hosted Telegram MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Schedule posts, read analytics and manage Telegram channels in TGStudio from any MCP client.
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Telegram accounts through MCP, supporting messaging, contacts, groups, media, and admin functions.4Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Telegram accounts, chats, messages, media, and more via MCP, using Telethon.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants like Claude to read, search, and send messages through your personal Telegram account via MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables sending and reading Telegram messages through MCP, using either a bot or a personal user account.636 npmMIT