Cruxible Core
Deterministic decision engine with DAG-based receipts. Build entity graphs, query with MCP, get auditable proof.
README
<p align="center"> <a href="https://cruxible.ai"> <img src="assets/cruxible_logo.png" alt="Cruxible" width="400"> </a> </p>
Cruxible Core
Deterministic decision engine with receipts. Define rules in YAML. Query a knowledge graph. Get a proof of every answer.
Define a decision domain in YAML — entity types, relationships, queries, constraints. Ingest data, build the graph, query it, and get a receipt/audit trail proving exactly how the answer was derived. AI agents orchestrate the workflow, Core executes deterministically. No LLM inside, no API keys, no token costs.
┌──────────────────────────────────────────────────────────────┐
│ AI Agent (Claude Code, Cursor, Codex, ...) │
│ Writes configs, orchestrates workflows │
└──────────────────────┬───────────────────────────────────────┘
│ calls
┌──────────────────────▼───────────────────────────────────────┐
│ MCP Tools │
│ init · validate · ingest · query · feedback · evaluate ... │
└──────────────────────┬───────────────────────────────────────┘
│ executes
┌──────────────────────▼───────────────────────────────────────┐
│ Cruxible Core │
│ Deterministic. No LLM. No opinions. No API keys. │
│ Config → Graph → Query → Receipt → Feedback │
└──────────────────────────────────────────────────────────────┘
What It Looks Like
1. Define a domain in YAML:
entity_types:
Drug:
properties:
drug_id: { type: string, primary_key: true }
name: { type: string }
Enzyme:
properties:
enzyme_id: { type: string, primary_key: true }
name: { type: string }
relationships:
- name: same_class
from: Drug
to: Drug
- name: metabolized_by
from: Drug
to: Enzyme
named_queries:
suggest_alternative:
entry_point: Drug
returns: Drug
traversal:
- relationship: same_class
direction: both
- relationship: metabolized_by
direction: outgoing
2. Ingest data. Ask your AI agent:
"Suggest an alternative to simvastatin"
3. Get a receipt — structured proof of every answer:
Receipt interpreted by Claude Code from the raw receipt DAG:
Receipt RCP-17b864830ada
Query: suggest_alternative for simvastatin
Step 1: Entry point lookup
simvastatin -> found in graph
Step 2: Traverse same_class (both directions)
Found 6 statins in the same therapeutic class:
n3 atorvastatin n4 rosuvastatin n5 lovastatin
n6 pravastatin n7 fluvastatin n8 pitavastatin
Step 3: Traverse metabolized_by (outgoing) for each alternative
n9 atorvastatin -> CYP3A4 (CYP450 dataset)
n10 rosuvastatin -> CYP2C9 (CYP450 dataset, human approved)
n11 rosuvastatin -> CYP2C19 (CYP450 dataset)
n12 lovastatin -> CYP2C19 (CYP450 dataset)
n13 lovastatin -> CYP3A4 (CYP450 dataset)
n14 pravastatin -> CYP3A4 (CYP450 dataset)
n15 fluvastatin -> CYP2C9 (CYP450 dataset)
n16 fluvastatin -> CYP2D6 (CYP450 dataset)
n17 pitavastatin -> CYP2C9 (CYP450 dataset)
Results: CYP3A4, CYP2C9, CYP2C19, CYP2D6
Duration: 0.41ms | 2 traversal steps
Get Started
pip install "cruxible-core[mcp]"
Or use
uv tool install "cruxible-core[mcp]"if you prefer uv.
Add the MCP server to your AI agent:
Claude Code / Cursor (project .mcp.json or ~/.claude.json / .cursor/mcp.json):
{
"mcpServers": {
"cruxible": {
"command": "cruxible-mcp",
"env": {
"CRUXIBLE_MODE": "admin"
}
}
}
}
Codex (~/.codex/config.toml):
[mcp_servers.cruxible]
command = "cruxible-mcp"
[mcp_servers.cruxible.env]
CRUXIBLE_MODE = "admin"
Try a demo
git clone https://github.com/cruxible-ai/cruxible-core
cd cruxible-core/demos/drug-interactions
Each demo includes a config, prebuilt graph, and .mcp.json. Open your agent in a demo directory.
First, load the instance:
"You have access to the cruxible MCP, load the cruxible instance"
Then try:
- "Check interactions for warfarin"
- "What's the enzyme impact of fluoxetine?"
- "Suggest an alternative to simvastatin"
Every query produces a receipt you can inspect.
Why Cruxible
| LLM agents alone | With Cruxible |
|---|---|
| Relationships shift depending on how you ask | Explicit knowledge graph you can inspect |
| No structured memory between sessions | Persistent entity store across runs |
| Results vary between identical prompts | Deterministic execution, same input → same output |
| No audit trail | DAG-based receipt for every decision |
| Constraints checked by vibes | Declared constraints programmatically validated before results |
| Discovers relationships only through LLM reasoning | Deterministic candidate detection finds missing relationships at scale — LLM assists where judgment is needed |
| Learns nothing from outcomes | Feedback loop calibrates edge weights over time |
Features
- Receipt-based provenance: every query produces a DAG-structured proof showing exactly how the answer was derived.
- Constraint system: define validation rules that are checked by
evaluate. Feedback patterns can be encoded as constraints. - Feedback loop: approve, reject, correct, or flag individual edges. Rejected edges are excluded from future queries.
- Candidate detection: property matching and shared-neighbor strategies for discovering missing relationships at scale.
- YAML-driven config: define entity types, relationships, queries, constraints, and ingestion mappings in one file.
- Zero LLM dependencies: purely deterministic runtime. No API keys, no token costs during execution.
- Full MCP server: complete lifecycle via Model Context Protocol for AI agent orchestration.
- CLI mirror: core MCP tools have CLI equivalents for terminal workflows.
- Permission modes: READ_ONLY, GRAPH_WRITE, ADMIN tiers control what tools a session can access.
Demos
| Demo | Domain | What it demonstrates |
|---|---|---|
| sanctions-screening | Fintech / RegTech | OFAC screening with beneficial ownership chain traversal. |
| drug-interactions | Healthcare | Multi-drug interaction checking with CYP450 enzyme data. |
| mitre-attack | Cybersecurity | Threat modeling with ATT&CK technique and group analysis. |
Documentation
- Quickstart — 5-minute install to first query
- Concepts — Architecture and primitives
- Config Reference — Every YAML field explained
- MCP Tools Reference — All tools with parameters and return types
- CLI Reference — Terminal commands
- AI Agent Guide — Orchestration workflows for Claude Code, Cursor, Codex, and other MCP clients
Technology
Built on Pydantic (validation), NetworkX (graph), Polars (data ops), SQLite (persistence), and FastMCP (MCP server).
Cruxible Cloud: Managed deployment with expert support. Coming soon.
License
MIT
<!-- mcp-name: io.github.cruxible-ai/cruxible-core -->
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。