Skip to content
VS Code

Better Telegram MCP for VS Code

io.github.n24q02m/better-telegram-mcp

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

client:VS Code transport:stdio runtime:pypi

Install Better Telegram MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "telegram-bot-token",
      "description": "TELEGRAM_BOT_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "telegram-api-id",
      "description": "TELEGRAM_API_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "telegram-api-hash",
      "description": "TELEGRAM_API_HASH",
      "password": true
    }
  ],
  "servers": {
    "better-telegram-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "better-telegram-mcp"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "${input:telegram-bot-token}",
        "TELEGRAM_API_ID": "${input:telegram-api-id}",
        "TELEGRAM_API_HASH": "${input:telegram-api-hash}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Better Telegram MCP in other clients