MCP server for Telegram that lets agents work with chats and messages.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add telegram --env API_ID='<API_ID>' --env API_HASH='<API_HASH>' -- uv tool install mcp-telegram~/.codex/config.toml
[mcp_servers.telegram]
command = "uv"
args = ["tool", "install", "mcp-telegram"]
env = { API_ID = "<API_ID>", API_HASH = "<API_HASH>" }
# codex mcp add telegram --env API_ID='<API_ID>' --env API_HASH='<API_HASH>' -- uv tool install mcp-telegram~/.cursor/mcp.json
{
"mcpServers": {
"telegram": {
"command": "uv",
"args": [
"tool",
"install",
"mcp-telegram"
],
"env": {
"API_ID": "<API_ID>",
"API_HASH": "<API_HASH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"telegram": {
"type": "stdio",
"command": "uv",
"args": [
"tool",
"install",
"mcp-telegram"
],
"env": {
"API_ID": "<API_ID>",
"API_HASH": "<API_HASH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"telegram": {
"command": "uv",
"args": [
"tool",
"install",
"mcp-telegram"
],
"env": {
"API_ID": "<API_ID>",
"API_HASH": "<API_HASH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"telegram": {
"command": "uv",
"args": [
"tool",
"install",
"mcp-telegram"
],
"env": {
"API_ID": "<API_ID>",
"API_HASH": "<API_HASH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"telegram": {
"command": "uv",
"args": [
"tool",
"install",
"mcp-telegram"
],
"env": {
"API_ID": "<API_ID>",
"API_HASH": "<API_HASH>"
}
}
}
}Environment variables
API_IDAPI_HASH
Replace the placeholders with your own credentials and keep them out of version control.