Skip to main content

MCP server for ai·rete·rag — deterministic rule-based decisions with RAG-powered explanations

Project description

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

Install

No install needed with uvuvx 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 ./mcp-server        # 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.)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_rete_rag_mcp-0.5.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_rete_rag_mcp-0.5.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_rete_rag_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: ai_rete_rag_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for ai_rete_rag_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9d550a1b2589444c70897ecc0dc428ba4fd6a154af1bc3a9415c1707cb1038ff
MD5 225f966879dc9069f7518bb8f8b279a7
BLAKE2b-256 d0d4e7b3ab852ac800fd144c82da099fd955ec8df7f5d34bb1d53d9eea02d5d2

See more details on using hashes here.

File details

Details for the file ai_rete_rag_mcp-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_rete_rag_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0cce3679fcdacc21d88f9b42a6df6b0d6dd834d93c609231ec3b22dd46e5946
MD5 96b7869fcc6be3c7e6486b3abfcf67e9
BLAKE2b-256 4071e35da1adbee56b46721cb9844ba8f7af86a3ca4a75102905a4dc3df6370c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page