Telegram MCP Server
Enables sending and receiving Telegram messages, retrieving bot information, and fetching updates through the Telegram Bot API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Telegram MCP ServerSend 'Hello from Claude' to my default Telegram chat"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with Telegram accounts through MCP, supporting messaging, contacts, groups, media, and admin functions.4Apache 2.0
- AlicenseNot gradedqualityCmaintenanceConnects AI tools to Telegram via MCP, enabling reading chats, sending messages, managing groups, and more using your own account.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
Related MCP Connectors
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Give AI agents real phone numbers, messages, and voice calls via MCP.
Phone, SMS & email for AI agents — one remote MCP endpoint, OAuth login, zero install.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/griffon190/TelegramMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server