Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-meshtastic-meshtastic-mcp": {
"command": "uvx",
"args": [
"meshtastic-mcp"
],
"env": {
"MESHTASTIC_FIRMWARE_ROOT": "<VALUE>",
"MESHTASTIC_MCP_TCP_HOST": "<VALUE>",
"MESHTASTIC_MCP_TOOLSETS": "<VALUE>",
"MESHTASTIC_MCP_READ_ONLY": "<VALUE>",
"MESHTASTIC_MCP_CONFIRM": "agent",
"MESHTASTIC_MCP_DATA_DIR": "<VALUE>",
"MESHTASTIC_UI_CAMERA_DEVICE": "<VALUE>",
"MESHTASTIC_UHUBCTL_LOCATION_TESTER": "<VALUE>",
"MESHTASTIC_PIO_BIN": "<VALUE>",
"MESHTASTIC_ANDROID_ROOT": "<VALUE>",
"MESHTASTIC_APPLE_ROOT": "<VALUE>",
"DISCORD_BOT_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN_FILE": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-meshtastic-meshtastic-mcp": {
"command": "uvx",
"args": [
"meshtastic-mcp"
],
"env": {
"MESHTASTIC_FIRMWARE_ROOT": "<VALUE>",
"MESHTASTIC_MCP_TCP_HOST": "<VALUE>",
"MESHTASTIC_MCP_TOOLSETS": "<VALUE>",
"MESHTASTIC_MCP_READ_ONLY": "<VALUE>",
"MESHTASTIC_MCP_CONFIRM": "agent",
"MESHTASTIC_MCP_DATA_DIR": "<VALUE>",
"MESHTASTIC_UI_CAMERA_DEVICE": "<VALUE>",
"MESHTASTIC_UHUBCTL_LOCATION_TESTER": "<VALUE>",
"MESHTASTIC_PIO_BIN": "<VALUE>",
"MESHTASTIC_ANDROID_ROOT": "<VALUE>",
"MESHTASTIC_APPLE_ROOT": "<VALUE>",
"DISCORD_BOT_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN_FILE": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-meshtastic-meshtastic-mcp": {
"command": "uvx",
"args": [
"meshtastic-mcp"
],
"env": {
"MESHTASTIC_FIRMWARE_ROOT": "<VALUE>",
"MESHTASTIC_MCP_TCP_HOST": "<VALUE>",
"MESHTASTIC_MCP_TOOLSETS": "<VALUE>",
"MESHTASTIC_MCP_READ_ONLY": "<VALUE>",
"MESHTASTIC_MCP_CONFIRM": "agent",
"MESHTASTIC_MCP_DATA_DIR": "<VALUE>",
"MESHTASTIC_UI_CAMERA_DEVICE": "<VALUE>",
"MESHTASTIC_UHUBCTL_LOCATION_TESTER": "<VALUE>",
"MESHTASTIC_PIO_BIN": "<VALUE>",
"MESHTASTIC_ANDROID_ROOT": "<VALUE>",
"MESHTASTIC_APPLE_ROOT": "<VALUE>",
"DISCORD_BOT_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN_FILE": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-meshtastic-meshtastic-mcp": {
"command": "uvx",
"args": [
"meshtastic-mcp"
],
"env": {
"MESHTASTIC_FIRMWARE_ROOT": "<VALUE>",
"MESHTASTIC_MCP_TCP_HOST": "<VALUE>",
"MESHTASTIC_MCP_TOOLSETS": "<VALUE>",
"MESHTASTIC_MCP_READ_ONLY": "<VALUE>",
"MESHTASTIC_MCP_CONFIRM": "agent",
"MESHTASTIC_MCP_DATA_DIR": "<VALUE>",
"MESHTASTIC_UI_CAMERA_DEVICE": "<VALUE>",
"MESHTASTIC_UHUBCTL_LOCATION_TESTER": "<VALUE>",
"MESHTASTIC_PIO_BIN": "<VALUE>",
"MESHTASTIC_ANDROID_ROOT": "<VALUE>",
"MESHTASTIC_APPLE_ROOT": "<VALUE>",
"DISCORD_BOT_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN_FILE": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-meshtastic-meshtastic-mcp": {
"command": "uvx",
"args": [
"meshtastic-mcp"
],
"env": {
"MESHTASTIC_FIRMWARE_ROOT": "<VALUE>",
"MESHTASTIC_MCP_TCP_HOST": "<VALUE>",
"MESHTASTIC_MCP_TOOLSETS": "<VALUE>",
"MESHTASTIC_MCP_READ_ONLY": "<VALUE>",
"MESHTASTIC_MCP_CONFIRM": "agent",
"MESHTASTIC_MCP_DATA_DIR": "<VALUE>",
"MESHTASTIC_UI_CAMERA_DEVICE": "<VALUE>",
"MESHTASTIC_UHUBCTL_LOCATION_TESTER": "<VALUE>",
"MESHTASTIC_PIO_BIN": "<VALUE>",
"MESHTASTIC_ANDROID_ROOT": "<VALUE>",
"MESHTASTIC_APPLE_ROOT": "<VALUE>",
"DISCORD_BOT_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN_FILE": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-meshtastic-meshtastic-mcp": {
"command": "uvx",
"args": [
"meshtastic-mcp"
],
"env": {
"MESHTASTIC_FIRMWARE_ROOT": "<VALUE>",
"MESHTASTIC_MCP_TCP_HOST": "<VALUE>",
"MESHTASTIC_MCP_TOOLSETS": "<VALUE>",
"MESHTASTIC_MCP_READ_ONLY": "<VALUE>",
"MESHTASTIC_MCP_CONFIRM": "agent",
"MESHTASTIC_MCP_DATA_DIR": "<VALUE>",
"MESHTASTIC_UI_CAMERA_DEVICE": "<VALUE>",
"MESHTASTIC_UHUBCTL_LOCATION_TESTER": "<VALUE>",
"MESHTASTIC_PIO_BIN": "<VALUE>",
"MESHTASTIC_ANDROID_ROOT": "<VALUE>",
"MESHTASTIC_APPLE_ROOT": "<VALUE>",
"DISCORD_BOT_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN": "<VALUE>",
"MESHTASTIC_MCP_TOKEN_FILE": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| MESHTASTIC_FIRMWARE_ROOT | No | Path to a local Meshtastic firmware checkout; enables the firmware-build capability when PlatformIO pio is available. |
| MESHTASTIC_MCP_TCP_HOST | No | host[:port] of a meshtasticd TCP node to surface in list_devices (default port 4403). |
| MESHTASTIC_MCP_TOOLSETS | No | Comma-separated list of tool groups to expose, e.g. core,firmware. |
| MESHTASTIC_MCP_READ_ONLY | No | Set to 1 to hide every tool that can change state. |
| MESHTASTIC_MCP_CONFIRM | No | Set to human to make irreversible destructive tools ask for confirmation even when the agent passes confirm=True. Default: agent |
| MESHTASTIC_MCP_DATA_DIR | No | Directory for recorder JSONL logs and persistent data. Defaults to platformdirs user-data-dir, then cwd. Set this to keep recorder data in a known location. |
| MESHTASTIC_UI_CAMERA_DEVICE | No | Camera device index or path for capture_screen (default: 0). Role-specific overrides: MESHTASTIC_UI_CAMERA_DEVICE_TESTER, _DUT, etc. |
| MESHTASTIC_UHUBCTL_LOCATION_TESTER | No | uhubctl USB hub location for the TESTER role port (e.g. '1-1'). Enables uhubctl_power/uhubctl_cycle against that role. Suffix varies by role: _DUT, _RELAY, etc. |
| MESHTASTIC_PIO_BIN | No | Path to the PlatformIO CLI binary. Searched in order: this env var, ~/.platformio/penv/bin/pio, then PATH. Only needed if PlatformIO is not on PATH. |
| MESHTASTIC_ANDROID_ROOT | No | Path to a local Meshtastic-Android checkout; enables the Android capability when the android CLI and adb are available. |
| MESHTASTIC_APPLE_ROOT | No | Path to a local Meshtastic-Apple checkout; enables the Apple capability when xcrun (and idb for UI) is available. |
| DISCORD_BOT_TOKEN | No | Read-only Discord bot token for the discord capability; it can alternatively be placed in <user-config-dir>/meshtastic-mcp/discord.token. |
| MESHTASTIC_MCP_TOKEN | No | Bearer token required when serving the MCP server over HTTP with the serve subcommand. |
| MESHTASTIC_MCP_TOKEN_FILE | No | Path to a file containing the bearer token required when serving the MCP server over HTTP with the serve subcommand. |