Telegram for Claude Code

v1.0.0Communicationstable

TSGram - Telegram MCP Server for local Claude Code integration - debug and vibe code on the go!

tsgrammcpai-integration
Share:
93
Stars
0
Downloads
0
Weekly
0/5

What is Telegram for Claude Code?

Telegram for Claude Code is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to tsgram - telegram mcp server for local claude code integration - debug and vibe code on the go!

TSGram - Telegram MCP Server for local Claude Code integration - debug and vibe code on the go!

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • TSGram - Telegram MCP Server for local Claude Code integrati

Use Cases

Send and receive messages on Telegram directly from Claude Code.
Debug and code on the go using Telegram as an interface.
Integrate Claude with Telegram for local automation.
areweai

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx tsgram

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Telegram for Claude Code

TSGram is a Telegram-based MCP server that gives developers a remote interface to their local Claude Code environment via Telegram messages. Once configured, your Telegram bot becomes a two-way channel: you can send prompts, view files, get AI code analysis, and receive responses wherever you have Telegram — from your phone, tablet, or another computer. It is particularly useful for developers who want to check on a running Claude Code session or trigger analysis tasks while away from their desk.

Prerequisites

  • Node.js 20 or later installed
  • Docker Desktop installed and running
  • A Telegram account and a bot token from @BotFather
  • Your numeric Telegram user ID (from @userinfobot — use the ID, not your username)
  • An OpenRouter API key or OpenAI API key for AI analysis
1

Clone the TSGram repository

Clone the project and navigate into the directory.

git clone https://github.com/areweai/tsgram-mcp.git
cd tsgram-mcp
2

Create a Telegram bot and get credentials

Open Telegram, message @BotFather with /newbot, follow the prompts, and copy the bot token. Then message @userinfobot to get your numeric user ID for the AUTHORIZED_CHAT_ID variable.

3

Configure environment variables

Create a .env file in the project root with your Telegram and AI API credentials. Use your numeric user ID for AUTHORIZED_CHAT_ID, not your Telegram username.

TELEGRAM_BOT_TOKEN=your_bot_token_here
AUTHORIZED_CHAT_ID=123456789
OPENROUTER_API_KEY=your_openrouter_key
# OR use OpenAI instead:
# OPENAI_API_KEY=your_openai_key
4

Build and start the Docker services

Install Node dependencies, build the Docker image, and start the services. The web dashboard will be available at localhost:3000.

npm install
npm run docker:build
npm run docker:start
5

Configure your MCP client

Add TSGram to your Claude Desktop or Claude Code MCP config so it can communicate with the running Docker container.

{
  "mcpServers": {
    "tsgram": {
      "command": "npx",
      "args": ["tsgram"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "your_bot_token_here",
        "AUTHORIZED_CHAT_ID": "123456789",
        "OPENROUTER_API_KEY": "your_openrouter_key"
      }
    }
  }
}
6

Test the Telegram bot

Open Telegram, find your bot by its username, and send a message. You can also use the special commands: ':h ls .' to list the project directory or ':h cat README.md' to read a file. Send 'stop' to pause responses and 'start' to resume.

Telegram for Claude Code Examples

Client configuration

Claude Desktop config for TSGram with all required environment variables.

{
  "mcpServers": {
    "tsgram": {
      "command": "npx",
      "args": ["tsgram"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "your_bot_token_here",
        "AUTHORIZED_CHAT_ID": "123456789",
        "OPENROUTER_API_KEY": "your_openrouter_key"
      }
    }
  }
}

Prompts to try

Messages you can send to your TSGram Telegram bot or use via the MCP client.

- "What files are in my project root? (:h ls .)"
- "Show me the contents of src/index.ts (:h cat src/index.ts)"
- "Analyze the last error in the logs and suggest a fix."
- "Check if the server is healthy (npm run docker:health)."
- "Stop responding to new messages for now. (stop)"

Troubleshooting Telegram for Claude Code

Bot does not respond to Telegram messages

Confirm the Docker containers are running with 'npm run docker:logs'. Check that TELEGRAM_BOT_TOKEN is correct and that AUTHORIZED_CHAT_ID matches your numeric user ID (not username). Use @userinfobot to get the correct ID.

Docker build fails with permission or port errors

Ensure Docker Desktop is running before executing 'npm run docker:build'. If port 3000 is already in use, stop the conflicting service or change the port mapping in docker-compose.yml.

AI analysis responses are not returned

Verify that OPENROUTER_API_KEY or OPENAI_API_KEY is set and valid. Check 'npm run docker:logs' for API authentication errors. Only one of the two keys is needed — set whichever you have.

Frequently Asked Questions about Telegram for Claude Code

What is Telegram for Claude Code?

Telegram for Claude Code is a Model Context Protocol (MCP) server that tsgram - telegram mcp server for local claude code integration - debug and vibe code on the go! It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Telegram for Claude Code?

Follow the installation instructions on the Telegram for Claude Code GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Telegram for Claude Code?

Telegram for Claude Code works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Telegram for Claude Code free to use?

Yes, Telegram for Claude Code is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "tsgram": { "command": "npx", "args": ["-y", "tsgram"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Telegram for Claude Code?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides