mcp-server-telegram-notes
Enables sending notes directly to your Telegram account using a Telegram bot. Provides a 'send-note' tool for programmatic note delivery via the Telegram messaging platform.
README
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.
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 integration
How 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 install -
Run the server in development mode:
npm run dev -
Build 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"
}
}
// ...
},
}
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。