Skip to main content
Glama

robot-md-mcp

The one-command bridge from a ROBOT.md file to any MCP-aware agent. Claude Code, Claude Desktop, Cursor, Zed, Cline, Continue.dev, OpenAI Codex CLI, Google Gemini CLI — any MCP client speaking stdio transport reads your robot's manifest as structured resources. Zero config files.

License Node CI npm

Where this fits in the stack

This repo is the agent bridge — an MCP server that speaks the open Model Context Protocol and serves your ROBOT.md to any MCP-aware planner. Everything else is independent; adopt one, or all seven.

Layer

Piece

What it is

Declaration

ROBOT.md

The file a robot ships at its root. YAML frontmatter + markdown prose. Declares identity, capabilities, safety gates. Spec + Python CLI (init, validate, calibrate, register).

Agent bridge ← this

robot-md-mcp

MCP server that exposes a ROBOT.md as 4 MCP resources (frontmatter, capabilities, safety, body) + 2 tools (validate, render). One claude mcp add away.

Gateway / Enforcement (Layer 3)

robot-md-gateway

Mandatory exclusive path between agent intent and any actuator. Receives signed RCAN INVOKE envelopes, verifies manifest provenance, applies tier policy + tool allowlist, dispatches to drivers, signs an audit-bundle entry per action. (Renamed from robot-md-dispatcher 2026-05.)

Wire protocol

RCAN

How robots, gateways, and planners talk. Signed envelopes, LoA enforcement, PQC crypto. Think HTTP for robots.

Python SDK

rcan-py

pip install rcan — RCANMessage, RobotURI, ConfidenceGate, HiTLGate, AuditChain.

TypeScript SDK

rcan-ts

npm install rcan-ts — same API surface for Node + browser.

Registry

Robot Registry Foundation

Permanent RRN identities. Public resolver at /r/<rrn>.

Reference runtime

OpenCastor

Open-source robot runtime — connects LLM brains to hardware bodies. One implementation of RCAN.

Related MCP server: git-doc-mcp

What it does

Reads a local ROBOT.md and exposes it to an MCP client as:

  • Resources — the client can read at will:

    • robot-md://<robot_name>/frontmatter (application/json)

    • robot-md://<robot_name>/capabilities (application/json)

    • robot-md://<robot_name>/safety (application/json)

    • robot-md://<robot_name>/body (text/markdown)

  • Tools — the client invokes on operator request:

    • validate → { ok, summary, errors }

    • render → canonical YAML of the frontmatter

The server re-reads the file on every call. No cache, no watcher, no runtime config.

Who uses this — three examples

Real operator workflows the plugin was designed for. Each example is a single Claude Code session after /plugin install robot-md.

Example 1 — First-time hobbyist with an SO‑ARM101

A maker just assembled their first robot arm and wants Claude to move it, with the robot's limits enforced by something other than Claude.

$ pip install 'robot-md>=2.0.1' && robot-md init my-arm --preset so-arm101 \
    --manufacturer "Home Lab" --contact-email me@example.com
$ robot-md install-gateway     # the bounded layer every motion goes through
$ cd my-arm && claude

Inside Claude Code:

Operator: what can this robot do?

Claude: (reads robot-md://my-arm/capabilities via MCP) my-arm is a 6‑DOF SO‑ARM101 with five capabilities: arm.pick, arm.place, arm.reach, arm.home, status.report. Max payload 0.5 kg. Software E‑stop at 100 ms.

Operator: move the arm to its ready pose

Claude: (reads /safety first) That's arm.reach, and I can't send it. Your manifest gates the destructive and system scopes with require_auth: true, which covers every motion. That needs a person's confirmation from outside this conversation, and robot-md has no way to take one yet, so the robot-md MCP server refuses motion while those gates stand. You can run the move yourself at the arm. I can still answer from the manifest and read the robot's state.

What the plugin does here: the using-robot-md skill blocks answering from general robotics priors (the operator's declared 0.5 kg payload overrides Claude's training-data assumptions), and it sends motion only through robot-md-gateway, which decides. The so-arm101 preset gates motion with require_auth: true, so until robot-md can take a confirmation from outside the chat, Claude moves nothing on a manifest made from it. On a manifest whose gates don't cover motion, Claude first checks that a person is at the machine with a hardware stop in reach, then sends each step to the gateway and reports its answer, including whether the arm reached the target.

Example 2 — Safety review before a sensitive action

A clinical-lab operator is about to ask Claude to manipulate a glass vial. They want an explicit safety check, not a generic answer.

Operator: /check-safety action="pick up the glass vial near the centrifuge"

Claude: (invokes the check-safety MCP prompt, which cross-references declared hitl_gates[]) ⚠ Gated — destructive. Your manifest gates the destructive scope with require_auth: true, and picking up glass falls under it. That needs a person's confirmation from outside this conversation, which robot-md does not have yet, so the robot-md MCP server refuses arm.pick here, and every other motion while that gate stands.

Operator: yes, I authorize the pick — the vial is capped and empty

Claude: I can't take that as authorization: a reply in chat isn't a confirmation the gateway can check, and robot-md refuses gated motion. Whether and how this pick runs is your decision at the machine.

What the plugin does here: the /check-safety slash command (an MCP prompt, not a hallucinated protocol) gives operators a deterministic gate check. The skill's rules ban Claude from treating a chat reply as authorization for motion and from silently proceeding past an undeclared scope; it either finds a matching gate or surfaces the gap.

Example 3 — Team sharing a fleet-robot manifest

A research team has a shared repo for their TurtleBot-4 logistics robot. They want every engineer who clones the repo to get the same robot context in Claude Code without extra setup.

# From the team lead's laptop, inside the repo:
$ /plugin marketplace add RobotRegistryFoundation/claude-code-plugins --scope project
$ /plugin install robot-md --scope project
$ git add .claude/settings.json && git commit -m "chore: pin robot-md plugin to repo"

Now anyone who clones the repo and runs claude inside it gets the plugin auto-loaded (/plugin's project scope reads from the committed .claude/settings.json). The ROBOT.md at the repo root is picked up by the MCP server's cwd-walk — no absolute paths, no environment variables, no onboarding doc.

New teammate, first session: what am I looking at?

Claude: (reads robot-md://fleet-tb4/context via MCP, skill fires) This is fleet-tb4 — a TurtleBot-4 warehouse logistics robot registered at RRN‑000000000412 (public record: robotregistryfoundation.org/r/RRN-000000000412). It has six capabilities, two active HITL gates (shelf-height > 2 m, and any motion near the charging dock), and a 4‑hour battery runtime. What do you want to work on?

What the plugin does here: project-scoped install means the robot context travels with the repo. New teammates get identical agent behavior on day one. The registered RRN gives every surface (Code, Desktop, Mobile) the same public identity to anchor against.

REST + OpenAPI bridge — robot-md-http (v0.1, scaffolding)

For agents that don't speak MCP (ChatGPT Custom GPT Actions, OpenAI Agents SDK, n8n, Zapier, plain curl) the same package now ships a Hono-based HTTP bridge that mirrors the MCP tool surface. Localhost-only, npx-launched per project, same posture as the MCP server.

npx -y robot-md-http /path/to/ROBOT.md
# robot-md-http: serving bob on http://localhost:8787
#   OpenAPI 3.1: http://localhost:8787/openapi.json
#   Health:      http://localhost:8787/health

ChatGPT Custom GPT Actions can import http://localhost:8787/openapi.json directly. Endpoints mirror the MCP resources (frontmatter, capabilities, safety, body, identity, context) plus POST /validate and POST /render tools.

v0.1 is a scaffold — see issue #3 in robot-md for the full v0.1 spec and the v0.2 hosted-multi-tenant roadmap (RCAN 3.0 envelopes, rate limiting, GPT Store entry).

Not in v0.1 — deferred to v0.2

  • No signature verification. ROBOT.md v0.2 will add signed manifests (.sig) and a key-binding-at-RRN-mint flow; see spec/v0.2-design.md.

  • No robot dispatch. invoke_skill / query_status arrive after the v0.2 signing decisions in §13 are finalized.

  • No multi-manifest / fleet mode.

Claude Code plugin — the easiest path

The plugin bundles the using-robot-md skill and auto-registers this MCP server. Two phases: install the plugin once, then set up each robot project.

Phase 1 — Install the plugin (one-time)

Inside Claude Code 2.1.275 or later, one line:

/plugin install robot-md --marketplace RobotRegistryFoundation/claude-code-plugins

On older versions, add the marketplace first:

/plugin marketplace add RobotRegistryFoundation/claude-code-plugins
/plugin install robot-md
/reload-plugins

Scope — /plugin install defaults to --scope user (the recommended choice for most people). Other scopes:

Scope

When to use

Command

user (default, recommended)

Your own machine, every project you open. Install once and forget.

/plugin install robot-md

project

Your team's repo — pin the plugin in .claude/settings.json so everyone who opens the repo gets it automatically. Commit the settings file.

/plugin install robot-md --scope project

local

Your personal override inside a project (writes to .claude/settings.local.json, not committed). Rare.

/plugin install robot-md --scope local

The same --scope flag works on /plugin marketplace add. Match the scopes: if the plugin is project-scoped, the marketplace should be too, otherwise teammates won't find it.

Phase 2 — Set up a robot project (per project)

# If you don't have one yet, create a ROBOT.md. The plugin's MCP server needs robot-md
# 2.0.1 or newer; if pip finds no 2.0.1, it isn't released yet.
pip install 'robot-md>=2.0.1'
robot-md init my-robot --preset so-arm101 --manufacturer Acme --contact-email you@example.com

# Then launch Claude Code from the project root:
cd path/to/my-robot
claude

Inside the session, run /mcp — you should see robot-md connected. Ask "what can this robot do?" and the using-robot-md skill fires, reading capabilities from the MCP server.

How the MCP server finds your ROBOT.md: it walks up from the directory you launched Claude Code in, picks the first ROBOT.md it finds, and serves that. Launch from the project root and it just works — no config, no env vars.

Registering a real robot (optional): once validated, robot-md register ROBOT.md --manufacturer <...> --contact-email <...> mints an RRN at Robot Registry Foundation and pins metadata.rrn in your file.

Prefer the plain claude mcp add flow below if you need to pin a specific absolute path, run against multiple ROBOT.md files from one session, or install without a marketplace.


Claude Code (CLI) — one command

The fastest way. One line, no config files:

claude mcp add robot-md -- npx -y robot-md-mcp /absolute/path/to/ROBOT.md

That's it. Open Claude Code — it now reads your robot's frontmatter, capabilities, safety block, and prose body as MCP resources, and can invoke the validate and render tools on request. No harness config, no provider setup, no YAML wrangling.

To confirm it's wired up:

claude mcp list | grep robot-md

To remove: claude mcp remove robot-md.

Install (standalone)

If you want to run the server yourself:

npx robot-md-mcp /path/to/ROBOT.md

Node 18.20+ required. The claude mcp add flow above uses npx under the hood, so no global install needed for the Claude Code path.

Claude Desktop config

Add this to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "robot-md": {
      "command": "npx",
      "args": ["-y", "robot-md-mcp", "/absolute/path/to/ROBOT.md"]
    }
  }
}

Restart Claude Desktop. Open a new chat — Claude now has the robot's frontmatter, capabilities, safety block, and prose body on tap.

Any MCP-aware agent harness

ROBOT.md is a file. robot-md-mcp is an MCP server. MCP is an open standard. Any agent tool that speaks MCP can ingest ROBOT.md through this server — not just Claude.

The underlying command to register is always the same:

npx -y robot-md-mcp /absolute/path/to/ROBOT.md

Stdio transport, no auth. How you wire it depends on the harness:

Harness

How to add

Claude Code (CLI)

claude mcp add robot-md -- npx -y robot-md-mcp /path/to/ROBOT.md

Claude Desktop

JSON snippet in claude_desktop_config.json (see above)

OpenAI (Codex CLI, ChatGPT Desktop)

Add to the tool's MCP-server config — command npx, args ["-y","robot-md-mcp","/path/to/ROBOT.md"]

Google Gemini CLI

Add to ~/.gemini/settings.json under mcpServers with the command above

Cursor / Zed / Cline / Continue.dev / VS Code MCP extensions

Add via the tool's MCP settings with the same command

Anything else speaking MCP stdio

Register the npx command; that's it

Create and place one ROBOT.md. Any agent — any provider — reads the same file. That's the whole point.

Tier-0 adoption loop

# Generate a draft from visible hardware
pip install robot-md
robot-md autodetect --write ./ROBOT.md

# Edit the TODOs (robot name, physics type, DoF, capabilities)
# Then point Claude Desktop at it:
# -> add the JSON snippet above to claude_desktop_config.json

API surface

import {
  // Core
  parseRobotMd,
  ParseError,
  validateParsed,
  renderYaml,
  createServer,
  VERSION,
  // Types
  type ParsedRobotMd,
  type ValidateResult,
  type ServerHandle,
} from "robot-md-mcp";

All are importable for programmatic use — e.g. building a custom MCP server on top, or running the parser/validator as part of a larger TypeScript tool.

Development

git clone https://github.com/RobotRegistryFoundation/robot-md-mcp
cd robot-md-mcp
npm install
npm test            # vitest: parser, validator, render, server, bin
npm run build       # tsup → dist/
npm run sync-schema # refresh bundled schema from ../robot-md

Contributing

License

Apache 2.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers