GhostPaw Telegram
What it does
Telegram message mirror, search, sending, and moderation tools.
- Connects 在你的电脑上运行
- Account or key Needs TELEGRAM_BOT_TOKEN
- Category 聊天与邮件
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "telegram": { "command": "npx", "args": [ "-y", "@ghostpaw/telegram", "mcp" ], "env": { "TELEGRAM_BOT_TOKEN": "your-value", "GHOSTPAW_TELEGRAM_DB": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 GhostPaw Telegram 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 GhostPaw Telegram,或回答中出现 GhostPaw Telegram 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 GhostPaw Telegram
GhostPaw Telegram 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 GhostPaw Telegram 的应用
- 需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Inbox Zero✓ ChatGPT
- draw.io✓ ChatGPT
- TradingMCP✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user telegram --env TELEGRAM_BOT_TOKEN=your-value --env GHOSTPAW_TELEGRAM_DB=your-value -- npx -y @ghostpaw/telegram mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 GhostPaw Telegram 在列表中并显示已连接
试一试
用 GhostPaw Telegram 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 GhostPaw Telegram,或回答中出现 GhostPaw Telegram 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 GhostPaw Telegram 的设置中,TELEGRAM_BOT_TOKEN, GHOSTPAW_TELEGRAM_DB 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 GhostPaw Telegram 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 GhostPaw Telegram,或回答中出现 GhostPaw Telegram 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 GhostPaw Telegram 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
填写你的密钥
在 GhostPaw Telegram 的设置中,TELEGRAM_BOT_TOKEN, GHOSTPAW_TELEGRAM_DB 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 GhostPaw Telegram 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 GhostPaw Telegram,或回答中出现 GhostPaw Telegram 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user telegram --env TELEGRAM_BOT_TOKEN=your-value --env GHOSTPAW_TELEGRAM_DB=your-value -- npx -y @ghostpaw/telegram mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram",
"mcp"
],
"env": {
"TELEGRAM_BOT_TOKEN": "your-value",
"GHOSTPAW_TELEGRAM_DB": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram",
"mcp"
],
"env": {
"TELEGRAM_BOT_TOKEN": "your-value",
"GHOSTPAW_TELEGRAM_DB": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"telegram": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram",
"mcp"
],
"env": {
"TELEGRAM_BOT_TOKEN": "your-value",
"GHOSTPAW_TELEGRAM_DB": "your-value"
}
}
}
}需要你填写的值
TELEGRAM_BOT_TOKEN机密 envTelegram Bot API token; enables send and moderation executionGHOSTPAW_TELEGRAM_DBenvSQLite database path (default: ~/.ghostpaw/telegram.db)
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 GhostPawJS 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于今天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“聊天与邮件”中的其他服务器比较i
- 星标数多于此分类中其他 1970 个服务器的 83%
- 发布到注册中心的时间比此分类中其他 1970 个服务器的 90% 更新
- 基础检查结果等于或优于此分类中其他 1970 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
GhostPaw Telegram 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:TELEGRAM_BOT_TOKEN
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于今天,最新版本(0.7.9)于前天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Inbox Zero, draw.io, TradingMCP
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
draw.io
Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.
TradingMCP
Market analysis for AI assistants: screeners, multi-timeframe analysis, backtests, in-chat charts.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@ghostpaw/telegram
Agent Telegram bots: every update mirrored into SQLite before your handler runs.
ghostpaw-telegram --help # after installing the release binary
Telegram bot channel engine — fetch transport with zero runtime dependencies, SQLite message mirror with FTS5 full-text search, eager file BLOB storage, markdown rendering, and a structured LLM tool facade.
Every incoming update is mirrored into a local SQLite database before your handler runs, giving you a persistent, queryable record of everything the bot sees — including the raw bytes of every photo, document, voice message, and video, which are downloaded in the background after the update is stored and kept once per SHA-256 hash. A failed download leaves the file row without a checksum, so you can retry it with write.downloadFile. It ships as a single prebundled blob designed for two audiences at once: human developers building bot backends in code, and LLM agents operating through a structured tool facade.
MCP server
Every client below starts the same stdio server: ghostpaw-telegram mcp. For npm-based environments, use npx -y @ghostpaw/telegram mcp. Messages live in ~/.ghostpaw/telegram.db unless the GHOSTPAW_TELEGRAM_DB environment variable (absolute path) or --db says otherwise.
Claude Code
claude mcp add ghostpaw-telegram -- ghostpaw-telegram mcp
or as a plugin, which also installs the skill:
/plugin marketplace add GhostPawJS/telegram
/plugin install ghostpaw-telegram@ghostpaw-telegram
Codex CLI (~/.telegram/config.toml)
[mcp_servers.ghostpaw-telegram]
command = "ghostpaw-telegram" args = ["mcp"]
Cursor (.cursor/mcp.json), Claude Desktop (claude_desktop_config.json) or a project .mcp.json:
{
"mcpServers": { "ghostpaw-telegram": { "command": "ghostpaw-telegram", "args": ["mcp"] } } }
Claude Desktop users can also install server.mcpb from the latest GitHub release. A Dockerfile is included for container hosts: docker build -t ghostpaw-telegram . && docker run -i --rm -v telegram:/data ghostpaw-telegram.
The server speaks MCP 2026-07-28 (stateless, server/discover) and the initialize-based revisions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05.
Set TELEGRAM_BOT_TOKEN in the server environment to execute send and moderation actions. Without a token, these tools return plans; local reads and tool discovery work offline. The .mcp.json token placeholder must be supplied by the client environment. The server reads the mirror populated by your library transport; it does not poll for updates.
Noun-verb CLI
The 27 command paths derive from the 4 tool schemas:
bot stats | state <key> | chats
mirror message mirror messages | search mirror chat | chats | user | users mirror reactions mirror replies | edits message send | edit message delete | pin | unpin message typing | forward member ban | unban | restrict member promote | kick | show member list
Use help or --help for schema flags. Fields accept kebab-case flags, such as --can-send-messages true and --is-admin false. Objects accept JSON; arrays accept repeated flags or JSON. Values are literal, including a leading @; no flag reads a file. A single - reads stdin JSON; explicit flags override stdin fields. -- ends option parsing.
Global flags: --db , --json, --quiet, --compact, --help/-h, --version/-V/-v, --no-color. Piped output defaults to JSON; --quiet suppresses stdout. completions bash|zsh|fish prints completion setup and version prints the package version and installation variant.
| New command exit code | Meaning |
|---|---|
| 0 | Success or no-op |
| 1 | Tool error |
| 2 | Usage or schema error |
| 3 | Clarification needed or not found |
| 4 | Conflict or version mismatch |
| 70 | Unexpected internal error |
Existing tools [--json], describe , call [JSON|-], flat tg_ --parameter value, mcp and skill forms keep their behavior. The noun-verb send and moderation commands always return plans, including when TELEGRAM_BOT_TOKEN is set. Execution remains available through createTelegramToolFacade({ client, execute: true }); the existing tool-level CLI and MCP forms execute when TELEGRAM_BOT_TOKEN is set. Local mirror reads and plans work offline without credentials. GHOSTPAW_TELEGRAM_DB sets the default database, otherwise ~/.ghostpaw/telegram.db is used; --db overrides both.
Offline examples:
ghostpaw-telegram mirror chats --db /tmp/telegram-port-example.db --json
ghostpaw-telegram message send 123 'Offline plan' --db /tmp/telegram-port-example.db --json ghostpaw-telegram mirror messages 123 --db /tmp/telegram-port-example.db --json
The empty mirror returns no chats or messages. The send returns an action descriptor without sending a Telegram message.
CLI
ghostpaw-telegram tools
ghostpaw-telegram call tg_read '{"subcommand":"list_chats"}' ghostpaw-telegram --db :memory: call tg_send '{"subcommand":"send_message","chatId":123,"text":"Hello"}'
The send example returns a plan unless TELEGRAM_BOT_TOKEN is set.
Use ghostpaw-telegram skill --short for the compact CLI cheat sheet, ghostpaw-telegram skill --list to list guides, and ghostpaw-telegram skill to read one.
On POSIX, CLI and MCP mirror databases are created with mode 0600, including new SQLite WAL/SHM files. Directories created for the database use mode 0700. Existing database and directory permissions are preserved. The mirror may contain private chat content and file blobs.
Agent Skill
SKILL.md and skills/telegram/ ship in the package. Print the skill with ghostpaw-telegram skill or copy skills/telegram/ into your skills folder.
Install
Release binary (default)
Each line downloads the latest release asset, checks it against the release's SHA256SUMS and installs it on the PATH (~/.local/bin on Linux/macOS; the Windows script adds its folder to the user PATH).
These lines never edit ~/.profile or other shell startup files: export PATH applies to the current shell only. To keep it in new shells, use the ~/.profile line below.
linux-x64:
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.sh | sh -s -- --target linux-x64 && export PATH="$HOME/.local/bin:$PATH"
linux-arm64:
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.sh | sh -s -- --target linux-arm64 && export PATH="$HOME/.local/bin:$PATH"
darwin-arm64:
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.sh | sh -s -- --target darwin-arm64 && export PATH="$HOME/.local/bin:$PATH"
darwin-x64:
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.sh | sh -s -- --target darwin-x64 && export PATH="$HOME/.local/bin:$PATH"
windows-x64 (PowerShell; persistently adds the install folder to the user PATH):
irm https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.ps1 | iex
To skip the persistent user PATH edit:
$env:GHOSTPAW_NO_MODIFY_PATH=1; irm https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.ps1 | iex
Pinned to a release:
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.sh | sh -s -- --target linux-x64 --version 0.7.8 && export PATH="$HOME/.local/bin:$PATH"
Also adding ~/.local/bin to ~/.profile (edits ~/.profile once; skipped if it already mentions ~/.local/bin; zsh login shells read ~/.zprofile instead, so use that file name there):
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/telegram/main/install.sh | sh -s -- --target linux-x64 && { grep -qs '.local/bin' ~/.profile || echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile; } && export PATH="$HOME/.local/bin:$PATH"
$ ghostpaw-telegram --version
telegram 0.7.8 (binary, linux-x64)
Scripts that compare versions should use --version --short or --version --json.
A session with the 0.7.1 linux-x64 binary against a fresh database, with no token set, so outbound commands only return the planned action and nothing is sent (output piped through jq to keep it short):
The same session as an animated GIF.
Other release installers:
mise use -g github:GhostPawJS/telegram
ubi --project GhostPawJS/telegram --exe ghostpaw-telegram --in ~/.local/bin eget GhostPawJS/telegram
For aqua, define a github_release package in aqua.yaml:
registries:
- name: telegram type: local path: telegram-registry.yaml
packages:
- name: GhostPawJS/telegram@v registry: telegram
telegram-registry.yaml:
packages:
- type: github_release repo_owner: GhostPawJS repo_name: telegram asset: ghostpaw-telegram-{{trimV .Version}}-{{.OS}}-{{.Arch}}.tar.gz format: tar.gz replacements: { amd64: x64 } overrides:
- goos: windows asset: ghostpaw-telegram-{{trimV .Version}}-windows-{{.Arch}}.zip format: zip files:
- name: ghostpaw-telegram
Install scripts verify SHA256SUMS. To verify a downloaded archive's build attestation:
gh attestation verify <archive> -R GhostPawJS/telegram
Set GHOSTPAW_VERIFY=attestation for attestation verification in install.sh. Binaries are unsigned; macOS binaries carry an ad-hoc signature. For a browser download on macOS, remove quarantine with xattr -d com.apple.quarantine /path/to/ghostpaw-telegram. Linux binaries require glibc 2.28+; use npx on Alpine. See the [binary build workflow](.github/wo