alexa-mcp
Provides tools to audit and clean up Amazon Alexa account: list routines, smart-home devices, scenes, activity history, and optionally delete routines and orphaned devices.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@alexa-mcplist all my smart home devices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
alexa-mcp
The cleanup-focused Alexa MCP server. An MCP server that lets an AI assistant (Claude Code, Claude Desktop, …) audit and clean up your Amazon Alexa account: list and inspect routines, list smart-home devices and delete the orphans that pile up over time, plus read scenes and activity history.
It talks to Amazon's internal Alexa cloud API via
alexa-remote2.
⚠️ Disclaimer
This project is not affiliated with, endorsed by, or supported by Amazon. There is no official public API for managing Alexa routines or smart-home devices — this tool uses the same undocumented, reverse-engineered endpoints the Alexa app uses, and may break at any time when Amazon changes them. Using it may violate Amazon's Terms of Service. Use at your own risk, against your own account only. The login happens on Amazon's real sign-in page (including 2FA); your credentials go only to Amazon — the local proxy only captures the resulting session token afterwards.
Why this exists (vs. other Alexa MCP servers)
Most Alexa MCP servers focus on control (announcements/TTS, volume, running routines, lists, groups). This one is deliberately narrow and complementary — it focuses on the audit & cleanup gap that nothing else covers and that Amazon's own app can no longer do (bulk-deleting smart-home devices was removed from the Alexa web app):
Capability | This server |
List routines | ✅ |
Inspect a routine's triggers & action sequence | ✅ |
Delete a routine | ✅ (write-gated; endpoint unverified — see limitations) |
List smart-home devices (with source + reachability) | ✅ |
Delete a smart-home device (orphan cleanup) | ✅ (write-gated) |
List scenes / smart-home entities | ✅ |
Activity history | ✅ |
Announcements / TTS / volume / lists | ❌ (use a control-focused server or Home Assistant) |
It is read-only by default. Destructive tools are only registered when you explicitly opt in.
Related MCP server: Enhanced Home Assistant MCP
Requirements
Node ≥ 20 (compiles with
tsctodist/, then runs on plain Node — no bundler).An Amazon account with app-based 2FA (SMS/email OTP no longer works with Amazon's login).
Log in from a device/browser without the Alexa app installed (otherwise Amazon deep-links into the app instead of finishing the web login).
Quick start
git clone https://github.com/snordquist/alexa-mcp.git
cd alexa-mcp
npm install
npm run doctor # shows config + the login URL (no network)
npm run auth # ONE-TIME: starts a local proxy, browser login incl. 2FA
npm run smoke # lists devices, routines, scenes (read-only)npm run auth in detail
It starts a local proxy and prints a URL (default
http://127.0.0.1:3456/).Open that URL in a browser on the same machine and log in to your Amazon account (2FA).
On success the token (cookie +
refreshToken) is written to./.auth/alexa.json(git-ignored) and refreshed automatically afterwards (every 4 days).A smoke test (device list) runs. Done.
Logging in from another device? proxyOwnIp must match the URL in your browser exactly:
ALEXA_MCP_PROXY_IP=192.168.x.x npm run auth # then open http://192.168.x.x:3456/Use as an MCP server
Read-only (recommended for auditing):
claude mcp add alexa -- node /ABSOLUTE/PATH/alexa-mcp/dist/index.jsWith destructive tools enabled (delete routines / devices):
claude mcp add alexa --env ALEXA_MCP_ALLOW_WRITE=1 -- node /ABSOLUTE/PATH/alexa-mcp/dist/index.js(Run npm run build first.)
Tools
Tool | Purpose | Writes |
| Registered Echos / apps / Fire TVs | no |
| All routines: id, name, status, triggers | no |
| One routine as raw JSON (incl. action sequence) | no |
| Smart-home entities incl. scenes | no |
| Activity history (customer-history-records) | no |
| Smart-home devices with source (skill/Matter) + entity id — find orphans | no |
| Execute a routine | yes |
| Delete a routine (endpoint unverified — see limitations) | yes |
| Delete a smart-home device (orphan cleanup) | yes |
Write tools are only registered when ALEXA_MCP_ALLOW_WRITE=1, and each destructive call also
requires an explicit confirm: true argument.
Configuration (environment variables)
Variable | Default | Purpose |
|
| Login region (e.g. |
|
| Accept-Language header |
|
| Must match the URL you open during login |
|
| Proxy port for the login |
|
| Proxy bind address |
|
| Token refresh interval |
| – |
|
|
| Token file location |
Security & privacy
The session token is stored only in
./.auth/alexa.json(mode0600, git-ignored). It is never logged or committed. Treat that file like a password.The login proxy binds to
0.0.0.0by default so you can log in from another device; setALEXA_MCP_PROXY_BIND=127.0.0.1to keep it local-only.To fully sign out, delete
./.auth/alexa.json(and remove the registered "device" from Amazon → Manage Your Content and Devices).
Known limitations
Unofficial API — can break whenever Amazon changes it.
Routine deletion endpoint is unverified.
alexa_delete_routineattemptsDELETE /api/behaviors/v2/automations/{id}, which is not documented or confirmed. Verify the real request via browser DevTools before relying on it.Device deletion may not be permanent if the underlying source still advertises the device: a skill that is still linked (and whose backend responds) or a Matter bridge will re-add it on the next discovery. Orphans whose backend is gone (unlinked skill, removed integration) stay deleted.
Matter duplicate devices (the same device appearing once per Alexa Echo/hub that acts as a Matter controller) are an Alexa-side artifact, not a bridge misconfiguration. Deleting the redundant copies works, but new ones can reappear if the Matter bridge is re-commissioned.
See ARCHITECTURE.md for the auth flow, endpoint reference, and implementation notes.
License
MIT © Sascha Nordquist
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/snordquist/alexa-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server