Skip to main content

Connected CLI for imessage-mcp — stable public broker URL with account-managed API keys.

Project description

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, and serve all 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imessage_bridge-0.2.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imessage_bridge-0.2.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file imessage_bridge-0.2.2.tar.gz.

File metadata

  • Download URL: imessage_bridge-0.2.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for imessage_bridge-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f4108b0426348ae1d30b6aeaee490a7e4766bc8f126d847fdae782409c7a5f2d
MD5 31f28931667f8c669d08be9491691496
BLAKE2b-256 12d36ca79cde10e188dd65e6503ca273252ede8111be27a139bea6fbbac82189

See more details on using hashes here.

File details

Details for the file imessage_bridge-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: imessage_bridge-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for imessage_bridge-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b6933012246ad33a77a0e63af66c74f155e130639dca771a85100766f697f6
MD5 4daa6970a8455f8fb0f270c749493a2f
BLAKE2b-256 3d25693ac467d5ebca8783e19315f515c84153114a5aee7d150b86ab7e69fc6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page