Client source: cap_mcp_client.c components/claw_capabilities/cap_mcp_client/src/cap_mcp_client.c ·
header: cap_mcp_client.h components/claw_capabilities/cap_mcp_client/include/cap_mcp_client.h ·
Skill: SKILL.md components/claw_capabilities/cap_mcp_client/skills/cap_mcp_client/SKILL.md
Server source: cap_mcp_server.c components/claw_capabilities/cap_mcp_server/src/cap_mcp_server.c ·
header: cap_mcp_server.h components/claw_capabilities/cap_mcp_server/include/cap_mcp_server.h ·
Skill: SKILL.md components/claw_capabilities/cap_mcp_server/skills/cap_mcp_server/SKILL.md
ESP-Claw implements Model Context Protocol (MCP) support through two components, cap_mcp_client and cap_mcp_server:
cap_mcp_client : allows the LLM to discover and call tools exposed by remote MCP servers
cap_mcp_server : exposes the device’s own Capabilities as a local MCP server for external MCP clients
Tool ID Description mcp_list_toolsList available tools on a remote MCP server mcp_call_toolCall a specified tool on a remote MCP server mcp_discoverDiscover MCP servers advertised on the local network
Parameter Type Required Description server_urlstring Yes MCP server URL endpointstring MCP endpoint path cursorstring Pagination cursor
Parameter Type Required Description server_urlstring Yes MCP server URL tool_namestring Yes Tool name to call endpointstring MCP endpoint path argumentsobject Arguments passed to the tool
Parameter Type Required Description timeout_msinteger Discovery timeout include_selfboolean Whether to include this device itself
Property Value Group ID cap_mcp_clientDefault LLM-visible No (requires Skill activation) Tool count 3
cap_mcp_server is a CLAW_CAP_KIND_HYBRID Capability with lifecycle management. After start, it creates a local MCP server instance and exposes the device’s registered Capabilities as MCP tools for discovery and invocation by external MCP clients on the LAN, such as desktop IDEs or other ESP-Claw devices.
Supports MCP SSE (Server-Sent Events) transport
Automatically maps device Capabilities to MCP tools
Supports mDNS advertisement for LAN discovery
Provides a full lifecycle (init -> start -> stop)
Property Value Group ID cap_mcp_serverDefault LLM-visible No Tool count 0 (server only; no LLM-callable tools exposed)