Pyrite's MCP server lets AI agents interact with your knowledge bases. It can run locally alongside your AI client, or serve a remote Pyrite instance.
Local MCP server (most common)
After installing Pyrite and creating a KB:
```bash pyrite mcp # write tier (default) pyrite mcp --tier read # read-only for untrusted agents pyrite mcp --tier admin # full access including reindex ```
The MCP server runs as a stdio process — your AI client (Claude, Codex, Gemini) launches it automatically via the MCP config. You don't need to start it manually.
Access tiers
| Tier | Tools available | Use case | |------|----------------|----------| | read | search, get, list, backlinks, recent | Untrusted agents, browsing | | write | All read + create, update, delete, link | Your own agents | | admin | All write + reindex, schema, validate | Maintenance tasks |
Rate limiting
The MCP server includes per-client rate limiting to prevent runaway agents:
Available MCP tools
Read tier:
Write tier (adds):
Admin tier (adds):
Connecting to a remote Pyrite instance
If you're running Pyrite on a server (like the demo at demo.pyrite.wiki), the MCP server currently requires a local install pointed at the same KB data. Remote MCP over HTTP/SSE is on the roadmap.
Current pattern for remote KBs:
1. Clone the KB repo: `git clone
Changes sync through git push/pull.