Skip to content
MCP server

Pathrule

Path-scoped project memories, rules and skills that coding agents load only when relevant

Install
Pricing
Freemium
Platforms
CLI, API, Web
Runs
Locally or Remotely
Version
1.0.6
Listing updated
2 days ago

About Pathrule

Pathrule is a freemium MCP server for developer tools. It can run locally on your machine or as a hosted remote server.

The pitch is that coding agents forget corrections, so a developer repeats "use our API client, not fetch" across sessions and tools. Pathrule saves that correction as a note filed next to the code it concerns, then sends it to Claude Code, Codex, Cursor, Copilot or Windsurf when a task touches that path. Knowledge is matched by path, scope and relevance and fit to a per-prompt budget; enforced rules are never cut, and anything left out is listed by title so the agent can ask for it.

The site publishes its own benchmark claims, run with Claude Code on Python, Go and TypeScript: for 2,000 items it reports a 54.7% lower cost across a chain of eight sessions than a CLAUDE.md read whole each step, and memory probes passed 97% against 88% for CLAUDE.md. These are vendor-reported figures. Notes are versioned, and learned claims are held back when the code they came from changes.

It works as a local stdio server through npm or as a hosted remote server with Pathrule Cloud. Plans run from a free Solo tier through Pro and a per-seat Team plan, with Enterprise (self-hosting, SSO, audit logs) by arrangement.

Install

Run in a terminal

claude mcp add --transport http pathrule https://cloud.pathrule.io/mcp

Add to Settings → Connectors → Add custom connector

https://cloud.pathrule.io/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pathrule": {
      "url": "https://cloud.pathrule.io/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "pathrule": {
      "type": "http",
      "url": "https://cloud.pathrule.io/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "pathrule": {
      "serverUrl": "https://cloud.pathrule.io/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pathrule": {
      "type": "http",
      "url": "https://cloud.pathrule.io/mcp"
    }
  }
}

What it does

Path-scoped notes
Files memories, rules and skills next to the code they describe.
Per-prompt budget
Sends only matching notes within a token budget and lists the rest by title.
Versioned updates
Keeps edit history and holds back learned claims when the source code changes.
Works across agents
Serves Claude Code, Codex, Cursor, Copilot and Windsurf from one store.
Local or cloud
Runs on your machine over stdio or through Pathrule Cloud.
Team sharing
Adds shared workspaces, roles and a pooled credit allowance on Team.

Good for

  • Stop re-explaining project conventions to every agent session
  • Share team rules and decisions across several coding assistants
  • Keep long-lived rules for one module scoped to that folder
  • Cut context tokens spent on large CLAUDE.md files

Pricing

Freemium, from $19 a month

Solo free; Pro $19/mo billed annually; Team $15/seat/mo billed annually

Prices change. Check pathrule.io before you buy.

Pathrule FAQ

Is there a free plan?

Yes. Solo is free and includes 2,000 AI credits a month, 3 cloud workspaces and unlimited local workspaces.

What does Pro cost?

$19 a month billed annually at $228, or $24 a month billed monthly.

What does Team cost?

$15 per seat a month billed annually, or $19 monthly, with a minimum of 2 seats.

Do notes use credits?

No. Cloud sync, Remote MCP access, indexing and semantic retrieval never use credits; credits pay for Ask Pathrule, Cloud Intelligence and capture.

Is Pathrule free?

Pathrule has a free plan, with paid plans for more usage or features. Paid plans start at $19 a month.

How do I add Pathrule to Claude Code?

Run this command in your terminal: claude mcp add --transport http pathrule https://cloud.pathrule.io/mcp

What are the best alternatives to Pathrule?

The closest alternatives to Pathrule are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Pathrule

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools