Skip to content

MCP / Claude Integration

rulegraph ships an MCP server that exposes its core operations as native Claude tools.

Install

pip install "rulegraph[mcp]"

Add to Claude Desktop

Edit ~/.config/claude/claude_desktop_config.json (Linux) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "rulegraph": {
      "command": "rulegraph-mcp"
    }
  }
}

Claude Code slash commands

After cloning the repo, these project-level commands are available:

Command What it does
/project:test Run test suite and report failures
/project:pr-prep Run lint + types + tests + CHANGELOG check
/project:release <version> Prepare a release

Smithery

rulegraph is listed on smithery.ai — search for "rulegraph" to install with one click.