pypi ai-rete-rag-mcpstreamable-httpMITupdated 16d ago
Use ai·rete·rag — deterministic rule-based decisions with RAG-powered explanations — from Claude Code, Claude Desktop, or any MCP client.
What can you do with ai·rete·rag?
ai·rete·rag MCP Server
Use ai·rete·rag — deterministic rule-based decisions with RAG-powered explanations — from Claude Code, Claude Desktop, or any MCP client.
The verdict always comes from the Rete rule engine (auditable, reproducible); the LLM only explains why, grounded in your ingested policy documents.
Tools
| Tool | What it does |
|---|---|
decide |
Make a decision in a domain — structured facts and/or free text, with optional Pattern 01 (rules scope retrieval) and Pattern 02 (retrieval into working memory) |
list_rules |
Inspect a domain's rules — conditions, verdicts, salience, overlaps |
get_rule_source |
Fetch a domain's rule set as editable YAML |
import_policy_rules |
Turn a written policy document into draft rules, each citing the sentence it encodes (nothing is saved — review, then put_rules) |
put_rules |
Create or replace a domain's rule set from YAML (dry_run to validate) |
ingest_text |
Add policy text to a domain's knowledge base |
list_documents |
Browse a domain's ingested documents |
get_usage |
Check your plan and remaining monthly decision quota |
Connect by URL (no install)
The server is also hosted, which is the only route for clients that connect to a URL and have no field for a static header — claude.ai and Claude Desktop custom connectors, in particular.
| URL | Auth | Reaches |
|---|---|---|
https://ai-rete-rag.com/mcp/auth |
Sign in with Google, once, in the browser | Your account — your domains, your plan quota |
https://ai-rete-rag.com/mcp |
None, or Authorization: Bearer ik_... |
Shared demo domains anonymously; your account with a key |
Add https://ai-rete-rag.com/mcp/auth as a custom connector and approve the
prompt. Connections are listed under Settings → Connected apps, and
disconnecting one takes effect immediately.
Install
No install needed with uv — uvx ai-rete-rag-mcp
fetches and runs the server on demand (see the config snippets below).
Alternatively, install it as a package:
pip install ai-rete-rag-mcp # from PyPI
pip install . # or from source, in this repo
Configure
First create an API key: sign in at ai-rete-rag.com,
open Settings → API Keys, and create a key (ik_... — shown once).
Claude Code
claude mcp add ai-rete-rag -e AI_RETE_RAG_API_KEY=ik_your-key-here -- uvx ai-rete-rag-mcp
(If you installed via pip, use -- ai-rete-rag-mcp instead of -- uvx ai-rete-rag-mcp.)
Or skip the install entirely and point it at the hosted endpoint with your key:
claude mcp add --transport http ai-rete-rag https://ai-rete-rag.com/mcp \
--header "Authorization: Bearer ik_your-key-here"
Claude Desktop / other clients (JSON)
{
"mcpServers": {
"ai-rete-rag": {
"command": "uvx",
"args": ["ai-rete-rag-mcp"],
"env": {
"AI_RETE_RAG_API_KEY": "ik_your-key-here"
}
}
}
}
(With a pip install, set "command": "ai-rete-rag-mcp" and drop "args".)
Environment variables:
| Variable | Default | Purpose |
|---|---|---|
AI_RETE_RAG_API_KEY |
(none) | Your API key — authenticates calls and ties them to your plan quota |
AI_RETE_RAG_API_URL |
https://ai-rete-rag.com |
API base URL — point at http://localhost:8000 for local dev |
Without a key you can still explore the shared demo domains (loan, fraud,
clinical, …) subject to free-tier limits.
Example
"Use ai·rete·rag to decide whether this loan application should be approved: credit score 645, annual income $52k, requested amount $30k."
Claude calls decide(domain="loan", facts={...}) and returns the rule-derived
verdict plus a plain-English explanation citing the underwriting policy.
Install
Add ai·rete·rag to your client. Pick the one you use.
{
"servers": {
"ai-rete-rag-mcp": {
"type": "http",
"url": "https://ai-rete-rag.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add ai-rete-rag-mcp -- uvx ai-rete-rag-mcpcodex mcp add ai-rete-rag-mcp -- uvx ai-rete-rag-mcpamp mcp add ai-rete-rag-mcp -- uvx ai-rete-rag-mcp{
"mcpServers": {
"ai-rete-rag-mcp": {
"command": "uvx",
"args": [
"ai-rete-rag-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"ai-rete-rag-mcp": {
"command": "uvx",
"args": [
"ai-rete-rag-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"ai-rete-rag-mcp": {
"command": "uvx",
"args": [
"ai-rete-rag-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"ai-rete-rag-mcp": {
"command": "uvx",
"args": [
"ai-rete-rag-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"ai-rete-rag-mcp": {
"command": "uvx",
"args": [
"ai-rete-rag-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"ai-rete-rag-mcp": {
"type": "local",
"command": "uvx",
"args": [
"ai-rete-rag-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"ai-rete-rag-mcp": {
"command": {
"path": "uvx",
"args": [
"ai-rete-rag-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx ai-rete-rag-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
7 tools
ai·rete·rag exposes 7 tools to a connected agent.
- list_rules
- Inspect a domain's rules — conditions, verdicts, salience, overlaps
- get_rule_source
- Fetch a domain's rule set as editable YAML
- import_policy_rules
- Turn a written policy document into draft rules, each citing the sentence it encodes (nothing is saved — review, then `put_rules`)
- put_rules
- Create or replace a domain's rule set from YAML (dry_run to validate)
- ingest_text
- Add policy text to a domain's knowledge base
- list_documents
- Browse a domain's ingested documents
- get_usage
- Check your plan and remaining monthly decision quota
Score
81 / 100
Excellent
- Documentation22/25
- Maintenance25/25
- Trust13/20
- Capability6/15
- Install experience15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 8 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 7 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.7.0Latest | Aug 23, 2026 |
| 0.6.1 | Aug 5, 2026 |
| 0.6.0 | Aug 5, 2026 |
| 0.5.4 | Aug 4, 2026 |
| 0.5.3 | Aug 1, 2026 |
| 0.5.2 | Jul 31, 2026 |
| 0.5.1 | Jul 23, 2026 |
| 0.2.0 | Jul 13, 2026 |