Beeper Texts MCP Server

Beeper Texts MCP Server

Local-only MCP server that exposes Beeper Texts data (messages, chats, contacts) from the macOS Beeper Desktop SQLite database for AI assistants and automation tools, supporting search and media retrieval across multiple platforms.

Category
访问服务器

README

Beeper Texts MCP Server

A local-only MCP (Model Context Protocol) server tested on macOS that exposes Beeper Texts data (messages, contacts, chats) for use with AI assistants and automation tools. Local-only means the MCP accesses your local Beeper SQLite database only, and does not make or trigger any network requests.

Features

  • Chat Management: List and browse conversations across platforms
  • Message Access: Retrieve messages from specific chats
  • Search: Search messages by content, chat name, or by sender
  • Media Access: Fetch attachment bytes/paths via a URI returned in messages
  • Multi-Platform Support: Tested with WhatsApp, Telegram, Signal, Instagram, Twitter/X and LinkedIn. Should work with any Beeper-supported platform.

Requirements

  • macOS only: This server relies on Beeper Desktop's local database structure only
  • Beeper Desktop: Must be installed, configured with at least one connected account and running to receive new messages
  • Python 3.10+: Required for running the server

Installation

Install from PyPI using pip or uvx:

pip install mcp-beeper-texts

Or use uvx for isolated execution:

uvx mcp-beeper-texts

Configuration

Claude Desktop

Add the following to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "beeper": {
      "command": "uvx",
      "args": ["mcp-beeper-texts"]
    }
  }
}

Other MCP Clients

For other MCP clients, use the command:

uvx mcp-beeper-texts

The server communicates over stdio transport.

TODO

Add support for:

  • [ ] Creating, Editing, and Deleting drafts
  • [ ] Sending messages
  • [ ] Sending media attachments

Available Tools

list_chats

List group and DM chats with metadata.

  • label (optional): Filter set: inbox, archive, favourite, all, unread (default: inbox)
  • sort_by (optional): latest_message, last_active, or name (default: latest_message)
  • limit (optional): Max chats to return (default: 25)
  • recent_messages_limit (optional): Include last N messages per chat (default: 3, set 0 to disable)
  • max_participants (optional): Max participant names for groups (default: 5)
  • include_low_priority (optional): Include low priority in non-inbox views (default: false)

get_messages

Get chronologically ordered messages from a specific chat.

  • chat_id (required)
  • limit (optional): Default 50
  • before/after (optional): ISO-8601 timestamps to page

search_message_contents

Search message contents across chats with optional context.

  • query (required)
  • chat_id (optional): Limit to one chat
  • limit (optional): Default 25
  • include_context (optional): Include surrounding messages (default: true)

search_chat_names

Search chats by name/title with label filtering.

  • query (required)
  • label (optional): Default all
  • limit (optional): Default 25

get_person_messages

Get messages sent by a specific person across chats.

  • person_name (required)
  • limit (optional): Max per chat (default: 50)
  • platform (optional): Platform filter
  • chat_type (optional): dm, group, or all
  • days_back (optional): Only include messages from the last N days
  • include_context (optional): Include surrounding messages

get_media_attachment

Retrieve media attachment bytes/path by URI returned in Message.attachments.

  • attachment_uri (required): e.g., beeper://attachment/{message_id}/{attachment_index}
  • optimize_for_context (optional): For images, resize to ≤1568px for efficiency (default: true)

Development

Setup

  1. Clone the repository
  2. Install dependencies: uv sync
  3. Run tests: uv run pytest
  4. Format code: uv run ruff format .
  5. Lint code: uv run ruff check . --fix

Testing

Run the test suite:

uv run pytest tests/ -v

MCP Inspector

Use the MCP Inspector for development and testing:

uv run mcp dev src/mcp_beeper_texts/server.py

Claude Desktop

For Claude Desktop testing (or other local MCP clients), use this configuration in ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "Beeper": {
      "command": "/opt/homebrew/bin/uv",
      "args": [
        "run",
        "--dev",
        "--project",
        "/path/to/your/mcp-beeper-texts",
        "mcp-beeper-texts"
      ]
    }
  }
}

Replace /path/to/your/mcp-beeper-texts with the actual path to your local repository.

Hot-Reload Development

For faster development with automatic reloading when files change, you can use MCP Reloader:

# Install MCP Reloader (one-time setup)
git clone https://github.com/mizchi/mcp-reloader.git
cd mcp-reloader
npm install
npm run build

# Run with hot-reload (from your project directory)
npx mcp-reloader --command "uv run src/mcp_beeper_texts/server.py"

This automatically restarts the server when you modify any Python files, providing a faster development workflow.

Database Access

The server reads from Beeper's local SQLite databases located at:

~/Library/Application Support/BeeperTexts/

  • index.db: Beeper UI-optimized message and chat index and metadata
  • local-{platform}/megabridge.db: Platform-specific data and contacts

The server only requires read access for most operations, with write access eventually needed for draft management and message sending.

Troubleshooting

"Beeper directory not found"

Ensure Beeper Desktop is installed and has been run at least once. The application creates its data directory on first launch.

"Database not found"

Make sure Beeper Desktop is properly configured with at least one connected account. The databases are created when platforms are connected.

Permission errors

Ensure the server has read access to ~/Library/Application Support/BeeperTexts/. This should be automatic on macOS.

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome. Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/new-feature)
  3. Add functionality and tests if applicable
  4. Run the test suite (uv run pytest)
  5. Format and lint your code (uv run ruff format . && uv run ruff check . --fix)
  6. Commit, Push, and create a Pull Request

Changelog

0.0.1

  • Initial release
  • Basic chat, message, and contact management
  • Search functionality across all platforms
  • Basic test suite

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选