Telegram MCP Local Server
Provides tools for interacting with Telegram's API, enabling AI agents to connect, list chats, read message history, and send messages when not in readonly mode.
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 Local Server
A secure Model Context Protocol (MCP) server for Telegram integration. Allows AI agents to interact with Telegram API locally on your machine.
How It Works & Security
This server runs entirely on your local machine and acts as a bridge between AI agents (like Cursor, Claude, etc.) and Telegram's API.
🔒 Your data stays private:
All communication happens locally between your AI agent and your machine
No data is sent to third-party servers
Your Telegram credentials remain on your device
Session data is stored locally and never transmitted
🛡️ Built-in safety features:
Readonly mode by default (prevents accidental message sending)
Local session management
Direct API communication with Telegram only
Related MCP server: telegram-mcp
Getting Credentials
Option 1: Use configuration tool
Use the built-in session helper without downloading the repository:
Type in console:
npx telegram-mcp-local-server --sessionFollow the prompts:
Enter your API ID and Hash
Enter your phone number
Enter the verification code from SMS
Enter your 2FA password if enabled
Copy the generated JSON to your configs
Generated configuration example:
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": ["telegram-mcp-local-server"],
"env": {
"TELEGRAM_API_ID": "your_api_id",
"TELEGRAM_API_HASH": "your_api_hash",
"TELEGRAM_SESSION_STRING": "your_session_string",
"TELEGRAM_READONLY_MODE": "true"
}
}
}
}Option 2: Generate Session String manually and fill configuration
Go to https://my.telegram.org/
Log in with your Telegram account
Navigate to "API development tools"
Create a new application to get your
api_idandapi_hash
Note: Keep TELEGRAM_READONLY_MODE=true for safe operation. This allows reading chats and message history but prevents sending messages.
Available Tools
telegram_connect- Connect to Telegramtelegram_get_chats- Get a list of your chatstelegram_get_chat_history- Read message history from specific chatstelegram_send_message- Send messages (disabled in readonly mode)
License
MIT - Your data, your control.
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
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Your Telegram, WhatsApp, Instagram, mail and calendar in Claude or ChatGPT. Never sends messages.
Multi-tenant Telegram gateway for AI agents — HTTP+stdio, 8 tools, MTProto User API
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to send and receive messages, media, and files on Telegram, and manage chats via a bot token.17MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with a user's Telegram account: list chats, read history, search, and send messages through Telegram's MTProto API.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to operate a Telegram account through the same commands as the terminal client: messaging, chat management, voice transcription, calls, stickers, and privacy settings.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to work with Telegram through explicitly selected user accounts and bots, supporting search, reading, sending, and message management with consent-based access.26 PyPI1Apache 2.0