alexa-mcp
Control Amazon Alexa devices and smart home through MCP tools.
List Echo devices, smart home devices, groups, routines, and lists.
Send spoken announcements, text commands, or SSML to specific Echo devices.
Set/get volume and toggle Do Not Disturb on Echo devices.
Query smart home device states and manage groups (create/update/delete).
Execute Alexa routines and manage shopping/to-do lists (add/get items).
Authenticate via browser login; supports multiple accounts using ALEXA_MCP_AUTH_DIR.
Controls Amazon Alexa devices including speaking announcements, sending text commands, managing smart-home groups, running routines, and interacting with lists.
Click on "Deploy 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-mcp Add milk and eggs to my shopping list"
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
An MCP (Model Context Protocol) server that lets Claude — and any other MCP-compatible LLM — control Amazon Alexa devices: speak announcements, send text commands, manage smart-home groups, run routines, and more.
Built on top of alexa-remote2 (the actively maintained client for Amazon's internal Alexa API).
Features
18 tools exposed over MCP, grouped by domain:
Devices
alexa_list_devices— list every Echo in the account with serial, type, online statusalexa_set_volume/alexa_get_volumes— read or change volume per devicealexa_do_not_disturb— toggle DND on a device
Voice & messaging
alexa_announce— push a spoken announcement to a specific Echoalexa_text_command— send a text command as if you spoke it ("turn on the kitchen lights")alexa_speak_ssml— make Alexa speak SSML for fine-grained voice control
Smart home
alexa_list_smarthome_devices— list all paired smart-home devices (lights, sensors, switches…)alexa_query_device— read the current state of one or more devicesalexa_list_groups/alexa_create_group/alexa_update_group/alexa_delete_group— manage rooms / groups
Routines
alexa_list_routines— list every routine in the accountalexa_execute_routine— run a routine by passing its automation definition
Lists
alexa_list_lists— list shopping / to-do / custom listsalexa_get_list_items— read items from a listalexa_add_list_item— append an item to a list
Related MCP server: ha-mcp
Requirements
Node.js ≥ 18
An Amazon account with at least one registered Alexa/Echo device
An MCP-compatible client (Claude Desktop, Claude Code, etc.)
Installation
git clone https://github.com/<your-user>/alexa-mcp.git
cd alexa-mcp
npm installAuthentication
Amazon's Alexa API is private and requires a real browser-based login (no API keys). The MCP ships with an interactive auth helper:
npm run authThis will:
Start a local HTTP proxy on
http://localhost:3457.Print a URL you open in your browser.
You log in with your normal Amazon credentials (handles 2FA / OTP correctly because it's the actual Amazon page, just proxied).
The proxy intercepts the resulting session cookies and saves them to
.auth-data/auth.json(mode0600, never committed — see Security).
You only need to run this once. From then on, alexa-remote2 refreshes tokens automatically. If you ever see Authentication failed, just re-run npm run auth.
Region note: the helper defaults to
amazon.comand Spanish locale (es-MX). If your account lives in another marketplace (amazon.de,amazon.co.uk,amazon.com.mx, etc.) editsrc/auth.jsaccordingly. PRs welcome to make this configurable via env vars.
Multiple Alexa accounts (multi-instance)
A single clone of this repo can serve multiple Alexa accounts by setting the ALEXA_MCP_AUTH_DIR env var to point at a per-instance directory:
# Authenticate the personal account
ALEXA_MCP_AUTH_DIR=~/.alexa-mcp/personal npm run auth
# Authenticate a second (e.g. work) account
ALEXA_MCP_AUTH_DIR=~/.alexa-mcp/work npm run authEach instance keeps its own auth.json in its own directory, so they never collide. The default (when ALEXA_MCP_AUTH_DIR is unset) remains the project-local .auth-data/ for the simple single-account case. See Usage with Claude Desktop below for how to register two MCP servers from the same code.
Usage with Claude Desktop
Add the server to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"alexa": {
"command": "node",
"args": ["/absolute/path/to/alexa-mcp/src/index.js"]
}
}
}Restart Claude Desktop. The Alexa tools should appear in the tool picker.
Usage with Claude Code
claude mcp add alexa -- node /absolute/path/to/alexa-mcp/src/index.jsUsage with other MCP clients
Any client that speaks MCP over stdio works. Point it at node /absolute/path/to/alexa-mcp/src/index.js.
Examples
Once configured, you can ask Claude things like:
"List my Echo devices and tell me which ones are online"
"Tell the kitchen Echo to remind everyone dinner is ready"
"Lower the volume of the living room speaker to 30%"
"Run the 'Good night' routine"
"Add milk and eggs to my shopping list"
"Which lights are currently on in the office?"
Security
.auth-data/is git-ignored and contains your session cookies. Treat it like a password — anyone with that file can control your Alexa account.The auth file is written with mode
0600(owner-read-only).This server runs locally and talks to Amazon directly. No third-party services are involved.
The MCP transport is stdio only. The server never opens a network port; it only talks to its parent process (Claude Desktop / Claude Code) via standard input/output.
The HTTP-related transitive dependencies of
@modelcontextprotocol/sdk(hono,express, etc.) are present innode_modulesbut are never executed by this server.
Known upstream advisory
alexa-cookie2 (a transitive dep of alexa-remote2) currently pins an old version of cookie (<0.7.0) flagged as low severity. The fix is not available without downgrading alexa-remote2 by 7 majors, which would break the integration. The vulnerability only affects parsing of malformed cookie names and does not impact normal use. Track upstream: Apollon77/alexa-cookie2.
Troubleshooting
Symptom | What to try |
| Re-run |
Commands "succeed" but the device does nothing | Verify the device is online in the official Alexa app |
MCP doesn't appear in Claude | Confirm the path in your client config is absolute, then restart the client |
Wrong language / region | Edit |
| Kill whatever is using port 3457, or change |
Asked to log in again soon after authenticating | Upgrade to v1.1.1 or later. Earlier versions rotated the Amazon token on every start and never saved the new one. The previous registration is kept in |
Project structure
alexa-mcp/
├── src/
│ ├── index.js # MCP server entry point — registers all 18 tools
│ ├── alexa-client.js # Thin wrapper around alexa-remote2
│ └── auth.js # Interactive auth flow (run once)
├── .auth-data/ # OAuth tokens (created at first auth, git-ignored)
├── package.json
├── LICENSE
└── README.mdContributing
Issues and PRs welcome. Some ideas worth tackling:
Make region / locale configurable via env vars instead of editing
src/auth.jsExpose more
alexa-remote2capabilities (timers, alarms, music providers)Add an automated test suite (currently none — verification is manual)
Docker image for easier deployment
Acknowledgments
Apollon77 for maintaining
alexa-remote2, which does the actual heavy lifting of talking to Amazon.The Model Context Protocol team at Anthropic.
License
MIT © Renato Ascencio
Available Tools
18 toolsalexa_add_list_itemAdd Item to ListB
Add an item to an Alexa list (shopping, to-do, etc).
Inputs: value (required), listId (required).
alexa_announceSend Alexa AnnouncementB
Send a voice announcement to a specific Echo device. The message will be spoken aloud.
Inputs: message (required), serialNumber (required).
alexa_create_groupCreate Smart Home GroupA
Create a new Alexa smart home group/room with a name and optional list of appliance IDs.
Inputs: name (required), applianceIds.
alexa_delete_groupDelete Smart Home GroupB
Delete an Alexa smart home group/room.
Inputs: groupId (required).
alexa_do_not_disturbSet Do Not DisturbA
Enable or disable Do Not Disturb on a specific Echo device.
Inputs: enabled (required), serialNumber (required).
alexa_execute_routineExecute Alexa RoutineA
Execute an existing Alexa routine by providing its automation definition (from alexa_list_routines).
Inputs: routine (required).
alexa_get_list_itemsGet List ItemsA
Get all items from a specific Alexa list.
Inputs: listId (required).
alexa_get_volumesGet All Device VolumesA
Get the current volume levels of all Echo devices.
Inputs: no named parameters.
alexa_list_devicesList Alexa DevicesA
List all Amazon Echo devices in your account with their serial numbers, types, and online status.
Inputs: no named parameters.
alexa_list_groupsList Smart Home GroupsA
List all smart home groups/rooms configured in Alexa. Shows which devices are assigned to each group.
Inputs: no named parameters.
alexa_list_listsList Alexa ListsA
Get all Alexa lists (shopping lists, to-do lists, custom lists).
Inputs: no named parameters.
alexa_list_routinesList Alexa RoutinesA
List all Alexa routines configured in the account. Shows routine names, triggers, and actions.
Inputs: no named parameters.
alexa_list_smarthome_devicesList Smart Home DevicesB
List all smart home devices registered in Alexa (lights, switches, sensors, etc).
Inputs: no named parameters.
alexa_query_deviceQuery Smart Home DeviceA
Query the current state of one or more smart home devices (on/off, brightness, temperature, etc).
Inputs: entityIds (required).
alexa_set_volumeSet Device VolumeA
Set the volume of a specific Echo device (0-100).
Inputs: volume (required), serialNumber (required).
alexa_speak_ssmlSpeak SSMLC
Make Alexa speak using SSML (Speech Synthesis Markup Language) for advanced voice control.
Inputs: ssml (required), serialNumber (required).
alexa_text_commandSend Text Command to AlexaA
Send a text command to Alexa as if you spoke it. Example: "enciende las luces de la cocina"
Inputs: command (required), serialNumber (required).
alexa_update_groupUpdate Smart Home GroupA
Update an existing Alexa smart home group/room. Sets the name and full list of appliance IDs.
Inputs: name (required), groupId (required), applianceIds (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Every tool targets a distinct action and resource. The 'list_' tools are clearly differentiated by object (devices vs groups vs lists vs routines vs smarthome_devices), and all other tools have unique purposes (announce vs speak_ssml vs text_command, etc.), leaving no ambiguity.
All tool names follow the consistent pattern 'alexa_verb_noun' in snake_case. Verbs are descriptive (add, get, list, create, delete, set, etc.) and multi-word verbs are hyphenated appropriately (do_not_disturb, text_command). No mixing of conventions.
18 tools is well-scoped for a server covering voice announcements, smart home control, list management, routines, and device configuration. Each tool serves a necessary function without redundancy, fitting the typical 3-15 range slightly above but still reasonable.
The tool surface covers the main Alexa domains: CRUD for lists (add/get but missing delete/update), groups (full CRUD), devices (list, query, volume), routines (list/execute but no create/edit/delete), and voice actions (announce, SSML, text command). Minor gaps like list item deletion exist, but core workflows are complete.
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables users to manage their Amazon Alexa shopping lists directly from MCP clients like Claude. It provides tools for listing, adding, updating, and deleting shopping list items through secure Amazon account authentication.7MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to control Home Assistant via natural language, including device control, automation management, and system configuration.MIT
- AlicenseAqualityCmaintenanceA self-hosted MCP server for Home Assistant that exposes full control over entity states, service calls, history, templates, and areas via local stdio, enabling AI assistants to manage your smart home.9112 npmMIT
- AlicenseAqualityBmaintenanceA comprehensive MCP server that enables AI assistants to interact with Home Assistant, control smart home devices, query states, execute services, and manage automations via natural language.77196,503 PyPI7,659MIT