GhostPaw Telegram
Telegram bot memory in SQLite with edit history, search and guarded send tools
- Pricing
- Open source
- Platforms
- telegram, CLI, self-hosted
- Runs
- Locally
- Version
- 0.7.9
- Listing updated
- 2 days ago
About GhostPaw Telegram
GhostPaw Telegram is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
GhostPaw telegram mirrors every update your bot receives into SQLite before your handler runs. Messages, edit history, reply chains and file bytes are stored, with photos, documents, voice notes and videos downloaded in the background and kept once per SHA-256 hash. An edited message shows its new text while the original stays queryable, and search uses FTS5.
The MCP server starts with ghostpaw-telegram mcp and reads the mirror at ~/.ghostpaw/telegram.db (or GHOSTPAW_TELEGRAM_DB). The README says it does not poll for updates itself; the mirror is filled by your library transport. Set TELEGRAM_BOT_TOKEN to let send and moderation tools execute, otherwise they return plans, while local reads and tool discovery work offline.
It is MIT licensed, needs Node.js 24 or newer for the npm package, and the binary bundles its own runtime with zero runtime dependencies. Claude Desktop users can install a server.mcpb, and a Dockerfile is included. The README also covers placing the database inside a writable root for Codex CLI sandboxes.
Install
Run in a terminal
claude mcp add telegram --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' -- npx -y @ghostpaw/telegramAdd to claude_desktop_config.json
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram"
],
"env": {
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram"
],
"env": {
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"telegram": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram"
],
"env": {
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram"
],
"env": {
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"telegram": {
"command": "npx",
"args": [
"-y",
"@ghostpaw/telegram"
],
"env": {
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Configuration
TELEGRAM_BOT_TOKENTelegram Bot API token; enables send and moderation executionGHOSTPAW_TELEGRAM_DBSQLite database path (default: ~/.ghostpaw/telegram.db)
What it does
- Edit history
- Keeps earlier versions of edited messages.
- File storage
- Stores attachment bytes once per SHA-256 hash.
- FTS5 search
- Searches the mirrored chat history.
- Plan or execute
- Send and moderation tools return plans unless a bot token is set.
- Mirror before handler
- Updates are saved before your code runs.
- Offline reads
- Local reads and discovery work with no token.
Good for
- Ask what a group said before a message was edited
- Search a group's history for an invoice number
- Plan a moderation action and review it before running it
- Build a Telegram bot that remembers the chat
Pricing
Open source
Free and MIT licensed
Prices change. Check telegram.ghostpaw.dev before you buy.
GhostPaw Telegram FAQ
Does it fetch new messages by itself?
No. The README says the server reads a mirror populated by your library transport and does not poll for updates.
Can it send messages?
Yes, when `TELEGRAM_BOT_TOKEN` is set; without it, send tools return plans.
Where is data stored?
In a local SQLite file, `~/.ghostpaw/telegram.db` by default.
Is it free?
The site says free and MIT licensed.
Is GhostPaw Telegram free?
Yes. GhostPaw Telegram is open source, so you can use and self-host it for free.
How do I add GhostPaw Telegram to Claude Code?
Run this command in your terminal: claude mcp add telegram --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' -- npx -y @ghostpaw/telegram
What are the best alternatives to GhostPaw Telegram?
The closest alternatives to GhostPaw Telegram are BoardAgent, Callout, nicemails, SOMMON Office and PostBaton.
Alternatives to GhostPaw Telegram

BoardAgent
MCP serverRemote MCP server for a message board where only AI agents post, reply and vote
- 27 tools
- Remote
- Free
- Community directories

Callout
MCP serverLet an AI agent place real phone calls in Japanese or English and read the transcript
- 5 tools
- Remote
- Freemium
- Communication

nicemails
MCP serverGive each AI agent its own real mailbox to read, search and send email with your approval
- 8 tools
- Remote
- Freemium
- Communication

SOMMON Office
MCP serverSend real paper letters via Deutsche Post from an AI assistant, to 218 countries
Not checked yet- 14 tools
- Remote
- Paid
- Communication

PostBaton
MCP serverSchedule, edit and cancel social posts across networks from an AI assistant or REST API
Not checked yet- Remote
- Freemium
- Marketing and SEO

MeetBetr
MCP serverFind when friends are free and send them a plan after you confirm it
- Remote
- Free
- Productivity