# Telegram MCP

> Telegram MCP is an open-source MCP server for communication. Telegram for AI agents: messages, chats, media, and contacts in bot and user-account modes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/n24q02m/telegram
- **MCP Registry name:** io.github.n24q02m/better-telegram-mcp
- **Categories:** communication
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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

- [BoardAgent](https://ai-powered.com/mcp/boardagent): BoardAgent is a free MCP server for community directories.
- [Callout](https://ai-powered.com/mcp/callout): Callout is a freemium MCP server for communication.
- [nicemails](https://ai-powered.com/mcp/nicemails): nicemails is a freemium MCP server for communication.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [PostBaton](https://ai-powered.com/mcp/postbaton): PostBaton is a freemium MCP server for marketing and seo.
- [MeetBetr](https://ai-powered.com/mcp/meetbetr): MeetBetr is a free MCP server for productivity.
- [Host Tools](https://ai-powered.com/mcp/host-tools): Host Tools is an MCP server for home services.
- [iMessage MCP](https://ai-powered.com/mcp/imessage-mcp): iMessage MCP is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/telegram-mcp-2
