AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Esp32 Mcpserver

mcp-solnera-esp32-mcpserver · by solnera

A lightweight Model Context Protocol (MCP) server framework for ESP32. Seamlessly connect embedded devices to LLMs.

No reviews yet
0 installs
40 views
0.0% view→install

Install

$ agentstack add mcp-solnera-esp32-mcpserver

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-solnera-esp32-mcpserver)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Esp32 Mcpserver? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Vision

"Modern smart devices are rented, not owned—reliant on constant connections to centralized vendor clouds.

We are changing this with MCP-native hardware. By standardizing device communication through the Model Context Protocol, we empower users to bring their own intelligence (LLMs) to their devices. This is the first step toward a future of local-first AI and genuinely decentralized hardware ecosystems."

ESP32 MCP Server

A lightweight Model Context Protocol (MCP) server implementation for the ESP32 microcontroller. This framework allows your ESP32 device to expose tools and resources to Large Language Models (LLMs) via the MCP standard, enabling direct interaction between AI agents and hardware.

Features

  • Protocol Support: Full implementation of the MCP JSON-RPC 2.0 protocol over HTTP.
  • Tool System: Easy-to-use API for defining and registering custom tools with JSON Schema validation.
  • Session Management: Built-in handling of MCP session IDs.
  • Asynchronous: Built on ESPAsyncWebServer for non-blocking operation.
  • Schema Validation: robust input/output schema definition using a fluent C++ API.

Supported MCP Methods

The server currently supports the following MCP methods:

  • initialize: Server handshake and capability negotiation.
  • notifications/initialized: Client acknowledgment.
  • tools/list: Discovery of available tools.
  • tools/call: Execution of tool logic.

Prerequisites

  • Hardware: ESP32 development board.
  • Software:
  • PlatformIO (recommended) or Arduino IDE.
  • Required Libraries:
  • ArduinoJson
  • ESPAsyncWebServer
  • AsyncTCP (for ESP32)

Installation

  1. Clone this repository:

``bash git clone https://github.com/yourusername/esp32-mcpserver.git ``

  1. Open the project in PlatformIO.
  2. Install the required dependencies (PlatformIO should handle this automatically via platformio.ini).

Usage

src/main.cpp is an example sketch that demonstrates connecting to WiFi, starting the MCP server, and registering the echo tool.

1. Configuration

Open src/main.cpp and configure your WiFi credentials:

const char* ssid = "YOUR_WIFI_SSID";
const char* password = "YOUR_WIFI_PASSWORD";

2. Defining a Tool

Create a class that inherits from ToolHandler and implements the call method:

class EchoHandler : public ToolHandler {
public:
    JsonDocument call(JsonDocument params) override {
        JsonDocument result;

        JsonVariantConst paramsVariant = params.as();
        String text = paramsVariant["text"].as();

        result["echo"] = text;
        result["length"] = text.length();
        result["timestamp"] = millis();

        return result;
    }
};

3. Registering the Tool

In your setup() function, define the tool metadata and schema, then register it:

// Create tool definition
Tool echoTool;
echoTool.name = "echo";
echoTool.description = "Echo back the input text";

// Define input schema using fluent Schema builder
echoTool.inputSchema = Schema::object()
    .description("Echo tool parameters")
    .property("text", Schema::string().description("Text to echo back"))
    .required({"text"})
    .build();

// Attach handler
echoTool.handler = std::make_shared();

// Register with server
mcpServer->RegisterTool(echoTool);

4. Initialization

Initialize the server with a port, name, version, and optional system instructions:

mcpServer = new MCPServer(3000, "echo service", "1.0.0",
                          "You are an intelligent device that supports the MCP protocol.");

API Reference

The server exposes a single endpoint for MCP traffic:

  • Endpoint: POST /mcp
  • Body: JSON-RPC 2.0 Request
  • Headers:
  • Content-Type: application/json
  • mcp-session-id: (Optional) Session identifier

Contact Us

  • 📧 Email: [liuyf1117@hotmail.com](mailto:liuyf1117@hotmail.com)
  • 💬 Slack: Join our community

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.