Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Imo Rules

БесплатноНе проверен

Provides offline semantic search and reading of IMO maritime rules (SOLAS, MARPOL, STCW, etc.) to AI clients via MCP.

GitHubEmbed

Описание

Provides offline semantic search and reading of IMO maritime rules (SOLAS, MARPOL, STCW, etc.) to AI clients via MCP.

README

An MCP server that exposes a local corpus of IMO maritime rules and regulations (SOLAS, MARPOL, STCW, the codes, etc.) to MCP-compatible local clients for offline semantic search and reading. No crawler, no network; it serves a local corpus you provide.

Bring Your Own Corpus

This repository contains only the server code. It does not include any regulation text. The IMO rules and regulations corpus is copyrighted by its rights holders and is licensed to you separately. Do not commit it to a public repository or redistribute it. The corpus/ directory is gitignored for this reason. If you choose to bundle a corpus into a repo for convenience, keep that repository private.

What You Provide

A corpus directory (default ./corpus/) containing:

corpus/
  imo-corpus.sqlite     # SQLite corpus (documents, nodes, citations)
  toc.json              # navigation tree (instruments, chapters, regulations)
  rag/
    config.json
    meta.json
    vectors.f32         # one embedding per page
    models/             # local embedding model

This layout is produced by the companion KRcrawl exporter (export:full-help

  • rag:index). Import it with:
npm install
node scripts/import-corpus.mjs /path/to/KRcrawl

Or skip the copy and point the server at an existing build with env vars.

Tools

Tool What it does
imo_semantic_search Meaning-based search: ranked regulations with instrument breadcrumb, snippet, and docKey.
imo_keyword_search Substring search over titles, optionally body text.
imo_get_document Full normalized text of one regulation by docKey, plus breadcrumb and citations.
imo_list_instruments Top-level instruments such as SOLAS, MARPOL, STCW, and the codes.
imo_browse Navigate the instrument, chapter, and regulation tree.
imo_get_citations Outbound cross-references from one document.
imo_stats Corpus overview.

imo_semantic_search lazily loads the bundled local embedding model on first call; other tools are instant. The server is read-only and offline.

Use It

A project-scoped .mcp.json is included for MCP hosts that support repository-local configuration. For hosts that use a global config file, add a server entry like this and point cwd at this repo so ./corpus resolves:

{
  "mcpServers": {
    "imo-rules": {
      "command": "npx",
      "args": ["tsx", "src/server.ts"],
      "cwd": "/path/to/imo-rules-mcp"
    }
  }
}

Smoke-test standalone:

npm start

The process speaks MCP over stdio; press Ctrl-C to stop.

Configuration

Var Default Meaning
IMO_DB corpus/imo-corpus.sqlite SQLite corpus path
IMO_RAG corpus/rag semantic-search index dir
IMO_TOC <IMO_RAG>/../toc.json navigation tree; override if it lives elsewhere
IMO_ROOT_KEY 0000.00e0 top-level tree key for imo_list_instruments

To run against an existing KRcrawl build in place, set:

IMO_DB=<KRcrawl>/data/krcon.sqlite
IMO_RAG=<KRcrawl>/dist/help/full-clone/assets/rag
IMO_TOC=<KRcrawl>/dist/help/full-clone/toc.json

License

Server code: MIT (see LICENSE). The license covers the code only, not any corpus data you supply.

from github.com/CAPTW/imo-rules-mcp

Установка Imo Rules

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/CAPTW/imo-rules-mcp

FAQ

Imo Rules MCP бесплатный?

Да, Imo Rules MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Imo Rules?

Нет, Imo Rules работает без API-ключей и переменных окружения.

Imo Rules — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Imo Rules в Claude Desktop, Claude Code или Cursor?

Открой Imo Rules на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Imo Rules with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai