mcp-arduino-server

Volt23/mcp-arduino-server

3.1

If you are the rightful owner of mcp-arduino-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Arduino Server is a FastMCP-powered bridge that exposes `arduino-cli` functionality via the Model Context Protocol (MCP), allowing management of sketches, boards, libraries, and files, as well as generating WireViz schematics.

The MCP Arduino Server is a robust tool designed to facilitate the management of Arduino projects through the Model Context Protocol (MCP). It leverages the `arduino-cli` to provide a seamless interface for handling sketches, boards, libraries, and files. Additionally, it offers the capability to generate WireViz schematics from YAML or natural language descriptions, enhancing the visualization of circuit designs. The server operates by listening for JSON-RPC MCP calls, making it highly compatible with various MCP clients. It requires Python 3.10 or higher, the `arduino-cli`, and optionally, WireViz for diagram generation. The server can be easily installed via PyPI or from source, and it supports environment variable configuration for customization.

Features

  • Arduino CLI Integration: Provides a bridge to `arduino-cli` for managing Arduino sketches, boards, and libraries.
  • WireViz Schematic Generation: Generates circuit diagrams from YAML or natural language using WireViz.
  • JSON-RPC MCP Calls: Listens on STDIO for JSON-RPC MCP calls, enabling integration with various MCP clients.
  • Environment Variable Configuration: Allows customization through environment variables for paths and API keys.
  • AI-Powered Diagram Generation: Utilizes OpenAI API for enhanced schematic generation capabilities.

Usages

usage with Claude Desktop

{
  "mcpServers": {
    "arduino": {
      "command": "/path/to/mcp-arduino-server",
      "args": [],
      "env": {
        "WIREVIZ_PATH": "/path/to/wireviz",
        "OPENAI_API_KEY": "<your-openai-api-key>"
      }
    }
  }
}