Antigravity Beeper & Matrix MCP Integration
Connects to Matrix (and Beeper) over end-to-end encrypted Olm/Megolm messaging using a dedicated Matrix device, enabling tools that send notifications to your phone (beeper_notify) and ask asynchronous questions whose replies are decrypted and used to wake up the agent conversation (beeper_ask).
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Antigravity Beeper & Matrix MCP Integration
An asynchronous Model Context Protocol (MCP) integration connecting AI coding assistants to Beeper and Matrix with end-to-end encryption (E2EE).
Compatibility: Fully compliant with the Model Context Protocol (MCP) standard (
beeper_notifyworks with any MCP client such as Claude Desktop, Cursor, or Windsurf). Reactive async wakeup (beeper_ask) is built specifically for Google Antigravity via its internalagentapi.
Architecture & How It Works
Antigravity Agent ──(MCP / stdio)──▶ Local Python Daemon ──(Matrix E2EE)──▶ Beeper (Phone)
▲ │
└────────── Async Reply ───────────────┘
(Auto-shuts down after 120s idle)Decoupled Architecture: The MCP server (
mcp_server.py) acts as a lightweight stdio bridge. It talks to an autonomous background daemon (core/hub.py) over authenticated local HTTP (127.0.0.1:24680).Dedicated E2EE Device: The daemon runs with its own dedicated Matrix device ID and local SQLite cryptographic store (
data/crypto_store/), preventing Megolm session ratchet conflicts with Beeper Desktop.Reactive Wakeup: When an agent calls
beeper_ask, the question's event ID is mapped to the current conversation ID. When you swipe and reply in Beeper on your phone, the daemon decrypts the message and invokes Antigravity's internal API (agentapi send-message) to instantly resume the conversation.Zero-Waste Lifecycle: The daemon monitors activity and shuts down automatically after 120 seconds of idle time. Zero CPU or RAM is wasted when you are not actively interacting.
Offline Recovery Queue: If you reply on your phone while Antigravity is closed or restarting, the daemon safely stores your response in
data/offline_replies.jsonand flushes it into the chat the moment the editor becomes reachable.
Related MCP server: WhatsApp MCP
Highlights
Instant Notifications (
beeper_notify): Send real-time updates and task status directly to your phone.Interactive Questions (
beeper_ask): Ask questions asynchronously. As soon as you reply on Beeper, your message wakes up Antigravity.Resource & Token Efficient: Wakes up cleanly via event injection without polling loops wasting LLM tokens; background daemon automatically shuts down after 120 seconds of inactivity (zero idle RAM).
Windows System Tray: Native Windows tray icon with right-click menu ("Quit Hub") to inspect activity or cleanly terminate the background service.
Interactive Setup Wizard: Guided CLI setup for device registration, room selection, and E2EE key initialization.
Prerequisites
1. Matrix & Beeper Setup
To ensure clean cryptographic separation, we recommend:
Bot Account: A free, dedicated Matrix account (e.g.
@your_bot:matrix.org) created on matrix.org or your custom homeserver.Personal Account: Your personal Beeper or Matrix account (e.g.
@you:beeper.com).Private Room: Create a direct encrypted chat between your personal account and your bot account. The interactive wizard will let you select this room automatically.
2. System Requirements
Python: Version 3.10 to 3.12 recommended.
Windows Pre-requisites: Modern
matrix-nio(>=0.24.0) uses vodozemac (Matrix's official Rust-based Olm/Megolm engine), providing pre-compiled Python ABI3 binary wheels on PyPI. It installs cleanly out-of-the-box on 64-bit Windows without requiring Visual C++ Build Tools or CMake.
Getting Started
1. Installation
Clone the repository and install the dependencies:
# Clone repository and enter folder
git clone https://github.com/Thomas-dvd/Antigravity-Beeper-MCP.git
cd Antigravity-Beeper-MCP
# Optional: create a virtual environment
python -m venv .venv
.venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt2. Guided Device Onboarding
Run the interactive setup wizard to authenticate your dedicated Matrix device and pick your notification room:
# Standard password login (interactive)
python cli/setup_device.py
# Or SSO browser login (recommended if your Matrix account uses Google or GitHub)
python cli/setup_device.py --ssoCredentials (tokens, device IDs, homeserver) are saved securely in
.env.User preferences (tray icon, idle timeout) are saved in
data/config.json.
3. Register in Antigravity / MCP Client
Add the server to your %USERPROFILE%\.gemini\config\mcp_config.json (or your client's MCP configuration file):
{
"mcpServers": {
"beeper": {
"command": "python",
"args": ["-B", "C:\\path\\to\\Antigravity-Beeper-MCP\\mcp_server.py"]
}
}
}(If you used a virtual environment, set "command" to C:\\path\\to\\Antigravity-Beeper-MCP\\.venv\\Scripts\\python.exe).
Available Tools
beeper_notify
One-way notification tool for task milestones, alerts, and build reports. Does not wait for user input and does not hold the background daemon open.
Parameters:
message(string, required): The text or Markdown summary to send.title(string, optional): Short bold header for the notification (e.g."Build Finished").
Example Use Case: An agent finishes generating code or running unit tests, notifies your phone that the test suite passed, and finishes its turn.
beeper_ask
Asynchronous, non-blocking question tool. Dispatches a question to your phone and links it to the active conversation session.
Parameters:
question(string, required): The specific decision or clarification needed from the user.title(string, optional): Short bold context (e.g."❓ Architecture Decision").conversation_id(string, optional): Target conversation ID (automatically detected if omitted).
Example Use Case: The agent reaches a design crossroad (e.g. choosing between SQLite or PostgreSQL). It asks on Beeper, allows you to continue your day, and when you swipe and reply "PostgreSQL" from your phone, the conversation wakes up and executes your choice.
Standalone CLI Tools (Shell & CI/CD)
The integration is not restricted to MCP; you can use the standalone CLI utilities in any shell script, automation workflow, or CI/CD pipeline:
# 1. Send an immediate notification
python cli/notify.py "Tests completed with 0 errors" --title "CI Pipeline" --json
# 2. Ask a question and wait synchronously for user reply from Beeper
python cli/wait_reply.py "Deploy build #104 to production?" --title "Deployment Gate" --jsonBoth tools support --json formatting for clean parsing in automation scripts or jq.
Configuration
Preferences can be modified anytime in data/config.json:
{
"show_tray_icon": true,
"idle_timeout": 120
}show_tray_icon(bool): Toggle the Windows system tray icon on or off (default:true).idle_timeout(int): Seconds of inactivity before the daemon cleanly shuts down (default:120).
License
This project is licensed under the MIT License - see the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Reach your own phone from an AI agent: notifications, approval questions, reminders, ring, files.
Send yourself a push notification from an AI assistant. No account, one environment variable.
Let your AI agents ask you for decisions and get your answers back, from your phone or the web.
Let your AI agent message and call your Android phone, and get your reply or the call transcript.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to send push notifications and interactive alerts to iPhone and Mac devices via the BotBell app. It allows AI to receive user replies and manage notification bots for tasks like alerts, reminders, and remote approvals.29 npm1MIT
- AlicenseNot gradedqualityDmaintenanceHuman-in-the-loop approvals and notifications for AI agents via WhatsApp. Enables Cursor, Claude Code, and autonomous AI agents to reach users away from their computers.112 npmISC
- AlicenseAqualityCmaintenanceEnables bidirectional communication between AI coding assistants and Telegram, allowing interactive confirmations via inline buttons, media and screenshot ingestion, and on-demand message polling without a background daemon.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to ask the user questions, receive written replies, share files, and hand tasks to other agent sessions — with every cross-agent request routed through human approval first. Sessions register themselves so they can be read, woken, and answered from a phone over a local-first, self-hosted setup.2Apache 2.0