# GhostPaw Telegram

> GhostPaw Telegram is an open-source MCP server for communication. Telegram bot memory in SQLite with edit history, search and guarded send tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** telegram, CLI, self-hosted, Linux, macOS, Windows
- **Website:** https://telegram.ghostpaw.dev
- **Repository:** https://github.com/ghostpawjs/telegram
- **MCP Registry name:** io.github.GhostPawJS/telegram
- **Categories:** communication
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add telegram --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' -- npx -y @ghostpaw/telegram
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "telegram": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "telegram": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "telegram": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "telegram": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "telegram": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/telegram"
      ],
      "env": {
        "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
      }
    }
  }
}
```

## 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

- [BoardAgent](https://ai-powered.com/mcp/boardagent): BoardAgent is a free MCP server for community directories.
- [Callout](https://ai-powered.com/mcp/callout): Callout is a freemium MCP server for communication.
- [nicemails](https://ai-powered.com/mcp/nicemails): nicemails is a freemium MCP server for communication.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [PostBaton](https://ai-powered.com/mcp/postbaton): PostBaton is a freemium MCP server for marketing and seo.
- [MeetBetr](https://ai-powered.com/mcp/meetbetr): MeetBetr is a free MCP server for productivity.
- [Host Tools](https://ai-powered.com/mcp/host-tools): Host Tools is an MCP server for home services.
- [iMessage MCP](https://ai-powered.com/mcp/imessage-mcp): iMessage MCP is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/ghostpaw-telegram
