drio
Open app

Telegram MCP Server

Source

MCP Server for Telegram chatbot use.

Catalog onlyCatalog onlySTDIO

Overview

The Telegram MCP server is a bridge application designed to facilitate interactions between the Telegram API and AI assistants through the Model Context Protocol (MCP). It allows for read-only access to various Telegram functionalities.

To use the server, install the required dependencies, configure your environment with your Telegram API credentials, and then run the server to connect to the Telegram API. Detailed instructions can be found in the installation section of the project documentation.

  • Provides a range of read-only functionalities for the Telegram API, including accessing messages and dialogs. - Ability to create summaries of unread messages. - Configuration options for integrating with AI applications like Claude Desktop.
  1. Summarizing unread messages from chat dialogs.
  2. Fostering AI applications that require real-time access to Telegram data without modifying it.
  3. Building tools that leverage Telegram's messaging features for other applications.

Add to your AI client

Use these steps to connect Telegram MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-telegram-lane83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-telegram-lane83"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-telegram-lane83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-telegram-lane83"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-telegram-lane83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-telegram-lane83"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-telegram-lane83": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-telegram-lane83"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-telegram-lane83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-telegram-lane83"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-telegram-lane83": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-telegram-lane83"
      ]
    }
  }
}

FAQ

What capabilities does the server currently offer?

The server offers read-only access, allowing users to retrieve messages, dialogs, and other relevant data without making any modifications.

Is the server compatible with all Telegram services?

It primarily provides access to core messaging features and requires specific setups to interact with various Telegram functionalities.

How do I configure the server?

Configuration requires setting up a `.env` file with your Telegram API credentials and appropriately configuring the server to connect with AI applications.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":215,"uuid":"9e8373fa-92f3-44b5-8c19-ce8d1b16e2d2","name":"mcp-telegram","title":"Telegram MCP Server","description":"MCP Server for Telegram chatbot use.","avatar_url":"https://avatars.githubusercontent.com/u/192880523?v=4","created_at":"2024-12-13T09:17:00.200Z","updated_at":"2024-12-13T12:28:11.249Z","status":"created","author_name":"lane83","author_avatar_url":"https://avatars.githubusercontent.com/u/192880523?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/lane83/mcp-telegram","target":"_self","content":"# Telegram MCP Server\n\nA Model Context Protocol (MCP) server that provides Telegram integration.\n\n## Features\n- Send messages through Telegram\n- Secure chat ID validation\n- Easy configuration\n\n## Installation\n\n1. Clone the repository\n2. Follow the [setup instructions](userInstructions/telegram_server_setup.md)\n3. Configure your bot token and chat ID\n4. Install dependencies: `npm install`\n5. Build and run: `npm run build && npm start`\n\n## Requirements\n- Node.js 18+\n- Telegram bot token\n- Valid chat ID\n\n## License\nMIT","summary":"$29","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]