Skip to main content

MCP server for Inferra — deterministic rule-based decisions with RAG-powered explanations

Project description

Inferra MCP Server

Use Inferra — 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)
list_rules Inspect a domain's rules — conditions, verdicts, salience, overlaps
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 inferra-mcp fetches and runs the server on demand (see the config snippets below).

Alternatively, install it as a package:

pip install inferra-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 inferra -e INFERRA_API_KEY=ik_your-key-here -- uvx inferra-mcp

(If you installed via pip, use -- inferra-mcp instead of -- uvx inferra-mcp.)

Claude Desktop / other clients (JSON)

{
  "mcpServers": {
    "inferra": {
      "command": "uvx",
      "args": ["inferra-mcp"],
      "env": {
        "INFERRA_API_KEY": "ik_your-key-here"
      }
    }
  }
}

(With a pip install, set "command": "inferra-mcp" and drop "args".)

Environment variables:

Variable Default Purpose
INFERRA_API_KEY (none) Your API key — authenticates calls and ties them to your plan quota
INFERRA_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 inferra 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

inferra_mcp-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

inferra_mcp-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file inferra_mcp-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for inferra_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fd8fcac71594c5a34df678c644f9b840ba41c8030b439f895804b2eda9a13e86
MD5 a6c2f960a8d517c299d653bb1248caa8
BLAKE2b-256 154ca145512764e0f881179cd2455a1086e2ed914d0c9d6d426d76cdcaff3116

See more details on using hashes here.

File details

Details for the file inferra_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: inferra_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for inferra_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb3bc99614e6718a8b27233d435006e8791342b5bc4feeeafb4bac26ee9cbb4a
MD5 68d53c4d7690754907432fcbc126024d
BLAKE2b-256 ca4f5185686bf08b6751a13929b4da3c09c05a2b01f7a34311be816418f075fe

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