Skip to content
VS Code

gramcp for VS Code

io.github.ilodezis/gramcp

Multi-account Telegram MCP server in Rust with 68 MTProto tools, /settings web UI, and OAuth 2.1

client:VS Code transport:stdio runtime:oci

Install gramcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "telegram-api-id",
      "description": "TELEGRAM_API_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "telegram-api-hash",
      "description": "TELEGRAM_API_HASH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gramcp-transport",
      "description": "GRAMCP_TRANSPORT",
      "password": true
    }
  ],
  "servers": {
    "gramcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ilodezis/gramcp:0.2.0"
      ],
      "env": {
        "TELEGRAM_API_ID": "${input:telegram-api-id}",
        "TELEGRAM_API_HASH": "${input:telegram-api-hash}",
        "GRAMCP_TRANSPORT": "${input:gramcp-transport}"
      }
    }
  }
}

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

gramcp in other clients