
Telegram MCP Server
A server that enables interaction with Telegram chats directly through MCP-compatible hosts like Claude for Desktop, providing tools to retrieve chats, get messages, and send messages.
README
Telegram MCP Server
A Telegram MCP (Model Context Protocol) server built using Python, Telethon, and MCP Python SDK. This MCP server provides simple tools for interacting with Telegram chats directly through MCP-compatible hosts, such as Claude for Desktop.
Tools Provided
get_chats
: Retrieve a paginated list of your Telegram chats.get_messages
: Retrieve paginated messages from a specific chat.send_message
: Send a message to a specific chat.
Requirements
- Python 3.10 or higher
- Telethon package
- MCP Python SDK
- UV (optional but recommended)
Installation and Setup
Clone the Repository
git clone https://github.com/chigwell/telegram-mcp
cd telegram-mcp
Create Environment File
Copy and rename .env.example
to .env
and fill it with your Telegram credentials obtained from https://my.telegram.org/apps:
cp .env.example .env
Your .env
file should look like:
TELEGRAM_API_ID=your_api_id_here
TELEGRAM_API_HASH=your_api_hash_here
TELEGRAM_SESSION_NAME=your_session_name
Setup Python Environment
Use uv
to set up the Python environment and install dependencies:
uv venv
source .venv/bin/activate
uv add "mcp[cli]" telethon python-dotenv nest_asyncio
Run the Server (First-time Auth)
The first time you run the server, Telethon will prompt you to enter a Telegram authentication code:
uv run main.py
Authenticate by entering the code sent to your Telegram client. This step is only required once.
Integrating with Claude for Desktop
macOS/Linux
Edit your Claude Desktop configuration:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add this MCP server configuration:
{
"mcpServers": {
"telegram-mcp": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE_PATH/telegram-mcp",
"run",
"main.py"
]
}
}
}
Ensure you replace /ABSOLUTE_PATH/telegram-mcp
with your project's absolute path.
Windows
Edit your Claude Desktop configuration:
nano $env:AppData\Claude\claude_desktop_config.json
Add this MCP server configuration:
{
"mcpServers": {
"telegram-mcp": {
"command": "uv",
"args": [
"--directory",
"C:\\ABSOLUTE_PATH\\telegram-mcp",
"run",
"main.py"
]
}
}
}
Ensure you replace C:\ABSOLUTE_PATH\telegram-mcp
with your project's absolute path.
Usage
Once integrated, your Telegram tools (get_chats
, get_messages
, and send_message
) will become available within the Claude for Desktop UI or any other MCP-compatible client.
License
This project is licensed under the Apache 2.0 License.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.