MCP-Communicator-Telegram
- Communication
An MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
No tools |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
CHAT_ID | Yes | Your Telegram chat ID | |
TELEGRAM_TOKEN | Yes | The Telegram bot token obtained from @BotFather |
MCP Communicator (Telegram)
An MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
Installation
Via npm (global)
Via npx (on-demand)
To get your Telegram chat ID:
Features
- Ask questions to users through Telegram
- Receive responses asynchronously (waits indefinitely for response)
- Support for reply-based message tracking
- Secure chat ID validation
- Error handling and logging
Prerequisites
- Node.js (v14 or higher)
- A Telegram bot token (obtained from @BotFather)
- Your Telegram chat ID (can be obtained using the included utility)
Installation
- Clone the repository:
- Install dependencies:
- Create a Telegram bot:
- Open Telegram and search for @BotFather
- Send
/newbot
and follow the instructions - Save the bot token you receive
- Get your chat ID:
- Copy
.env.example
to.env
- Add your bot token to the
.env
file:CopyTELEGRAM_TOKEN=your_bot_token_here - Run the chat ID utility:Copynpm run build node build/get-chat-id.js
- Send any message to your bot
- Copy the chat ID that appears in the console
- Add the chat ID to your
.env
file:CopyTELEGRAM_TOKEN=your_bot_token_here CHAT_ID=your_chat_id_here
- Copy
Configuration
Add the server to your MCP settings file (usually located at %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
on Windows):
Available Tools
ask_user
Asks a question to the user via Telegram and waits for their response.
Input Schema:
Example usage:
Development
Build the project:
Run in development mode:
Watch for changes:
Clean build directory:
Security
- The server only responds to messages from the configured chat ID
- Environment variables are used for sensitive configuration
- Message IDs are used to track question/answer pairs
- The bot ignores messages without proper context
License
ISC
Author
qpd-v
Version
0.1.2
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: