Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
MCP servers/Communication & Messaging
dryeab avatar

MCP Telegram Server

dryeab/mcp-telegram

Mcp Telegram enables Large Language Models to interact with Telegram accounts via the Model Context Protocol using the Telethon library and MTProto protocol. The server provides tools for sending, editing, and deleting messages; searching and navigating chats; managing drafts; and downloading media, allowing AI agents to perform Telegram operations programmatically. It solves the problem of integrating Telegram functionality into LLM-powered applications by offering a standardized MCP interface that requires API credentials and authentication through Telegram's official channels.

GitHub stars
243
last updated
Mar 4, 2026
View on GitHubSave

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Readme

MCP Telegram Logo

Enable LLMs to control your Telegram

GitHub stars PyPI version Twitter Follow

Connect Large Language Models to Telegram via the Model Context Protocol (MCP).

Built with Telethon, this server allows AI agents to interact with Telegram, enabling features like sending/editing/deleting messages, searching chats, managing drafts, downloading media, and more using the MTProto.


Tableย ofย Contents
  • ๐Ÿš€ Getting Started
    • Prerequisites
    • Installation
  • โš™๏ธ Usage
    • Login
    • Connect to the MCP server
  • ๐Ÿงฐ Available Tools
    • ๐Ÿ“จ Messaging Tools
    • ๐Ÿ” Search & Navigation
    • ๐Ÿ“ Draft Management
    • ๐Ÿ“‚ Media Handling
  • ๐Ÿ› ๏ธ Troubleshooting
  • ๐Ÿค Contributing
  • ๐Ÿ“ License

๐Ÿš€ Getting Started

Prerequisites

  • Python 3.10 or higher
  • uv Install via the official uv guide.

Installation

Install the mcp-telegram CLI tool:

uv tool install mcp-telegram

โš™๏ธ Usage

[!IMPORTANT] Please ensure you have read and understood Telegram's ToS before using this tool. Misuse of this tool may result in account restrictions.

The mcp-telegram command-line tool is your entry point.

mcp-telegram --help # See all commands

Login

First, authenticate with your Telegram account:

mcp-telegram login

This interactive command will prompt you for:

  • API ID & API Hash: Obtain these from my.telegram.org/apps.
  • Phone Number: Your Telegram-registered phone number (international format, e.g., +1234567890).
  • Verification Code: Sent to your Telegram account upon first login.
  • 2FA Password: If you have Two-Factor Authentication enabled.

Your credentials are securely stored in the session file for future use.

[!WARNING] Keep your API credentials private and never share them publicly

[!NOTE] Use mcp-telegram logout to logout from current session or mcp-telegram clear-session to remove all stored session data.

Connect to the MCP server

To use MCP Telegram with MCP clients like Claude Desktop or Cursor, you'll need to configure the MCP server. The configuration process varies by client and operating system.

For detailed setup instructions, please refer to:

  • Claude Desktop MCP Setup Guide
  • Cursor MCP Documentation

The configuration file should contain:

{
  "mcpServers": {
    "mcp-telegram": {
      "command": "mcp-telegram" /* Use full path if client can't find the command (e.g. "/usr/local/bin/mcp-telegram"). See IMPORTANT section below for full path instructions. */,
      "args": ["start"],
      "env": {
        "API_ID": "<your_api_id>",
        "API_HASH": "<your_api_hash>"
      }
    }
  }
}

[!Note] Configuration paths vary by OS and client. For example:

  • macOS: ~/Library/Application Support/Claude/ or ~/.cursor/
  • Windows: %APPDATA%\Claude\ or %APPDATA%\Cursor\

[!IMPORTANT] If your client cannot execute mcp-telegram despite it being accessible in the terminal, try using the full path to the executable. You can find this by running which mcp-telegram (macOS/Linux) or where mcp-telegram (Windows) in your terminal. Replace the command value in the configuration with the full path.

After saving the configuration file, restart your application.

๐Ÿงฐ Available Tools

Here's a comprehensive list of tools you can use to interact with Telegram through MCP:

๐Ÿ“จ Messaging Tools

ToolDescription
send_messageโœ‰๏ธ Send text messages or files to any user, group, or channel
edit_messageโœ๏ธ Modify content of previously sent messages
delete_message๐Ÿ—‘๏ธ Remove one or multiple messages
get_messages๐Ÿ“œ Retrieve message history with advanced filtering options

๐Ÿ” Search & Navigation

ToolDescription
search_dialogs๐Ÿ”Ž Find users, groups, and channels by name or username
message_from_link๐Ÿ”— Access specific messages using Telegram links

๐Ÿ“ Draft Management

ToolDescription
get_draft๐Ÿ“‹ View current message draft for any chat
set_draftโœ๏ธ Create or clear message drafts

๐Ÿ“‚ Media Handling

ToolDescription
media_download๐Ÿ“ธ Download photos, videos, and documents from messages

[!Note] For detailed parameter information and example use cases, run mcp-telegram tools in your terminal.

๐Ÿ› ๏ธ Troubleshooting

Database Locked Errors

Running multiple mcp-telegram instances using the same session file can cause database is locked errors due to Telethon's SQLite session storage. Ensure only one instance uses a session file at a time.

Force-Stopping Existing Processes

If you need to stop potentially stuck processes:

  • macOS / Linux: pkill -f "mcp-telegram"
  • Windows: taskkill /F /IM mcp-telegram.exe /T (Check Task Manager for the exact process name)

๐Ÿค Contributing

We welcome contributions! If you'd like to help improve MCP Telegram, please feel free to submit issues, feature requests, or pull requests. Your feedback and contributions help make this project better for everyone.

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with โค๏ธ by Yeabsira Driba

Details

Repository
github.com/dryeab/mcp-telegram
Category
Communication & Messaging

Related Communication & Messaging MCP servers

View all
1ai-zerolab avatarEmailai-zerolab/mcp-email-serverProvides IMAP/SMTP access with MCP-based management and optional attachment download.235stars
2v-3 avatarDiscordv-3/discordmcpDiscord MCP Server for Claude Integration199stars
3sparfenyuk avatarTelegramsparfenyuk/mcp-telegramMCP server to work with Telegram through MTProto175stars
4hanweg avatarDiscordhanweg/mcp-discordMCP server for discord bot154stars
5pyroprompts avatarany-chat-completions-mcppyroprompts/any-chat-completions-mcpMCP Server for using any LLM as a Tool151stars
6ubie-oss avatarSlackubie-oss/slack-mcp-serverA Slack MCP server110stars