colregs-mcp
This MCP server lets you query COLREGS rule/light data and evaluate vessel circumstances against the rules with verbatim cites.
Use
evaluateto submit one vessel's facts, other vessels, and conditions, and get lawful light displays, rule-required appraisals, encounter/role analysis, and indications from observed lights/shapes/sounds; compliance over time is not read yet per the schema.Use
rule_textto fetch verbatim COLREGS paragraph text by cite, bare rule number, or range.Use
lightto look up a light's Rule 21 definition: color, character, arc, and placement.All tools are read-only, local, and explicitly not for navigation; coverage is limited to international Part C lights/night rules from pre-release data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@colregs-mcp What lights must a 12-meter sailboat under way show?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
colregs-mcp
Not for navigation. This is a preview (0.0.x) built on pre-release rule data. Do not use its output to decide what to do on the water. The tool surface will change without notice.
An MCP server that answers questions under the COLREGS. Every answer carries its paragraph cites and the verbatim rule text those cites resolve to, so a language model cannot quietly simplify it. The rules are evaluated by colregs-engine; this package only decides how the answer is written down.
Try it
Claude Code:
claude mcp add colregs -- npx -y colregs-mcpClaude connector directory: in Claude, open Settings → Connectors,
search for COLREGS and click Connect. No configuration is needed.
Any other MCP client: command npx, arguments -y colregs-mcp, no
environment.
From a clone:
git clone https://github.com/mark-brannan/colregs-mcp && cd colregs-mcp && npm install && npm run buildthen command node, argument /absolute/path/to/colregs-mcp/dist/cli.js.
Related MCP server: Magist MCP Server
Tools
tool | input | returns |
|
| one evaluation: |
|
| the verbatim text of a COLREGS paragraph |
|
| one light's definition: colour, character, arc, placement |
evaluate
circumstances is the whole picture one vessel is in: self (her own
facts), others (each other vessel, with what is known or observed of
her) and conditions (visibility, environment). One call evaluates the
picture; the response carries four readings of it.
signals: every complete, lawful set of lightsselfmay show. Each light carries its modality (shall,may,shall-if-practicable) and the paragraph that prescribes it.appraisal: what the Rules require ofselfon her own, and then against each other vessel: the kind of encounter, whether risk of collision is asserted, and each vessel's role (stand-on, give-way, shall-not-impede).indicated: for each other vessel, what her observed lights, shapes and sounds indicate she could be.compliance: over a track of circumstances sampled through time, one verdict per vessel per obligation that attached: kept, breached or pending.
Every id travels with its paragraph cite, and cited_paragraphs holds the
verbatim text of every paragraph the response cites. The input vocabulary
is generated from the colregs data package at startup. A key or value
outside it is an error, never an empty answer.
rule_text
Takes a paragraph path such as 25(b) or 26(c)(i), a bare rule number
such as 25 for every paragraph of that rule, or a range such as
24(a)(ii)-(iv). Returns the International text as transcribed from the
USCG amalgamated Navigation Rules, with its source and retrieval date.
light
Takes a light id as it appears in a response, such as light:sidelights
or light:all_round. Returns the Rule 21 definition: colour, character,
arc in degrees and placement.
Example
A 12 m sloop under way, alone.
{
"circumstances": {
"self": {
"fact:propulsion": "propulsion:sail",
"fact:activity": "activity:none",
"fact:position": "position:underway",
"fact:length_m": 11.6
}
}
}Trimmed response:
{
"colregs": { "version": "0.3.4" },
"signals": {
"applied": [
{ "id": "rule:25a", "cite": "25(a)", "modality": "modality:shall" },
{ "id": "rule:25b", "cite": "25(b)", "modality": "modality:may" },
{ "id": "rule:25c", "cite": "25(c)", "modality": "modality:may" }
],
"lawful_displays": {
"count": 3,
"relation": "any_one_of",
"options": [
{
"option": 1,
"of": 3,
"lights": [
{
"light": "light:sidelights",
"modality": "modality:shall",
"prescribed_by": { "id": "rule:25a", "cite": "25(a)" }
},
{
"light": "light:sternlight",
"modality": "modality:shall",
"prescribed_by": { "id": "rule:25a", "cite": "25(a)" }
}
]
},
{ "option": 2, "of": 3, "...": "..." },
{ "option": 3, "of": 3, "...": "..." }
]
},
"modality_key": { "modality:shall": "mandatory", "modality:may": "permitted alternative" },
"cited_paragraphs": {
"25(a)": "A sailing vessel underway shall exhibit: (i) sidelights; (ii) a sternlight.",
"25(b)": "…",
"25(c)": "…"
}
},
"appraisal": { "self": { "...": "..." }, "others": [] },
"indicated": []
}The sloop has three lawful displays, because the Rules give her the choice and nothing in the input settles it.
docs/demo.md puts the same question to the same model with and without this server and shows both answers as captured.
Response shape
Three properties hold for every response:
Cited, verbatim. Every entry id travels with its paragraph cite, and
cited_paragraphsholds the text of every paragraph cited. The only sentences in a response are the Rules' own.Modality per light.
shall,mayandshall-if-practicableare kept on each light, not summarised per display.modality_keyis a one-line glossary of the modalities the response uses.Plural by construction.
lawful_displaysopens withcountandrelationbefore any lights appear, and each option numbers itselfn of count. There is no top-levellightsfield to mistake for the answer.
A vessel that lawfully shows nothing gets one empty display, not an error. An error is reserved for input outside the vocabulary.
Every response carries colregs.version. The server refuses to start if its
own copy of colregs and the engine's are different releases.
Dependencies
colregs-engine and colregs are installed from GitHub main, not from
npm releases; the lockfile pins the commit. Both must resolve the same
release.
Privacy Policy
The server collects nothing. It runs as a local stdio process, answers from
the colregs data package installed beside it, and makes no network request
of its own. There is no telemetry, no logging of what it is asked, and no
account. The only network transaction is the install itself, which is npm's.
Releasing
Automatic from the release tag: npm and the MCP registry. The by-hand steps (Smithery, the Claude directory plugin bundle) are in docs/releasing.md.
Licence
AGPL-3.0-only. The fitness-for-navigation disclaimer in colregs carries over.
Available Tools
3 toolsevaluateEvaluate the circumstancesARead-onlyIdempotent
One evaluation of the circumstances one vessel is in, under the COLREGS, with three readings. signals: every complete, lawful set of navigation lights self may show, from her fact record (propulsion, activity, position, length, and the other facts in colregs data/facts.json): the applied entries; exempted (relieved by a rel:exempts entry) and overridden (displaced by a superior obligation's rel:overrides) entries, each with the entry that did it; and lawful_displays: {count, relation, options}. relation is "none", "exactly_one" or "any_one_of". A fact record describes a situation, not a fitted vessel: colregs data/facts.json has no equipment fact, so nothing in the input can settle a choice the Rules leave to how the vessel is fitted or what the skipper elects, such as Rule 25(b), the combined masthead lantern a sailing vessel under 20 m may carry, against Rule 25(c), the all-round red over green she may add. When lawful_displays.count is greater than 1, every option is equally lawful, the correct report is all of them, and reporting any one as "the" display for this vessel is wrong. Displays are listed in the order to consider the rules in, most specific concession first, and the first is the one a vessel of that description usually shows. Each option numbers itself "n of count", names the choice entries that distinguish it (chosen) and lists its lights with their own modality, so "shall" and "may" lights in one display are never merged. optional_additions are lawful extras (relation any_subset_of) that do not multiply the display set. Every id carries its paragraph cite, and cited_paragraphs holds the verbatim text of every cited paragraph. appraisal: what Part B requires of self on her own, then against each other vessel (kind of encounter, risk of collision, each vessel's role). indicated: per other vessel, what her observed lights, shapes and sounds say she could be. appraisal and indicated are passed through from colregs-engine as returned, without the cite resolution signals has. Compliance over time is not read yet. Not for navigation. Coverage: COLREGS Part C lights only, international (high seas) text only, lights at night only (no day shapes, no sound signals, no Part B steering rules), evaluated against pre-release colregs data (0.x), whose content is still being checked. Every entry id and paragraph cite in a response is verbatim from the colregs data package; nothing is paraphrased. This tool surface is a 0.0.x preview and will change without notice.
Inputs: circumstances (required).
lightLight definitionARead-onlyIdempotent
The definition of one light from colregs data/lights.json, verbatim: name, the Rule 21 paragraph that defines it, colour, character, arc in degrees and placement. Ids are the light ids that evaluate returns in signals, such as "light:sidelights" or "light:all_round"; the "light:" prefix is optional. Arcs use the bearing convention returned alongside. Not for navigation. Coverage: COLREGS Part C lights only, international (high seas) text only, lights at night only (no day shapes, no sound signals, no Part B steering rules), evaluated against pre-release colregs data (0.x), whose content is still being checked. Every entry id and paragraph cite in a response is verbatim from the colregs data package; nothing is paraphrased. This tool surface is a 0.0.x preview and will change without notice.
Inputs: id (required).
rule_textVerbatim rule textARead-onlyIdempotent
The verbatim text of a COLREGS paragraph from colregs data/rules.json, by its cite as used in every other response here: a paragraph path such as "25(b)" or "26(c)(i)", a bare rule number such as "25" for every paragraph of that rule, or a range such as "24(a)(ii)-(iv)". The text is the International text as transcribed from the USCG amalgamated Navigation Rules; the response names the source and retrieval date. Not for navigation. Coverage: COLREGS Part C lights only, international (high seas) text only, lights at night only (no day shapes, no sound signals, no Part B steering rules), evaluated against pre-release colregs data (0.x), whose content is still being checked. Every entry id and paragraph cite in a response is verbatim from the colregs data package; nothing is paraphrased. This tool surface is a 0.0.x preview and will change without notice.
Inputs: cite (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct roles: evaluate runs the COLREGS assessment engine, light returns a single light definition by id, and rule_text returns verbatim rule text by cite. Although evaluate's output references light ids and paragraph cites, there is no functional overlap with the two lookup tools.
The names are readable and all lowercase/snake_case, but they do not follow a single convention: evaluate is a verb while light and rule_text are noun-style lookup names. The mixed convention is minor given only three tools, but it is not a predictable verb_noun pattern.
Three tools is slightly thin but reasonable for a narrowly scoped COLREGS lights evaluator. Each tool serves a distinct purpose: assessment, light-definition lookup, and rule-text retrieval.
The core workflow is covered: evaluate a fact record, look up any light returned, and retrieve cited rule paragraphs. Minor gaps remain, such as no enumeration of all lights or rules and explicitly no compliance-over-time reading, but these are not fatal for the stated preview scope.
Maintenance
Related MCP Connectors
Deterministic AEO/GEO checks and a source-cited rulebook for AI search, for your agent.
Resolve, search and verify legal citations against the official sources, with provenance.
Classify any AI system under the EU AI Act: risk tier + binding Articles, verbatim from the law.
Live EU AI Act record from 22 official sources: EUR-Lex, AI Office, AI Board, CEN-CENELEC and national regulators (BNetzA, CNIL, AESIA, Dutch AP and more). Ask for obligations by role and risk class, look up an article, or get a digest of what changed since a date. Every answer links the primary source. Works without a key.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceExposes 20+ tools that let any MCP-compatible client run hybrid retrieval over MPEP/USC/CFR regulations, search 100M+ granted and published patents via Google BigQuery for prior art, and perform automated 35 USC 112 compliance checks on draft claims and applications. It also generates publication-style diagrams and flowcharts from natural-language descriptions.-

Magist MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceConnects AI hosts to a deterministic, cited regulatory-compliance reference so agents can look up laws, search regulations, compute which requirements a product triggers, and find related Controls, vendors, enforcement actions, and counsel with primary-source links. It also exposes the accepted feature/market/audience catalog and a token verifier for grounding what was served.41 npmMIT- FlicenseNot gradedqualityAmaintenanceEnables patent-rule lookup with citations over MPEP/USC/CFR via hybrid vector, lexical, and reranked search, plus prior-art searching across 100M+ patents through Google BigQuery. Also runs automated 35 USC 112 compliance checks on draft claims and applications and generates patent-style diagrams and flowcharts.-
- FlicenseNot gradedqualityAmaintenanceExposes 20+ tools that let MCP-compatible clients answer patent-rule questions via hybrid RAG search over MPEP, USC, and CFR, hunt for prior art across 100M+ patents through Google BigQuery, run automated claim and application compliance checks, and generate patent-style diagrams with Graphviz.-