mcp-server-telegram-notes
Sends notes to your Telegram account via a Telegram bot, allowing programmatic message delivery.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-telegram-notessend a note: Remember to buy milk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server Telegram Notes
This project implements a custom MCP Server that allows you to send notes directly to your Telegram account using a Telegram bot. It is designed for quick, programmatic note delivery via the Telegram messaging platform.
What is an MCP Server?
MCP (Model Context Protocol) Server is a server that implements the Model Context Protocol, enabling tools, resources, and prompts to be exposed in a standardized way for AI agents and other clients. MCP Servers can provide custom tools (like sending notes) that can be invoked remotely, making them highly extensible for automation and integration scenarios.
Related MCP server: Telegram MCP Server
What is a Telegram Bot?
A Telegram bot is a special kind of Telegram account operated by software, not by a human. Bots can interact with users, send and receive messages, and perform automated tasks. Telegram bots are created and managed using the @BotFather bot on Telegram.
How to Create a Telegram Bot
Open Telegram and search for @BotFather (BotFather documentation).
Start a chat and use the
/newbotcommand to create a new bot.Follow the instructions to set a name and username for your bot.
After creation, you will receive a Telegram Bot API Token. Save this token; you will need it for configuration.
Start a chat with your new bot (search for its username in Telegram and send a message).
To get your personal chat ID, you can use tools like userinfobot or send a message to your bot and use the Telegram API to retrieve the chat ID.
Project Folder Structure
├── package.json
├── README.md
├── tsconfig.json
├── .env # Your environment variables (not committed)
├── src/
│ ├── env.ts # Loads and validates environment variables
│ └── index.ts # Main MCP server logic and Telegram integrationHow It Works
The server is built using the Model Context Protocol SDK and exposes a tool called
send-note.When the
send-notetool is invoked (remotely or locally), it sends a message to your Telegram account using your bot.The server reads your bot token and chat ID from environment variables, then uses the Telegram Bot API to deliver the message.
The project is written in TypeScript and can be run in development mode or built for production.
Setup Instructions
Create a
.envfile in the project root with the following variables:TELEGRAM_TOKEN: Your Telegram bot API token (from @BotFather)TELEGRAM_PERSONAL_CHAT_ID: Your personal chat ID (the identifier for your chat with the bot)
Install dependencies:
npm installRun the server in development mode:
npm run devBuild and run for production:
npm run build npm start
Environment Variables
Create a .env file and add these variables:
TELEGRAM_TOKEN: Telegram bot API Token (use Telegram and @BotFather to retrieve the API token)TELEGRAM_PERSONAL_CHAT_ID: Chat ID (the chat identifier between you and the Telegram bot; overlaps with your user ID)
Setup Instructions to use MCP Server in VSCode
Create a mcp.json file in .vscode folder.
NOTE:
dz-telegram-notes-devis meant to work just for development.
{
"servers": {
"dz-telegram-notes-dev": {
"type": "stdio",
"command": "npm",
"args": [
"run",
"dev"
],
"cwd": "${workspaceFolder}",
"dev": {
"watch": "src/**/*.ts",
"debug": {
"type": "node"
}
}
},
"dz-telegram-notes-prod": {
"type": "stdio",
"command": "npm",
"args": [
"run",
"start"
],
"cwd": "${workspaceFolder}"
},
},
}Setup Instructions for Claude Desktop
Add "mcp-telegram-notes" in claude_desktop_config.json file
{
"mcpServers": {
// ...
"mcp-telegram-notes": {
"command": "node",
"args": [
"PATH_TO_YOUR/dist/index.js"
],
"env": {
"TELEGRAM_TOKEN": "YourTelegramToken",
"TELEGRAM_PERSONAL_CHAT_ID": "YourChatId"
}
}
// ...
},
}This server cannot be deployed
Maintenance
Related MCP Connectors
Run a Telegram channel from your AI agent. Posts go out through your own bot, not your account.
Cross-session, cross-device memory for your agent: remember and recall notes. No key to start.
Project memory, tasks and Telegram notifications for your coding agent. Chip account required.
1Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to send and receive messages, media, and files on Telegram, and manage chats via a bot token.17MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Telegram Bot API, allowing them to send messages, forward messages, get bot information, and receive updates.16 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to send notifications and receive responses via Telegram.22 npm4MIT
- AlicenseBqualityDmaintenanceEnables AI agents to send notifications and media (text, photos, documents, videos) via a Telegram bot.437 npm3Do What The F*ck You Want To Public