Skip to content

alestmej/mcp-stdio-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple MCP Server to Control Electrolux Appliances

Motivation

Prompt AI chat with questions like:

  • "How many Electrolux Appliances do I have?" or
  • "What is the color of my Electrolux Air Purifier?"

Although the LLM model was not trained for that, you get correct answers!

How? Run this code and get surprised.

Architecture

+------------------------+      MCP Protocol      +-----------------+      REST API       +--------------------+                    +-----------------------------------+
|     AI Chat (LLM)      | <--------------------> |   MCP Server    | <-----------------> |  Electrolux Cloud  |<-----------------> |          Home Appliance           |
| (Claude, ChatGPT, ...) |                        |   (This Code)   |                     |                    |                    | (Vacuum, Oven, Air Purifier, ...) |
+------------------------+                        +-----------------+                     +--------------------+                    +-----------------------------------+

References

How to run

1. Build project

 * ./mvnw clean install -DskipTests

2. Integrate to Claude Desktop

To integrate with Claude Desktop, add the following configuration to the file claude_desktop_config.json.

Typical locations of claude_desktop_config.json:

  • Windows: C:\Users<YourUser>\AppData\Roaming\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-stdio-server": {
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dlogging.pattern.console=",
        "-jar",
        "<ABSOLUTE-PATH-TO-PROJECT>\\target\\mcp-stdio-server-0.0.1-SNAPSHOT.jar"
      ]
    }
  }
}

For authentication Electrolux API requires an API key and JWT token. AI chat assistant will ask for them during the first interaction. Login to Electrolux for Developers Portal to get them.

3. Test with provided McpClient instead of AI Assistant

TODO

  • Implement commands such as “Turn on the air purifier,” “If my living room hasn’t been cleaned for two days, clean it now,” etc.
  • Implement Streamable HTTP transport (currently only stdio is supported)
  • Try more assistants, not only Claude Desktop

About

Simple MCP Server to Control Electrolux Appliances

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages