# Urml

> Urml is an open-source MCP server for robotics tooling. Validates robot programs against capability limits and safety rules before they run. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows
- **Website:** https://urml.dev
- **Repository:** https://github.com/urml-dev/urml/tree/HEAD/reference/mcp-server
- **MCP Registry name:** io.github.urml-dev/urml
- **Categories:** [robotics tooling](https://ai-powered.com/categories/robotics-tooling)
- **Listing updated:** 2026-11-27

## About

URML's MCP server gives an AI agent five tools for writing and checking robot programs. The agent drafts a URML program, asks the server to validate it against a robot's capability manifest and safety envelope, and only then runs it. The server never calls a language model itself; the calling agent does the generating, so the validator stays the checkpoint between a model's output and an actuator.

By default the server runs against a mock adapter that records calls and touches no hardware, so the full loop can be tried without a robot. Real adapters for ROS 2, PX4 and ArduPilot are off unless the operator enables them and pins the manifest, envelope and policy at startup, so an agent cannot choose the rules it is checked against.

The package is aimed at developers and robotics teams who connect coding or assistant agents such as Claude Code, Cursor or VS Code to physical robots and want refusals to come back as typed errors rather than unsafe motion.

## Features

- **Program validation:** Checks a URML program against a robot's capability manifest and safety envelope and returns structured errors.
- **Gated execution:** Runs programs through an adapter only after re-validation, with real-hardware adapters disabled by default.
- **Operator-pinned rules:** Manifests, envelopes, profiles and policies can be fixed at server startup so the agent cannot override them.
- **Mock adapter:** A hardware-free adapter lets the validate and execute loop be tested without ROS or a robot.
- **Contract retrieval:** Returns the system prompt and JSON Schema an agent needs to emit valid URML.
- **Evidence logging:** Optionally writes a local record for each validation and execution verdict.

## Good for

- Letting a coding agent draft robot motion programs that are checked before any hardware receives them
- Testing URML programs against a robot's limits in simulation with the mock adapter
- Pinning a robot's manifest and site envelope so an assistant cannot bypass them
- Connecting an MCP-capable client to a PX4 or ArduCopter drone through validated execution

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add urml -- uvx urml-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "urml": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add urml -- uvx urml-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.urml]
command = "uvx"
args = ["urml-mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user urml uvx -- urml-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "urml": {
      "command": "uvx",
      "args": [
        "urml-mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools changes data. From the server's own tool labels and tool names; not verified by us.

- `urml_get_contract` (name suggests: reads): Returns the Layer-4 system prompt and the URML program JSON Schema to emit against.
- `urml_validate` (name suggests: reads): Validates a program against a manifest and safety envelope and returns accepted status with structured errors.
- `urml_execute` (name suggests: changes): Runs a program against an adapter after re-validating it.
- `urml_list_profiles` (name suggests: reads): Lists available profiles such as home, industrial, drone, educational and fleet.
- `urml_describe_manifest` (name suggests: reads): Returns a compact structural summary of a capability manifest.

## FAQ

### Does the server call an AI model?

No. The calling agent generates the URML, and the server only validates and executes it.

### Does Urml work without a robot?

Yes. The default mock adapter records calls and touches no hardware, and it needs no ROS install.

### How is Urml installed?

Install the urml-mcp-server package from PyPI with pip, then run the urml-mcp command over stdio and register it in an MCP client config.

### Which robot systems are supported for real execution?

ROS 2, PX4 and ArduPilot adapters are available, each requiring its own runtime package and a reachable controller.

### Is Urml free?

Yes. Urml is open source, so you can use and self-host it for free.

### How do I add Urml to Claude Code?

Run this command in your terminal: claude mcp add urml -- uvx urml-mcp-server

### What are the best alternatives to Urml?

The closest alternatives to Urml are mjguard, RoArm-M3, Embodify, MCP Server Ros 2 and Ros MCP Server.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [mjguard](https://ai-powered.com/mcp/mjguard): mjguard is an open-source MCP server for robotics tooling.
- [RoArm-M3](https://ai-powered.com/mcp/roarm-m3): RoArm-M3 is an open-source MCP server for robotics tooling.
- [Embodify](https://ai-powered.com/mcp/embodify): Embodify is an open-source MCP server for robotics tooling.
- [MCP Server Ros 2](https://ai-powered.com/mcp/mcp-server-ros-2): MCP Server Ros 2 is an open-source MCP server for robotics tooling.
- [Ros MCP Server](https://ai-powered.com/mcp/ros-mcp-server): Ros MCP Server is an open-source MCP server for robotics tooling.

---
Source: https://ai-powered.com/mcp/urml
