Desktop MCP

Connect an MCP client to EMWaver.

macOS, Windows, and Linux desktop apps can expose a local MCP server while the app is running. This lets an MCP-capable client inspect the connected board, manage local scripts, run JavaScript, and call hardware primitives through the same app-owned runtime used by the UI.

How to enable it

  1. Open the EMWaver desktop app.
  2. Click the MCP button in the app toolbar.
  3. Enable the local MCP server.
  4. Copy the endpoint and bearer token from the modal.
  5. Add those values to an MCP client that supports local Streamable HTTP servers.
The server is local to your machine. It binds to loopback at 127.0.0.1, requires the bearer token shown by the app, and stops when the desktop app exits.

Endpoint

The default endpoint is:

http://127.0.0.1:3923/mcp

Send the token as an authorization header:

Authorization: Bearer YOUR_EMWAVER_MCP_TOKEN

Available tools

ToolUse
list_scriptsList local scripts the desktop app can run.
read_scriptRead a script source file.
write_scriptCreate or update a local script file.
run_scriptRun JavaScript through the app runtime.
stop_scriptStop an MCP-started script run.
device_stateInspect the selected board and transport state.
spi_transferSend an SPI transfer through the connected board.
gpio_readRead a GPIO pin.
gpio_writeWrite a GPIO pin.
analog_readRead an analog input.

Platform behavior

  • macOS, Windows, Linux: host the MCP server inside the running desktop app.
  • iOS and Android: run local scripts but do not host an MCP endpoint.
  • Local core: scripts and hardware access still work without MCP enabled.

Related docs