Skip to main content
Glama
guitarbeat

Alexa Home Automation MCP Server

by guitarbeat

Alexa Home Automation MCP Server πŸ πŸ”‹

A powerful Model Context Protocol (MCP) server that provides AI agents (like Claude Desktop) with full control over your Alexa-connected smart home.

This server acts as a bridge between the Alexa API and the MCP ecosystem, enabling capabilities like voice announcements, music control, lighting automation, and sensor monitoring.

License: MIT MCP CI Code Style: Airbnb Code Style: Prettier

✨ Features

  • πŸ“’ Voice Announcements: Send customized voice messages to any Alexa device with smart night-time suppression.

  • 🎡 Music Control: Get real-time status of current tracks and playback on your Echo devices.

  • πŸ’‘ Smart Lighting: Full control over power, brightness, and colors for all discovered smart lights.

  • 🌑️ Sensor Integration: Access temperature, light, and motion sensor data from your Alexa devices.

  • πŸ”Š Volume Management: Precise control over volume levels across your entire device fleet.

  • πŸ€– Self-Documenting: Clean, descriptive API handlers designed for LLM consumption.

πŸš€ Getting Started

1. Requirements

  • pnpm installed.

  • An Amazon account with connected Alexa devices.

We've automated the tedious process of collecting Amazon cookies.

  1. Install dependencies:

    pnpm install
  2. Run the cookie automation script:

    pnpm run get-cookies
  3. A local proxy will start. Complete the login in the browser window that appears.

  4. The script will automatically generate your .env file with the required UBID_MAIN and AT_MAIN tokens.

3. Local Development

Start the server in Node.js mode:

pnpm run dev:node

The server will be available at http://localhost:3001.

πŸ› οΈ MCP Configuration

Add this to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "alexa": {
      "command": "node",
      "args": ["/absolute/path/to/alexa-mcp-server/dist/node-index.js"],
      "env": {
        "API_BASE": "http://localhost:3001"
      }
    }
  }
}

πŸ—οΈ Architecture

This project is built using:

  • Hono: A fast, lightweight web framework.

  • TypeScript: For robust, type-safe development.

  • MCP SDK: To enable seamless integration with AI agents.

  • Cloudflare Workers Ready: Can be deployed to Cloudflare or any Node.js environment via Docker.

β˜• Support

If you find this project helpful, consider buying me a coffee!

Buy Me A Coffee

πŸ“„ License

MIT Β© guitarbeat

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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/guitarbeat/alexa-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server