Listed from the MCP registry; nobody on Odel publishes it.
Speak text on your Android phone from any agent. Your own S3 bucket, playback receipts, opt-in alarm
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
docker run -i --rm ghcr.io/automaticai-io/earshot-relay:1.1.2
MCP client config
{
"mcpServers": {
"earshot-relay": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/automaticai-io/earshot-relay:1.1.2"
]
}
}
}A small self-hosted service that lets scripts, CI jobs and AI agents send speech to your phone. You POST text (or an audio file) to the relay, it drops an object into your own S3-compatible bucket, and the Earshot Android app, when it is listening to that bucket, plays it out loud. The relay also records what the phone reported doing with each message, so you can ask for a receipt.
Put thing in bucket. Hear it on phone. The relay is the "put thing in bucket" part, behind one HTTPS endpoint, a CLI and an MCP server.
missed and not played.PutObject (minimal permissions). Not the phone's key.The image is ghcr.io/automaticai-io/earshot-relay (linux/amd64 and linux/arm64, so a Raspberry Pi works):
curl -fsSLO https://raw.githubusercontent.com/AutomaticAI-io/earshot-relay/main/.env.example && mv .env.example .env
docker run --rm ghcr.io/automaticai-io/earshot-relay token # prints a random token for EARSHOT_RELAY_TOKEN
# fill in .env: the bucket, the writer key and that token
docker run -d --name earshot-relay --restart unless-stopped \
--env-file .env -p 127.0.0.1:8080:8080 -v earshot-relay-data:/data \
ghcr.io/automaticai-io/earshot-relay
docker exec earshot-relay earshot-relay doctor # checks the relay and writes one inert test object
:latest is the newest release, :1 follows 1.x, and :edge is the tip of main. With compose, docker compose up -d uses the same image; docker compose up -d --build builds this checkout instead.
The relay refuses to start while .env still holds the example placeholders or an empty token. Without Docker: uv sync, then uv run earshot-relay serve with the same environment variables (put them in your shell, or set -a; . ./.env; set +a).
export EARSHOT_API_URL=http://127.0.0.1:8080
export EARSHOT_API_TOKEN=... # the EARSHOT_RELAY_TOKEN you set
curl -fsS -X POST "$EARSHOT_API_URL/v1/messages" \
-H "Authorization: Bearer $EARSHOT_API_TOKEN" -H "Content-Type: application/json" \
-d '{"text": "Build finished. All tests passed."}'
# {"id":"msg_...","status":"stored","channel":"phone","key":"phone/....say",...} <- HTTP 202
202 means the message is stored in the bucket. If the phone is listening, it should speak it within a few seconds. Then ask what the phone did (needs receipts set up):
curl -fsS "$EARSHOT_API_URL/v1/messages/latest?wait=30" -H "Authorization: Bearer $EARSHOT_API_TOKEN"
Nothing played? Check the app's Last 20 items list on the phone (a failed .say row names the cause, such as a missing TTS voice), the media volume, and the receipt's hint.
Or use the CLI. In the container it is already installed (docker exec earshot-relay earshot-relay say "hello"); from a checkout, run it as uv run earshot-relay ..., or install it on your PATH with uv tool install .:
earshot-relay say "Deploy is done"
earshot-relay drop ding.mp3
earshot-relay receipt latest --wait 30 # exit 0 finished, 3 not played on any reporting device, 4 timed out
earshot-relay doctor # checks the relay and writes one inert test object
Retrying a send? Pass an Idempotency-Key header (CLI: --idempotency-key): the same key within 24 hours returns the first result instead of playing twice.
POST /v1/messages | Text ({"text": ...}) or an audio file (multipart). Returns 202 once the object is stored in the bucket, or held (status: coalescing) when sent with coalesce_window_s. Optional Idempotency-Key header. |
GET /v1/messages/{id} | The receipt: stored, detected, started, finished, skipped, failed, missed or unconfirmed, with a timeline. ?wait=30 long-polls. |
GET /v1/messages, GET /v1/status | Recent messages; relay, bucket and device state. |
POST /v1/doctor | Checks configuration and the bucket write. |
POST /v1/beacons/{token} | Where the phone reports what it did. This is what makes receipts possible. |
tag, coalesce_window_s, cooldown_s, normalize | Hygiene for every sender: strip emoji, markdown and URLs before speaking, merge a burst under one tag into one message, drop repeats, and an optional delivery watchdog that posts a notice when sends get no playback report (docs/hygiene.md). |
/compat/... | Optional ntfy, Gotify, Pushover and Join request shapes, so existing producers switch by changing a URL (docs/compat.md). Off by default. |
/mcp | An MCP server over streamable HTTP, same bearer token. A stdio mode is earshot-relay mcp. |
The full contract is openapi.yaml; a readable version is docs/api.md.
By default the text goes to the bucket as a .say object and the phone's own Android text-to-speech speaks it. Optionally point the relay at any OpenAI-compatible /audio/speech server and it will synthesize audio itself ("speech": "server"), with a 700 ms lead-in so the start of the sentence is not swallowed. See docs/tts.md, which also covers ElevenLabs and local OpenAI-compatible voices. A server TTS failure returns an error; it never silently falls back to the phone's voice.
claude mcp add --transport http earshot https://your-relay.example.com/mcp \
--header "Authorization: Bearer $EARSHOT_API_TOKEN"
claude mcp add earshot --env EARSHOT_API_URL=http://127.0.0.1:8080 \
--env EARSHOT_API_TOKEN=$EARSHOT_API_TOKEN -- earshot-relay mcp
The first form talks to a running relay over HTTP; the second runs a local stdio server, which needs earshot-relay on your PATH: install it once with uv tool install /absolute/path/to/earshot-relay (Claude Code starts the server from your project directory, so a relative path such as uvx --from . does not work). Tools: say, receipt, recent, status, plus alarm only if you enabled that channel. See docs/mcp.md.
Or install it as a Claude Code plugin, which asks for your relay URL and token once: claude plugin marketplace add AutomaticAI-io/earshot-relay, then claude plugin install earshot@earshot-relay.
For agent hooks (speak when Claude Code needs you, or when it finishes), see examples/ and read the warning there: hook examples send a slice of agent text to your bucket, so use a private bucket.
Tools that already push to ntfy, Gotify, Pushover or Join can push to the relay instead. Turn it on with
EARSHOT_RELAY_COMPAT=ntfy,gotify,pushover,join (it is off by default), then:
curl -H "Authorization: Bearer $EARSHOT_API_TOKEN" -H "Title: Backup" -d "Nightly backup finished" \
http://127.0.0.1:8080/compat/ntfy/phone # an ntfy publish, stored like a native send
apprise -b "Server rebooted" "gotify://127.0.0.1:8080/compat/gotify/$EARSHOT_API_TOKEN"
These sends share the native rate limits, Idempotency-Key handling, bucket path and receipts, and a success reply
means stored, not played. A producer's top priority (ntfy 5, Gotify 8 and up, Pushover 2) is stored as a normal item
with X-Earshot-Downgraded: alarm unless you also set EARSHOT_RELAY_COMPAT_ALARM=1 and list alarm. Unsupported
fields are ignored and named in X-Earshot-Ignored. Tested with real clients (curl, Apprise, the ntfy and gotify
CLIs, Uptime Kuma, a Go Pushover library); Pushover and Join clients that hard-code the vendor URL cannot be
redirected. Everything, including what was and was not verified: docs/compat.md.
The phone can report detected, started and finished to an HTTPS endpoint you choose. Set EARSHOT_RELAY_BEACON_TOKEN and EARSHOT_RELAY_PUBLIC_URL, run earshot-relay status, and paste the printed https://<host>/v1/beacons/<token> into the app's Optional HTTPS beacon endpoint. The phone must be able to reach that URL, which usually means a tunnel: docs/tunnels.md covers Tailscale serve and Cloudflare Tunnel.
A receipt records what the phone did (device playback). It is not proof that a person heard the message, and the relay never words it that way. Details and edge cases: docs/receipts.md.
/healthz and the beacon URL needs Authorization: Bearer <EARSHOT_RELAY_TOKEN>. The beacon URL carries its own, different token in the path; it can record receipts but cannot send messages.s3:PutObject on the channel prefixes. It never reads your bucket and never holds the phone's read key (docs/permissions.md).phone only. The loud alarm channel cannot be sent to unless you list it in EARSHOT_RELAY_CHANNELS, the MCP alarm tool exists only then, and alarm can never be the default channel.alarm does on the phone: a siren, then the message on the alarm stream at high volume, ahead of normal items. It plays during a phone call (unless the app's Alarms can interrupt calls is off) and the other party may hear it. Do Not Disturb set to "Total silence", an Android refusal, a stopped service, a powered-off phone, battery restrictions or no network can still silence it. It is not an emergency or life-safety service.coalesce_window_s sits in SQLite until its window closes, then is deleted (docs/hygiene.md). Tokens are never logged. Secrets can be supplied as files (EARSHOT_RELAY_TOKEN_FILE, ...).EARSHOT_RELAY_BEACON_RATE_LIMIT, 600 per minute) and accepts at most 16 devices per message, so a leaked beacon URL can forge receipts but cannot flood the relay.EARSHOT_RELAY_COMPAT_TOKEN that opens nothing but those routes (prefer it: a URL token lands in proxy logs). They never reach alarm unless you set EARSHOT_RELAY_COMPAT_ALARM=1. If you open EARSHOT_RELAY_COMPAT_PORT, publish it only where the producers are.202 means stored, not played.finished means the phone finished playback.uv sync
uv run pytest -q # moto-backed; no network or real bucket needed
uv run python scripts/gen_openapi.py # regenerate openapi.yaml after API changes
uv run python scripts/compat_clients.py # drive real clients (curl, Apprise, ntfy CLI, ...) at an in-process relay; see docs/compat.md
uv run python scripts/docker_smoke.py # build the image and test it end to end against moto (Docker)
EARSHOT_COMPAT_PROVIDERS=1 uv run pytest -q tests/test_providers.py # SeaweedFS and Garage in Docker
API · Producer compat · Hygiene · Receipts · Server TTS · Tunnels · Permissions · MCP · Configuration · Examples
License: MIT, copyright AutomaticAI.