Signal K MCP Operations
Ask an AI assistant about your boat, in plain language.
This Signal K plugin lets an AI assistant (such as ChatGPT/Codex or Claude) read the live data on your Signal K server and explain it to you: where you are, how your batteries and tanks are doing, which alarms are active, and why a reading has gone missing. It works on OpenPlotter and other Signal K installations.
It only reads. It cannot switch anything, change settings, steer the boat or restart your server.
What boaters use it for:
- A quick status check from anywhere: "How is the boat doing?" while you're at home, using a VPN to your boat network.
- Before you go aboard: batteries, tanks and any alarms in one answer.
- When data goes missing: the assistant checks whether a value is still arriving, how old it is and which device supplies it.
- When a plugin misbehaves: it reads plugin status messages and, if you allow it, the server log, and explains what they mean in plain words.
- When a KIP dashboard shows dashes or old values: it reads your KIP dashboards and checks most widgets against the live data.
Version 1.3.0 adds reading and checking KIP dashboards. Version 1.2 added plugin status and (optional) server log reading for troubleshooting. Version 1.1 added the vessel overview, search, batch reading, alarms, the usage guide and read-only user logins. Features marked 1.1, 1.2 or 1.3 need that version or newer. Update the plugin under Appstore → Updates in the Signal K Admin UI.
What can I ask?
You don't need to know Signal K path names. Ask the way you would ask a crew member.
Quick checks
| You ask | What the assistant does | Needs |
|---|---|---|
| "How is the boat doing?" | Gets one overview: position, speed, heading, wind, depth, batteries, tanks, engines and active alarms. | 1.1 |
| "Are there any alarms?" | Lists active Signal K notifications (anchor, depth, battery and others), most serious first. | 1.1 |
| "What's the house battery voltage and state of charge?" | Searches for battery data and reads several values at once. | 1.1 |
| "How much fresh water and diesel do we have left?" | Reads tank levels and capacities and converts them to % and litres. | 1.1 |
Underway or at anchor
| You ask | What the assistant does | Needs |
|---|---|---|
| "What's our speed and course?" | Reads speed over ground (knots) and course (degrees). | 1.1 |
| "How much water is under the keel?" | Reads the depth sensors and explains below-transducer, below-keel and below-surface. | 1.1 |
| "What is the true wind doing?" | Reads wind speed and direction and explains apparent versus true wind. | 1.1 |
| "How warm is the engine, and how many hours does it have?" | Reads engine temperature (°C), revolutions (rpm) and run time. | 1.1 |
When something looks wrong
| You ask | What the assistant does | Needs |
|---|---|---|
| "Why has my wind data disappeared?" | Checks whether the value exists, when it last updated, and whether a data connection reports errors. | 1.0 |
| "Is this battery reading still fresh?" | Reports the value, its timestamp and its age against your freshness limit (default 5 minutes). | 1.0 |
| "Where is my depth reading coming from?" | Shows which source (for example an NMEA 2000 sensor) supplies the value and which other sources exist. | 1.0 |
| "Which data connections have a problem?" | Lists your configured connections and which ones report errors (admin only). | 1.0 |
| "What data is available on this boat?" | Lists the data paths you allowed it to read, and installed plugins (admin only). | 1.0 |
| "Which plugin is giving errors?" | Lists plugins that report an error or status message, like the plugin list in the Admin UI (admin only). | 1.2 |
| "What's going wrong? Check the server log." | Reads recent Signal K server log lines, filtered to likely problems, with passwords and tokens removed (admin only, off unless you turn it on). | 1.2 |
| "Why isn't my NMEA 2000 data coming in?" | Combines a missing-data check with plugin status and log lines that mention the connection. | 1.2 |
KIP instrument dashboards
| You ask | What the assistant does | Needs |
|---|---|---|
| "Which KIP dashboards do I have?" | Lists your saved KIP configurations, their dashboards and widget types. | 1.3 |
| "Why does my depth widget only show dashes?" | Checks each widget's Signal K path: does it have fresh data, is it outside the allowed data areas, or is it tied to a device that isn't sending? | 1.3 |
| "Check my Navigation dashboard." | Reports broken paths and layout problems (overlapping widgets, widgets wider than the screen grid, empty dashboards). | 1.3 |
| "Which battery paths could I use for a power dashboard?" | Combines your KIP layout with a search of the data your boat really has. | 1.3 |
See KIP dashboards for how this works.
Example conversations
These illustrate the kind of answers you can expect. Real answers depend on your boat's data and the AI you use.
1. Status check at anchor
You: How is the boat doing? We're at anchor.
Assistant: Everything looks calm. You're at 52.37° N, 4.89° E, moving at 0.1 knots (normal swinging at anchor). Depth below the keel is 3.4 m. Apparent wind is 12 knots from 40° to starboard. The house battery is at 12.7 V and 83 % charged; the start battery is at 12.6 V. Fresh water is at 40 % (about 80 L) and diesel at 65 %. There is one warning: "Low fuel" in the port day tank. All readings are less than 10 seconds old.
2. Checking from home, with the boat in the harbour
You: I'm at home. Is everything OK on the boat? Mainly the batteries.
Assistant: The boat is where you left it and isn't moving. The house battery is at 12.9 V and the starter battery at 12.7 V, both fresh readings, so the charger or solar is keeping them up. There are no active alarms. I don't see wind or depth data right now; that's normal if those instruments are switched off in the harbour.
3. Something isn't working
You: My wind data has disappeared. What's going on?
Assistant:
environment.wind.speedApparentwas last updated 47 minutes ago, so it is stale. Your NMEA 2000 connection reports an error, and the plugin list shows the CAN gateway plugin with "Failed to open can0: device not found". The server log has the same error twice since 09:12. This usually means the USB-CAN adapter was disconnected or didn't start. Check the cable, or restart Signal K from the Admin UI.
4. A KIP dashboard shows nothing
You: In KIP my Navigation dashboard shows dashes for depth and wind. Can you check it?
Assistant: I checked the 7 widgets on Navigation. Speed over ground is fine. Depth uses
self.environment.depth.belowTransducer; that path exists, but its last value is an hour old, so your depth sounder isn't sending right now. Wind usesself.environment.wind.angleApparent, which has no data at all on your server; your wind sensor may reportenvironment.wind.angleTrueWaterinstead. To change it: open the dashboard in KIP, unlock edit mode, double-click the wind widget and pick the other path. Your House V widget is tied to the sourcevictron.0, but the voltage now comes fromvedirect.ttyUSB0; set its source to default.
Example 3 uses the connection, plugin status and server log tools, which need an admin token. The server log also has to be switched on (see Reading the server log).
The assistant converts Signal K's internal units to knots, degrees, °C, %, litres and rpm, and tells you when data is old. A missing or stale value does not prove that a sensor is broken: the instruments may be switched off, or a connection may have stopped.
What it will never do
- No control. It cannot switch circuits, change the autopilot, acknowledge alarms, change settings, change KIP dashboards or restart services. There is no "write" function in the plugin at all.
- No navigation advice. It is a diagnostic and information aid, not a navigation instrument. Always check your primary instruments for anything safety-critical.
- No secrets. It never returns passwords, tokens or connection settings. Server logs are only readable if you switch that on, and likely secrets are removed from them first (see Reading the server log).
- Only what you allow. It reads only the data areas you choose (by default: navigation, environment, electrical, propulsion, tanks and notifications), and it respects your Signal K user permissions.
Privacy note: the values the assistant reads, such as your position, are sent to the AI service you use (for example OpenAI or Anthropic), the same as anything else you type into it. If you don't want to share your position, remove navigation from the allowed data areas.
What you need
- A Signal K server (2.31 or newer), for example on an OpenPlotter Raspberry Pi, with security enabled (user login turned on).
- The server reachable over HTTPS from the computer where your AI app runs. On the boat's own network this is usually your OpenPlotter address.
- An AI app that supports remote MCP servers with custom headers. See Connect your AI app below.
- About 30 minutes, and a terminal on the Raspberry Pi for one step (creating a secret key). Every command is given below.
What do these words mean?
- Signal K: the open data standard and server that collects your boat's instrument data (GPS, wind, depth, batteries…) in one place.
- MCP (Model Context Protocol): a standard way for AI apps to use external tools. This plugin is an MCP "server"; your AI app is the "client".
- Path: Signal K's name for a value, such as
environment.depth.belowKeel. You don't need to type these; the assistant finds them. - Token: a login pass from Signal K for a user or device. It tells the plugin who is asking.
- MCP key: an extra secret password that only this plugin and your AI app know. Both the token and the key are needed.
Token or MCP key?
They are two different secrets. Your AI app sends both with every question, so someone who has only one of them gets nothing.
| Signal K token | MCP key | |
|---|---|---|
| What it does | Says who is asking (which Signal K user, with which rights) | Proves the question comes from your AI app |
| Made by | Signal K, with signalk-generate-token (step 4) |
You, with openssl rand -hex 32 (step 2) |
| Looks like | A long text starting with eyJ, with two dots in it |
64 characters, only 0-9 and a-f |
| Stored on the boat | No; only in your AI app or password manager | Yes, in /etc/signalk-mcp-ops.env |
| Expires | Yes, after the time you choose | No; replace it yourself when needed |
| Sent as | Authorization: Bearer <token> |
X-MCP-Ops-Key: <key> |
Set it up step by step
The installation guide has full details. These are the steps.
1. Install the plugin
In the Signal K Admin UI, open Appstore → Available, search for MCP Operations & Diagnostics, click install, and restart Signal K when asked. The plugin starts disabled.
2. Create the MCP key
On the Raspberry Pi, open a terminal and create a random key:
openssl rand -hex 32
Copy the result somewhere safe. Never post it in forums, screenshots or chats. Then store it in a protected file that Signal K reads when it starts. On OpenPlotter, run these commands:
sudo install -m 600 -o root -g root /dev/null /etc/signalk-mcp-ops.env
sudoedit /etc/signalk-mcp-ops.env
In the editor, add one line, save and close:
SIGNALK_MCP_OPS_KEY=<paste your key here>
Tell Signal K to load this file. Run sudo systemctl edit signalk.service, add these two lines, save, then restart Signal K:
[Service]
EnvironmentFile=/etc/signalk-mcp-ops.env
sudo systemctl daemon-reload
sudo systemctl restart signalk.service
(Run the install command only once: it empties an existing file. See the installation guide for other setups.)
3. Configure the plugin
In the Admin UI, open Server → Plugin Config → MCP Operations & Diagnostics:
| Setting | What to enter |
|---|---|
| Allowed hosts | The address your AI app uses to reach the server, with port, without https://. Use the same address and port you use to open the Admin UI over HTTPS. For example openplotter.local:3443, 192.168.1.20:3443, or a name like myboat.duckdns.org:3000. You can add several. |
| Allowed origins | Leave empty. Delete any empty row. |
| Path prefixes | The data areas the assistant may read. The default (navigation, environment, electrical, propulsion, tanks, notifications) is fine for most boats. Keep notifications, or alarms can't be read. Remove navigation to keep your position private. |
| Stale after seconds | When a value counts as "old". The default 300 (5 minutes) suits most boats. |
| Allow admins to read the server log | Off by default. Turn on if you want the assistant to look in the server log when something goes wrong (admin token needed). See Reading the server log. |
Enable the plugin and click Submit. The plugin status should show Read-only MCP ready.
4. Create a login (token) for the assistant
Create a separate Signal K user just for the AI, so you can remove its access at any time. First choose which kind:
| User permission | The assistant can | Choose this if |
|---|---|---|
Read Only (e.g. mcp-reader) |
Read boat data: overview, search, values, alarms, missing-data checks | You only want boat information. Safest choice. Needs version 1.1 or newer. |
Admin (e.g. mcp-admin) |
Everything above, plus connection status, plugin status and (if switched on) the server log | You also want help with troubleshooting. Version 1.0 always needs admin. |
Even with an admin login, the plugin only reads: it can't change settings or restart anything.
In the Admin UI, open Security → Users, click Add, choose a User ID (e.g.
mcp-reader), a strong password and the permission.On the Raspberry Pi, open a terminal (or connect with
ssh) and create a token for that user. The token below is valid for 90 days; you can also use30dor1y:signalk-generate-token -u mcp-reader -e 90d -s ~/.signalk/security.jsonFrom a Windows or Mac computer on the boat network you can do the same in one line (replace
piwith your login on the Pi):ssh -t pi@openplotter.local "signalk-generate-token -u mcp-reader -e 90d -s ~/.signalk/security.json"The long text starting with
eyJis your token. Put it straight into your AI app or password manager. Never paste it into a chat, forum or screenshot.
When the token expires, run the command again and replace it in your AI app. A token stays valid until it expires; to block one immediately, delete its user in Security → Users.
5. Connect your AI app
Your AI app needs three things:
Address: https://<your-server>:<port>/plugins/signalk-mcp-ops/mcp
Authorization: Bearer <your Signal K token>
X-MCP-Ops-Key: <your MCP key>
The exact steps depend on the app. Only Codex desktop on Windows has been tested on a live boat; the other examples follow each app's documented settings.
Codex (ChatGPT): ~/.codex/config.toml
Set the environment variables SIGNALK_TOKEN and SIGNALK_MCP_OPS_KEY on your computer, then add:
[mcp_servers.signalk]
url = "https://openplotter.local:3443/plugins/signalk-mcp-ops/mcp"
bearer_token_env_var = "SIGNALK_TOKEN"
env_http_headers = { "X-MCP-Ops-Key" = "SIGNALK_MCP_OPS_KEY" }
Claude Code
claude mcp add --transport http signalk https://openplotter.local:3443/plugins/signalk-mcp-ops/mcp \
--header "Authorization: Bearer <your token>" \
--header "X-MCP-Ops-Key: <your MCP key>"
Claude Desktop: through the mcp-remote bridge
Claude Desktop's built-in connectors need OAuth, which this plugin doesn't offer. The free mcp-remote bridge (requires Node.js on your computer) sends the headers instead. In Settings → Developer → Edit Config, add:
{
"mcpServers": {
"signalk": {
"command": "npx",
"args": ["mcp-remote", "https://openplotter.local:3443/plugins/signalk-mcp-ops/mcp",
"--header", "Authorization:${SK_AUTH}",
"--header", "X-MCP-Ops-Key:${SK_KEY}"],
"env": { "SK_AUTH": "Bearer <your token>", "SK_KEY": "<your MCP key>" }
}
}
}
Write the headers without a space after the colon, as shown; this avoids a known Windows issue.
AI apps that only accept OAuth sign-in (no custom headers) are not supported yet.
Away from the boat
To ask questions from home, connect your computer to the boat network with a VPN (for example WireGuard, Tailscale, or the VPN in your boat router), then use the same address as on board. Don't open the Signal K port to the whole internet just for this: the plugin is protected by the token and key, but a VPN keeps the whole server private.
6. Try it
Ask "What tools do you have for my boat?", then "How is the boat doing?". With an admin login, also try "Which plugin is giving errors?". If you get an error, see the troubleshooting table below.
Reading the server log
From version 1.2 the assistant can look in the Signal K server log, the same text you see under Server → Server Log in the Admin UI. This is often the quickest way to find out why a plugin or connection isn't working.
- Off by default. Turn on Allow admins to read the server log in the plugin settings. It also needs an admin token; read-only users never see logs.
- Secrets are removed first. Passwords, tokens, API keys, login details in addresses and private keys are replaced with
[REDACTED]before anything leaves the boat, including your MCP key. This catches the common cases, but log text can still mention host names, file paths or your position, and that text goes to your AI service. - Short memory. Signal K keeps only the last 100 pieces of output in memory, and they are lost when Signal K restarts. Times have no year or time zone.
- Read-only. The plugin never clears the log or changes debug settings.
Example questions: "Which plugin is giving errors?", "Check the server log for problems since the restart", "Does the log say anything about can0?"
Even without the log switch, an admin can ask which plugins report an error: that uses the short status messages that plugins show in the Admin UI.
KIP dashboards
KIP is a popular instrument-panel app for Signal K. From version 1.3 the assistant can read and check your KIP dashboards. It never changes them: you make the changes in KIP yourself, with the assistant's advice.
- Turn on "Login to Server" in KIP (Settings → Connectivity). Only then does KIP keep your dashboards on the Signal K server, where the assistant can read them. Without it, they live only in your browser.
- The same Signal K user. KIP keeps dashboards per Signal K user. The assistant reads the dashboards of the user in its token. If KIP logs in as another user (say
skipper), use an admin login for the assistant and ask, for example, "Check the KIP dashboards of user skipper". Shared (global) KIP configurations also need an admin login. - What it checks: for most widgets, whether its Signal K path has fresh data that this user may read, whether it is outside the allowed data areas, and whether it is tied to a device that isn't sending. It also reports layout problems such as overlapping widgets.
- What it can't check yet: battery monitor (BMS), chart, wind trend and AIS radar widgets. The check names the widget types it skipped.
- Supported: KIP's current configuration format (KIP 4.x, configuration version 12). The assistant says so when it finds an older format. KIP's format is internal to KIP, so a future KIP version may need a plugin update.
Updating from an older version
Update under Appstore → Updates in the Admin UI and restart Signal K when asked. Your settings and key stay as they are. Then check:
- From 1.0: add
notificationsto Path prefixes if you saved your own list; otherwise alarms return PATH_NOT_ALLOWED. You can now switch to a Read Only user (step 4) if you don't need troubleshooting. - To 1.2: nothing is required. Server log reading stays off until you tick Allow admins to read the server log.
- To 1.3: nothing is required. To use the KIP tools, turn on Login to Server in KIP (see KIP dashboards).
The plugin status should show Read-only MCP ready again after the restart.
Troubleshooting
| What you see | What it usually means | What to do |
|---|---|---|
| Plugin status is not Read-only MCP ready | The key is missing or too short, or a setting is invalid | Check step 2 (restart Signal K after creating the key) and remove empty rows in Allowed origins. |
| Error 503 / PLUGIN_DISABLED | Plugin not started, or Signal K security is off | Enable the plugin; turn on Signal K security. |
| Error 401 | The token or MCP key is wrong or expired | Check both values in your AI app (see Token or MCP key?); create a new token if it expired (step 4). |
| Error 403 / FORBIDDEN_ORIGIN_OR_HOST | The address in Allowed hosts doesn't match exactly | Use the same host and port your AI app connects to. |
| PATH_NOT_ALLOWED | That data area isn't in Path prefixes | Add it in the plugin settings (for alarms: notifications). |
| PATH_UNAVAILABLE | No data there, or this user may not read it | Check the sensor and your Signal K access rules. |
| ADMIN_REQUIRED | Connection, plugin and log checks need an admin token | Use an admin token only if you need those checks. |
| LOGS_DISABLED | Reading the server log is switched off | Turn on Allow admins to read the server log in the plugin settings. |
| Values are stale | The data stopped updating | Instruments may be off; ask "Why is this reading stale?" |
More help: installation troubleshooting.
All tools
The assistant chooses these itself; you don't have to name them.
| Tool | In plain words | Needs |
|---|---|---|
get_vessel_overview |
Snapshot of the whole boat | 1.1 |
search_paths |
Find data by everyday words | 1.1 |
read_paths |
Read up to 25 values at once, optionally in knots/°C/%/litres | 1.1 |
list_alarms |
Active alarms and warnings | 1.1 |
get_usage_guide |
Teaches the assistant Signal K units and safety rules | 1.1 |
read_path |
Read one value with its age and source | 1.0 |
list_paths |
List the available data | 1.0 |
inspect_path_sources |
Which devices supply a value | 1.0 |
diagnose_missing_path |
Why a value is missing or old | 1.0 |
get_server_info, get_security_status |
What the plugin can do and how it is protected | 1.0 |
list_connections, get_connection_status |
Data connections and their errors (admin) | 1.0 |
list_plugins |
Installed Signal K plugins (admin) | 1.0 |
get_plugin_status |
Which plugins report errors or status messages (admin) | 1.2 |
get_server_logs |
Recent server log lines, secrets removed (admin, opt-in) | 1.2 |
get_kip_dashboards |
Your KIP dashboards, widgets and their paths | 1.3 |
check_kip_dashboards |
Checks KIP widgets against live data, plus layout problems | 1.3 |
Exact inputs, outputs and limits are in the specification.
Version and compatibility
Current version: 1.3.0. Check npm or GitHub releases.
- Automated tests: Node.js 22 and 24; Signal K 2.31.0 and 2.35.1.
- Tested on a live boat:
- 1.3.0 (test build): KIP 4.8.5 dashboards on the same kind of setup: five saved configurations read and checked.
- 1.2.0: Signal K 2.38.0 on an OpenPlotter Raspberry Pi, over a VPN from Windows, including server log reading with the setting off and on.
- 1.0: Signal K 2.31.0 on an OpenPlotter Raspberry Pi, with Codex desktop on Windows.
- Known limitation: Signal K 2.31.0 itself can return a technical error page for badly formed requests before the plugin sees them. See deployment responsibilities.
Details: compatibility and validation.
Learn more
- Installation and client setup
- Read-only users and permissions
- Tools, inputs and response formats
- Security and private vulnerability reporting
- Server log access: how log reading works and its limits
- Release procedure · 1.0 acceptance checklist
Contributing and development
Questions, ideas and bug reports are welcome in GitHub issues. Please report security problems privately as described in SECURITY.md.
Requires Node.js 22 or newer:
npm ci --ignore-scripts
npm test
npm run audit:runtime
npm run verify:package
See CONTRIBUTING.md and ARCHITECTURE.md.
MIT licensed. Design references and acknowledgements are in the architecture notes.