# Pathrule

> Pathrule is a freemium MCP server for developer tools. Path-scoped project memories, rules and skills that coding agents load only when relevant. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $19 a month
- **Platforms:** CLI, API, Web
- **Website:** https://pathrule.io
- **Repository:** https://github.com/pathrule/pathrule
- **MCP Registry name:** io.pathrule/pathrule
- **Categories:** developer tools, knowledge and memory
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://cloud.pathrule.io/mcp
```

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

```json
{
  "mcpServers": {
    "pathrule": {
      "url": "https://cloud.pathrule.io/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

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