Skip to content
VS Code

meshtastic mcp for VS Code

io.github.meshtastic/meshtastic-mcp

Discover, drive, observe, and test Meshtastic devices and companion apps over serial and TCP.

client:VS Code transport:stdio runtime:pypi

Install meshtastic mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "meshtastic-firmware-root",
      "description": "MESHTASTIC_FIRMWARE_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-mcp-tcp-host",
      "description": "MESHTASTIC_MCP_TCP_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-mcp-toolsets",
      "description": "MESHTASTIC_MCP_TOOLSETS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-mcp-read-only",
      "description": "MESHTASTIC_MCP_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-mcp-confirm",
      "description": "MESHTASTIC_MCP_CONFIRM",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-mcp-data-dir",
      "description": "MESHTASTIC_MCP_DATA_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-ui-camera-device",
      "description": "MESHTASTIC_UI_CAMERA_DEVICE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-uhubctl-location-tester",
      "description": "MESHTASTIC_UHUBCTL_LOCATION_TESTER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-pio-bin",
      "description": "MESHTASTIC_PIO_BIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-android-root",
      "description": "MESHTASTIC_ANDROID_ROOT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "meshtastic-apple-root",
      "description": "MESHTASTIC_APPLE_ROOT",
      "password": true
    }
  ],
  "servers": {
    "meshtastic-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "meshtastic-mcp"
      ],
      "env": {
        "MESHTASTIC_FIRMWARE_ROOT": "${input:meshtastic-firmware-root}",
        "MESHTASTIC_MCP_TCP_HOST": "${input:meshtastic-mcp-tcp-host}",
        "MESHTASTIC_MCP_TOOLSETS": "${input:meshtastic-mcp-toolsets}",
        "MESHTASTIC_MCP_READ_ONLY": "${input:meshtastic-mcp-read-only}",
        "MESHTASTIC_MCP_CONFIRM": "${input:meshtastic-mcp-confirm}",
        "MESHTASTIC_MCP_DATA_DIR": "${input:meshtastic-mcp-data-dir}",
        "MESHTASTIC_UI_CAMERA_DEVICE": "${input:meshtastic-ui-camera-device}",
        "MESHTASTIC_UHUBCTL_LOCATION_TESTER": "${input:meshtastic-uhubctl-location-tester}",
        "MESHTASTIC_PIO_BIN": "${input:meshtastic-pio-bin}",
        "MESHTASTIC_ANDROID_ROOT": "${input:meshtastic-android-root}",
        "MESHTASTIC_APPLE_ROOT": "${input:meshtastic-apple-root}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

meshtastic mcp in other clients