-
securityF
license-
qualityA versatile Model Context Protocol server that enables AI assistants to manage calendars, track tasks, handle emails, search the web, and control smart home devices.
Last updated -
14
Python
一个 MCP 服务器,允许 AI 助手(例如 Claude)使用用户客户端 API(而非机器人 API)与您的 Telegram 帐户进行交互。基于@mtproto/core
和FastMCP框架构建。
listChannels
limit
(数字,可选):返回的最大通道数(默认值:50)。searchChannels
keywords
(字符串):在频道名称中搜索的关键字。limit
(数字,可选):返回的最大结果数(默认值:100)。getChannelMessages
channelId
(数字):频道/聊天的数字 ID(从listChannels
或searchChannels
获取)。limit
(数字,可选):返回的最大消息数(默认值:100)。filterPattern
(字符串,可选):与 JavaScript 兼容的正则表达式,用于根据文本内容过滤消息。api_id
和api_hash
。有两个单独的配置需要设置:
.env
文件中或直接在您的环境中):~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
**重要提示:**重新启动 MCP 客户端以应用更改。
.env
文件的凭据。./data/session.json
)。此文件允许服务器将来自动登录,而无需输入代码/密码。./data/dialog_cache.json
)。首次运行时可能需要一些时间,尤其是在聊天记录较多的情况下。如果缓存已存在,后续启动速度会更快。npm start
手动启动服务器。一旦服务器运行,您的 MCP 客户端(例如,Claude Desktop)将通过其配置中指定的 URL 连接到它(默认情况下为http://localhost:8080/sse
)。data/session.json
文件存在且有效。您可能需要手动运行npm start
一次来刷新会话。此外,请检查文件权限是否允许运行 MCP 客户端的用户读取/写入data
目录。./data/dialog_cache.json
并重启服务器(手动运行npm start
)以强制完全刷新。这可能需要一些时间。npm install
。如果 MCP 客户端启动了服务器,请确保工作目录设置正确或使用绝对路径。此仓库还包含 MCP 服务器使用的底层telegram-client.js
库。有关直接使用该库的详细信息(例如,用于自定义脚本),请参阅LIBRARY.md 。
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
模型上下文协议服务器使 AI 助手能够与 Telegram 交互,允许他们搜索频道、列出可用频道、检索消息以及通过正则表达式模式过滤消息。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kfastov/telegram-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server