Server data from the Official MCP Registry
Make Hermes and other agents speak on your Android phone. Own S3 bucket, receipts, opt-in alarm
About
Make Hermes and other agents speak on your Android phone. Own S3 bucket, receipts, opt-in alarm
Remote endpoints: streamable-http: https://{relay_host}/mcp
Security Report
earshot-relay is a self-hosted relay that stores text or audio in the user's own S3 bucket for the Earshot app to speak, and it requires a bearer token on every endpoint except /healthz and the beacon URL. No malicious patterns, data exfiltration, or unsafe shell or eval use were found in the visible code. The score is held down slightly by a disabled DNS-rebinding check on the /mcp route and by the truncated source, which left some files unreviewed. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 2 high severity).
4 files analyzed · 8 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"io-github-automaticai-io-earshot-relay": {
"url": "https://{relay_host}/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_TOKEN>"
}
}
}
}This server needs this header. Replace each <YOUR_...> placeholder with your own value:
Authorization(required): Bearer token of your relay (its EARSHOT_RELAY_TOKEN).
Documentation
View on GitHubFrom the project's GitHub README.
earshot-relay
A small self-hosted service that lets scripts, CI jobs and AI agents, including Hermes 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.
Before you start
- The Earshot app on the phone, already listening to your bucket (the buyer guide covers that). Text messages are spoken by the phone's Android text-to-speech, which needs Earshot 0.1.11 or newer and a TTS voice installed on the phone (Settings, System, Languages, Text-to-speech output). Audio files need neither.
- Normal channels play at the phone's media volume and wait while the phone is on a call; a message older than the app's freshness limit (30 minutes by default) is reported as
missedand not played. - A writer key for the same bucket that can
PutObject(minimal permissions). Not the phone's key.
Run it
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).
60-second demo
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.
What it does
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.
Protected scoped-speaker enrollment is documented in docs/device-pairing.md: an owner-approved, key-bound five-minute exchange consuming an already provisioned reader handoff. This is a local relay candidate, not a released Android setup flow.
Optional nearby relay candidates use the additive
earshot-relay advertise --enable adapter and the discovery extra. It publishes
only a public display name, HTTPS origin and pairing.v1 capability on an
explicit interface. Discovery is not authorization: independently owner-known
HTTPS/TLS and all existing pairing gates remain required. Manual HTTPS setup is
always available; serve never starts discovery.
Speech
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 Code, Codex and other agents
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.
Scoped agent instructions
Generate copyable provider-neutral instructions or explicitly install a reviewed,
versioned data-only skill with earshot-relay agent-kit. It uses existing CLI
commands, protected scoped credential references (never tokens in the kit), and
a bounded send/receipt check. No auto-downloads, native plugins or profile defaults.
See Scoped agent kit for provenance, installation, upgrades,
privacy, alarm authorization and per-agent revocation.
Hermes
Hermes agents have a native plugin, plugins/hermes: an earshot_say tool, a reply speaker you turn on per chat with /earshot on (never cron or subagent turns, redacted, capped, sent in the background), and /earshot test, which waits for the phone's receipt. Link it into a profile and enable it:
ln -s "$PWD/plugins/hermes" ~/.hermes/plugins/earshot-relay
hermes plugins enable earshot-relay # asks for EARSHOT_API_URL and EARSHOT_API_TOKEN
Without the plugin there are two opt-in paths: the relay's MCP server (the agent calls say when it decides to speak) and a final-reply shell hook that speaks every reply on allowed surfaces. With Hermes installed and the token in the profile's .env:
hermes config set mcp_servers.earshot.url https://your-relay.example.com/mcp
hermes config set mcp_servers.earshot.headers.Authorization 'Bearer ${EARSHOT_API_TOKEN}'
hermes mcp test earshot # connects and discovers say, receipt, recent, status
config.yaml holds only the ${EARSHOT_API_TOKEN} placeholder; Hermes resolves it from the profile's .env. The full recipe — token handling, the opt-in hook, the installable earshot skill, approval notes and dated tested-on evidence — is docs/hermes.md; the hook, skill and config snippet live in examples/hermes/. The hook sends a slice of agent text to your bucket as a plain object, so use a private bucket.
Switch a producer over by changing a URL
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.
Receipts and the beacon URL
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.
Security notes
- Every endpoint except
/healthzand the beacon URL needsAuthorization: Bearer <EARSHOT_RELAY_TOKEN>. The beacon URL carries its own, different token in the path; it can record receipts but cannot send messages. - The relay needs only
s3:PutObjecton the channel prefixes. It never reads your bucket and never holds the phone's read key (docs/permissions.md). - The default channel list is
phoneonly. The loudalarmchannel cannot be sent to unless you list it inEARSHOT_RELAY_CHANNELS, the MCPalarmtool exists only then, andalarmcan never be the default channel. - What
alarmdoes 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. - Message text is not stored in the relay's database and is not logged, with one exception: text held for
coalesce_window_ssits 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, ...). - Bind to localhost (the compose file does) and put a tunnel or an HTTPS reverse proxy in front. Do not expose the plain-HTTP port to the internet.
- The beacon route has its own rate limit (
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. - Messages sit in your bucket as plain objects. Anyone who can read the bucket can read them.
- Rate limits (60 per minute overall, 6 per hour for the alarm channel) are in memory and per process.
- Compat routes (docs/compat.md) are off by default and take the relay token, or a send-only
EARSHOT_RELAY_COMPAT_TOKENthat opens nothing but those routes (prefer it: a URL token lands in proxy logs). They never reachalarmunless you setEARSHOT_RELAY_COMPAT_ALARM=1. If you openEARSHOT_RELAY_COMPAT_PORT, publish it only where the producers are.
What it is not
- Not a hosted service: you run it, with your bucket.
- Not a speech-to-text or chat product, and not a delivery guarantee. The phone has to be on, online, listening and allowed to play audio; a
202means stored, not played. - Not proof of attention:
finishedmeans the phone finished playback. - Not a way to read your bucket or list your files.
- Not affiliated with any cloud provider. "Earshot" is the name of the Android app; this project's MIT license covers this code only and grants no trademark rights.
Development
The test gate exercises real DNS-SD TXT serialization, so development/CI installs
include the discovery extra. It remains optional for runtime-only installs;
missing it must fail the strict wire test rather than skip that gate.
uv sync --locked --extra discovery
uv run --extra discovery 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
Docs
API · Producer compat · Hygiene · Receipts · Server TTS · Tunnels · Permissions · MCP · Hermes · Configuration · Examples
License: MIT, copyright AutomaticAI.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
