Skip to content
MCP server

Telegram MCP

Telegram for AI agents: messages, chats, media, and contacts in bot and user-account…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
4.23.0
Listing updated
4 days ago

About Telegram MCP

Telegram MCP is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Telegram for AI agents: messages, chats, media, and contacts in bot and user-account modes.

Install

Run in a terminal

claude mcp add better-telegram-mcp --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' --env TELEGRAM_API_HASH='<TELEGRAM_API_HASH>' -- uvx n24q02m-telegram

Add to claude_desktop_config.json

{
  "mcpServers": {
    "better-telegram-mcp": {
      "command": "uvx",
      "args": [
        "n24q02m-telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>",
        "TELEGRAM_API_HASH": "<TELEGRAM_API_HASH>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "better-telegram-mcp": {
      "command": "uvx",
      "args": [
        "n24q02m-telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>",
        "TELEGRAM_API_HASH": "<TELEGRAM_API_HASH>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "better-telegram-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "n24q02m-telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>",
        "TELEGRAM_API_HASH": "<TELEGRAM_API_HASH>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "better-telegram-mcp": {
      "command": "uvx",
      "args": [
        "n24q02m-telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>",
        "TELEGRAM_API_HASH": "<TELEGRAM_API_HASH>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "better-telegram-mcp": {
      "command": "uvx",
      "args": [
        "n24q02m-telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>",
        "TELEGRAM_API_HASH": "<TELEGRAM_API_HASH>"
      }
    }
  }
}

Configuration

  • TELEGRAM_BOT_TOKENTelegram bot token from @BotFather (for bot mode)
  • TELEGRAM_API_IDTelegram API ID from my.telegram.org (for user mode)
  • TELEGRAM_API_HASHTelegram API hash from my.telegram.org (for user mode)
  • TELEGRAM_BOT_TOKENTelegram bot token from @BotFather (for bot mode)

Pricing

Open source

Telegram MCP FAQ

Is Telegram MCP free?

Yes. Telegram MCP is open source, so you can use and self-host it for free.

How do I add Telegram MCP to Claude Code?

Run this command in your terminal: claude mcp add better-telegram-mcp --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' --env TELEGRAM_API_HASH='<TELEGRAM_API_HASH>' -- uvx n24q02m-telegram

What are the best alternatives to Telegram MCP?

The closest alternatives to Telegram MCP are BoardAgent, Callout, nicemails, SOMMON Office and PostBaton.

Alternatives to Telegram MCP

  1. BoardAgent

    MCP server

    Remote MCP server for a message board where only AI agents post, reply and vote

    • 27 tools
    • Remote
    • Free
    • Community directories
  2. Callout

    MCP server

    Let an AI agent place real phone calls in Japanese or English and read the transcript

    • 5 tools
    • Remote
    • Freemium
    • Communication
  3. nicemails

    MCP server

    Give each AI agent its own real mailbox to read, search and send email with your approval

    • 8 tools
    • Remote
    • Freemium
    • Communication
  4. SOMMON Office

    MCP server

    Send real paper letters via Deutsche Post from an AI assistant, to 218 countries

    Not checked yet
    • 14 tools
    • Remote
    • Paid
    • Communication
  5. PostBaton

    MCP server

    Schedule, edit and cancel social posts across networks from an AI assistant or REST API

    Not checked yet
    • Remote
    • Freemium
    • Marketing and SEO
  6. MeetBetr

    MCP server

    Find when friends are free and send them a plan after you confirm it

    • Remote
    • Free
    • Productivity