imessage-bridge
The "batteries-included" CLI for imessage-mcp: adds account management, a stable broker URL, and one-command tunneling.
If you just want a local MCP server with no third-party service, install imessage-mcp instead. This package wraps it.
What you get
- Account-managed API keys. Sign up once, mint and revoke keys from the CLI.
- Stable broker URL.
https://imessage-cli.vercel.app/api/mcp— works in any MCP client (Claude Desktop, Cursor, Poke). Survives cloudflared restarts because the CLI re-registers automatically. - All of
imessage-mcp.setup,token, andserveall live in this binary too.
Install
Read-only (just read_messages):
brew install cloudflared
uv tool install imessage-bridge
Read + send (also exposes the send_message MCP tool):
brew install cloudflared
uv tool install 'imessage-bridge[send]'
The [send] extra pulls in imessage-mcp-send into the same tool environment. Without it, imessage-bridge serve --send will error and ask you to install it. You can always upgrade later with uv tool install 'imessage-bridge[send]' --force.
Quickstart
imessage-bridge setup # macOS Full Disk Access pane
imessage-bridge signup # create account, save API key locally
imessage-bridge serve --public # tunnel + register with broker
# prints the URL + token to paste into your MCP client
If you installed the [send] extra, serve will prompt whether to enable the send_message tool — or pass --send / --no-send to skip the prompt.
Commands
signup |
Create account, save API key |
new-key |
Mint a new API key (asks for email + password) |
logout |
Forget local API key |
whoami |
Show current account |
keys list |
List all API keys on your account |
keys revoke <id> |
Revoke a key by ID |
serve [--public] [--send/--no-send] |
Run the MCP server. --public tunnels + registers with the broker. --send requires imessage-bridge[send] |
setup |
Open macOS Full Disk Access pane |
token [--rotate] |
Print/rotate the local bearer token |
Configuration
The default broker is the public one at https://imessage-cli.vercel.app. Override for local dev or a self-hosted broker via either:
Environment variable (preferred, scoped per shell):
export IMESSAGE_BRIDGE_BACKEND_URL=http://localhost:3000
.env file — loaded automatically from either of:
~/.config/imessage-bridge/.env— persists across shell sessions./.env— for local dev (loaded from the current working directory)
See .env.example for the available keys. Values already in the shell environment take precedence over .env files.
License
MIT
Metadata
Release files for imessage-bridge 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imessage_bridge-0.2.2.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imessage_bridge-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / imessage_bridge-0.2.2.tar.gz
| Download URL | imessage_bridge-0.2.2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4108b0426348ae1d30b6aeaee490a7e4766bc8f126d847fdae782409c7a5f2d
|
|
BLAKE2b-256 checksum How to use checksums |
12d36ca79cde10e188dd65e6503ca273252ede8111be27a139bea6fbbac82189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / imessage_bridge-0.2.2-py3-none-any.whl
| Download URL | imessage_bridge-0.2.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0b6933012246ad33a77a0e63af66c74f155e130639dca771a85100766f697f6
|
|
BLAKE2b-256 checksum How to use checksums |
3d25693ac467d5ebca8783e19315f515c84153114a5aee7d150b86ab7e69fc6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|