🧠 Telegram Bot MCP Server

🧠 Telegram Bot MCP Server

By siavashdelkhosh81 GitHub

Telegram bot mcp server

telegram-bot mcp-server
Overview

What is Telegram Bot MCP Server?

Telegram Bot MCP Server is a project that integrates with the Telegram Bot API using the Model Context Protocol (MCP), providing a structured way to interact with Telegram bots through various commands.

How to use Telegram Bot MCP Server?

To use the Telegram Bot MCP Server, clone the repository, obtain your Telegram bot token from BotFather, install the necessary packages, and configure your MCP client with the bot token.

Key features of Telegram Bot MCP Server?

  • Authentication check with get-me
  • Send messages and photos to users or chats
  • Manage chat members (kick/unban)
  • Fetch chat metadata and member details
  • Update bot descriptions and commands

Use cases of Telegram Bot MCP Server?

  1. Automating responses in Telegram chats.
  2. Managing group memberships and interactions.
  3. Customizing bot profiles and commands for better user engagement.

FAQ from Telegram Bot MCP Server?

  • How do I get my bot token?

You can get your bot token by creating a new bot through the BotFather on Telegram.

  • Is there a limit to the number of messages I can send?

Yes, Telegram has rate limits for sending messages to prevent spam.

  • Can I use this server for multiple bots?

Yes, you can configure multiple bots by setting up different MCP clients.

Content

🧠 Telegram Bot MCP Server

This project is a Telegram bot integration built using the Model Context Protocol (MCP) that exposes a suite of useful tools for interacting with the Telegram Bot API. It enables standardized communication with Telegram via a structured set of commands such as messaging, user management, and bot profile configuration.


🚀 Features

This MCP server exposes the following tools:

get-me

Test your bot's authentication and retrieve basic information about the bot.


💬 send-message

Send a plain text message to a specific user or chat.

  • Input:
    • chatId: Target chat ID or username
    • text: Message content

🖼️ send-photo

Send a photo with an optional caption.

  • Input:
    • chatId: Target chat ID or username
    • media: File ID, URL, or uploaded file
    • text (optional): Caption for the photo

🔨 kick-chat-member

Ban a user from a group, supergroup, or channel.

  • Input:
    • chatId: Target chat
    • userId: User to ban

♻️ un-ban-chat-member

Unban a previously banned user from a chat.

  • Input:
    • chatId: Target chat
    • userId: User to unban

🧾 get-chat

Fetch full chat metadata and details.

  • Input:
    • chatId: Target chat

👥 get-chat-member-count

Get the total number of members in a group or channel.

  • Input:
    • chatId: Target chat

🔍 get-chat-member

Get detailed info about a specific member in a group or channel.

  • Input:
    • chatId: Target chat
    • userId: Target user

✏️ set-my-short-description

Update your bot's short description (shown in the profile and shares).

  • Input:
    • short_description: New short description (max 120 chars)

📄 get-my-short-description

Fetch the current short description of the bot.


📝 set-my-commands

Set the list of commands that appear in the Telegram UI.

  • Input:
    • commands: Array of { command, description }

📋 get-my-commands

Get the current list of commands configured for the bot.


🧑‍💻 set-my-name

Update the name of the bot.

  • Input:
    • name: New bot name

🙋 get-my-name

Retrieve the current name of the bot.


📘 set-my-description

Update the full description of the bot (shown in empty chats).

  • Input:
    • description: New bot description (max 512 chars)

📖 get-my-description

Fetch the current description of the bot.


📦 Installation

1. Clone the Repository

git clone https://github.com/siavashdelkhosh81/telegram-bot-mcp-server.git
cd telegram-bot-mcp-server

2. Get Your Telegram Bot Token

  1. Open Telegram and search for @BotFather.
  2. Start a conversation and run the command:
    /newbot
    
  3. Follow the prompts to name your bot and get your API token.
  4. Save the token.

3. Install and build

Install packages

yarn

Build packages

yarn build

4. Configure Your MCP Client

Add this to your MCP client configuration:

{
  "mcpServers": {
    "telegram_bot": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/.build/index.js"],
      "env": {
        "TELEGRAM_BOT_API_TOKEN": "your bot token"
      }
    }
  }
}

🔁 Replace /ABSOLUTE/PATH/TO/PARENT/FOLDER/.build/index.js with the real path to your compiled project entry point.


💬 Support & Feedback

Feel free to open issues or contribute to the project. For Telegram-specific help, refer to the Telegram Bot API documentation.

Buy me a Coffee :) https://buymeacoffee.com/delkhoshsiv

License

This project is licensed under the MIT License - see the LICENSE file for details.

No tools information available.

Mirror of

image-generation mcp-server
View Details

Secure MCP server for analyzing Excel files with oletools

oletools mcp-server
View Details

Mirror of

bigquery mcp-server
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details
Dealx
Dealx by DealExpress

-

dealx mcp-server
View Details

Google Analytics MCP server for accessing analytics data through tools and resources

google-analytics mcp-server
View Details

A Python-based MCP server that lets Claude run boto3 code to query and manage AWS resources. Execute powerful AWS operations directly through Claude with proper sandboxing and containerization. No need for complex setups - just pass your AWS credentials and start interacting with all AWS services.

aws mcp-server
View Details