Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
Deterministic logical reasoning engine — facts in Euclid IR, solutions with proof trees
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"euclid": {
"command": "uvx",
"args": [
"euclid-mcp"
]
}
}
}Run this in your terminal
claude mcp add euclid -- uvx euclid-mcpPaste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"euclid": {
"command": "uvx",
"args": [
"euclid-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"euclid": {
"type": "stdio",
"command": "uvx",
"args": [
"euclid-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026
The registry name was verified with the GitHub account meob, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.4.5) reached the registry 3 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
MCP server for logical reasoning — turns facts into formal proofs.
Euclid-MCP is a hybrid cognitive architecture: a lightweight LLM describes the world in facts, and a deterministic engine performs the actual deduction. The LLM never needs to reason — it only needs to describe.
With Euclid-MCP, an 8B model can solve reasoning tasks that stump even 400B+ cloud models — because the engine handles deduction deterministically. Every answer comes with a proof tree, so you can trace *why* a conclusion holds, not just *what* it is. Use it to enforce RBAC policies, audit cloud compliance, validate loan eligibility rules, or reason over any domain where answers must be explainable and verifiable.
Euclid-MCP is written in Python and uses Euclid-IR, a human-readable intermediate language designed for both AI agents and humans. It uses SWI-Prolog as its primary inference engine — and, where SWI-Prolog is not available (e.g. minimal containers), a pure-Python native engine that interprets Euclid-IR directly (see docs/NATIVE_ENGINE.md). It can be consumed in multiple ways: via MCP by AI agents (OpenCode, Claude, Cursor), via HTTP by tools and automation platforms (n8n, Zapier, Make), and via Python API for direct integration. Euclid-IR rules can also be used to augment RAG pipelines with deterministic policy enforcement.
┌──────────────┐ ┌──────────────────┐ ┌──────────────┐ ┌─────────────────┐
│ LLM/Agent │────▶│ Euclid-MCP │────▶│ Translator │────▶│ SWI-Prolog │ │ (MCP Client)│◀────│ (MCPServer) │◀────│ + Meta-IP │◀────│ (persistent) │ └──────────────┘ └──────────────────┘ └──────────────┘ └─────────────────┘
Additional tools (explain, diagnose, what_if, check_kb) extend this core flow with natural-language explanations, analysis, scenario testing, and validation.
LLMs describe. Euclid MCP proves.
For small knowledge bases, facts and rules can be provided with each request.
A knowledge base can be loaded at server startup and reused across calls, so agents only pass the session-specific facts for the current query. This minimizes token usage, improves performance, and allows small LLMs to reason over large rule sets without reconstructing the entire knowledge base for every request.
Even if currently Euclid-MCP uses a Prolog Engine, no Prolog syntax is required. Euclid-IR (Intermediate Representation) is a declarative intermediate representation for logical inference. Variables use $name, implication is IF, conjunction is AND.
Text format:
human(socrates)
mortal($x) IF human($x)
? mortal($who)
YAML format:
facts:
rules:
query: ancestor(tom, $who)
Full language reference: docs/EUCLID_IR.md
| Element | Syntax | Example |
|---|---|---|
| Facts | predicate(args) | parent(tom, bob) |
| Variables | $name (lowercase) | $who, $x, $count |
| Implication | IF | mortal($x) IF human($x) |
| Conjunction | AND | p($x) AND q($x) |
| Disjunction | OR | can($u) IF is_admin($u) OR has_role($u, auditor) |
| Grouping | (...) | (is_admin($u) OR support($u)) AND active($u) |
| Negation | NOT | NOT active($user) |
| Boolean literals | true / false in rule bodies | merchant($m) IF false |
| Query | ? predicate | ? ancestor(tom, $who) |
| String literals | "..." or '...' | "alice@example.com" |
| Multi-line rules | Body on next line | rule($x) IF\n body($x) |
Rules support arithmetic comparisons that are evaluated during deduction:
# Stale access: users who haven't logged in for 90+ days
stale_access($user) IF user($user) AND last_login_days($user, $days) AND $days > 90
excessive_permissions($user, $count) IF user($user) AND permission_count($user, $count) AND $count > 15
can_access($user, $resource) IF user($user) AND resource($resource, _, _, _, _, $cls) AND classification($cls, $cls_level, _) AND user_clearance($user, $user_level) AND $user_level >= $cls_level
Supported operators: >, >=, <, <=, ==, is, !=
Rules can span multiple lines for readability:
can_deploy($user, $env) IF
user($user) AND has_role($user, $role) AND deploy_requires_level($env, $min) AND deploy_role_level($role, $level) AND $level >= $min AND user_has_permission($user, deploy_code)
Queries can combine multiple predicates:
? can_access_resource($who, $res) AND resource($res, _, _, _, _, secret)
This returns solutions where both conditions are satisfied simultaneously.
Rule bodies can express alternatives with OR. The parser expands each alternative into its own Horn clause at load time — the solver only ever sees pure Horn clauses:
# A user can deploy when they are an admin, OR a dev on an approved env
can_deploy($u, $env) IF is_admin($u) OR (has_role($u, dev) AND env_approved($u, $env))
AND binds tighter than OR; parenthesized groups expand distributively. NOT applies to single goals only. A # RULE: is carried by every expanded branch, so proofs stay auditable against the source rule.
The external inference gives several advantages:
In the current implementation Euclid-MCP uses Prolog. Prolog is a 50-year-old battle-tested logic engine. Using it as a "deduction coprocessor" lets small LLMs perform complex multi-step reasoning without needing larger, more expensive models. The intermediate language strips away Prolog's syntax quirks while keeping its logical core.
A specific benchmark demonstrate the difference: with 1 000+ facts, LLMs alone score 2/5 while Euclid-MCP scores 5/5 — and runs 7× faster while outputting 14× fewer tokens.
Euclid-MCP exposes 8 tools, each with a specific purpose:
| Tool | Purpose |
|---|---|
reason | Main deduction — get solutions + proof trees |
explain | Readable, natural-language reasoning steps |
diagnose | Understand why a query succeeds or fails |
what_if | Test modifications before applying them |
check_kb | Validate KB consistency before reasoning |
register_kb | Register a named KB under a kb_id |
unregister_kb | Remove a named KB from the registry |
list_kbs | List registered named KBs (metadata) |
reasonMain tool for verifiable deterministic reasoning.
| Parameter | Type | Default | Description |
|---|---|---|---|
knowledge | string? | — | Facts & rules in text or YAML format |
kb_id | string? | — | Reference a KB registered via register_kb |
delta_knowledge | string? | — | Session-specific facts appended to the kb_id base |
query | string? | — | Override query (optional) |
max_solutions | int | 5 | Max solutions to return |
max_depth | int | 30 | Max proof tree depth |
Returns ReasonResult with solutions[] — each containing variable bindings and a proof tree.
explainDeterministic proof-tree → natural-language reasoning steps. No LLM involved: it walks the proof tree of each solution and renders every step in plain language, citing the rule ID (# RULE: ) when a rule has one. Use it to turn a proof into an auditable, human-readable explanation.
| Parameter | Type | Default | Description |
|---|---|---|---|
knowledge | string? | — | Facts & rules in text or YAML format |
kb_id | string? | — | Reference a KB registered via register_kb |
delta_knowledge | string? | — | Session-specific facts appended to the kb_id base |
query | string? | — | Override query (optional) |
max_solutions | int | 5 | Max solutions to return |
max_depth | int | 30 | Max proof tree depth |
Returns ExplanationResult with explanations[] — each containing variable bindings, an ordered list of natural-language steps, and language-independent structured_steps (typed kind/goal/rule_id/body, ready for localized rendering in a UI).
diagnoseQuery analysis — understand why a query succeeds or fails.
| Parameter | Type | Default | Description |
|---|---|---|---|
knowledge | string? | — | Facts & rules in text or YAML format |
kb_id | string? | — | Reference a KB registered via register_kb |
delta_knowledge | string? | — | Session-specific facts appended to the kb_id base |
query | string | — | Query to diagnose |
mode | string | why | One of: why, why_not, what_needs |
max_solutions | int | 5 | Max solutions to return |
max_depth | int | 30 | Max proof tree depth |
Modes:
why — explain why a query holds (or that it doesn't)why_not — explain why a query fails (missing facts/rules)what_needs — suggest what would make a false query trueReturns DiagnosisResult with holds, findings[], conclusion, and optionally proof.
what_ifScenario analysis — apply modifications to a knowledge base and compare results.
| Parameter | Type | Default | Description |
|---|---|---|---|
base_knowledge | string? | — | Base facts & rules |
kb_id | string? | — | Reference a KB registered via register_kb |
delta_knowledge | string? | — | Session-specific facts appended to the kb_id base |
modifications | string | — | + fact(...) to add, - fact(...) to remove |
query | string | — | Query to evaluate |
max_solutions | int | 5 | Max solutions to return |
max_depth | int | 30 | Max proof tree depth |
Returns WhatIfResult with before_count, after_count, delta, solutions_before, solutions_after, conclusion.
check_kbKnowledge base validator — check for consistency before running deduction.
| Parameter | Type | Default | Description |
|---|---|---|---|
knowledge | string? | — | Facts & rules in text or YAML format |
kb_id | string? | — | Reference a KB registered via register_kb |
| delta_knowledge | string? | — | Session-specific facts appended to the `
Only the beginning is shown; read the rest in the repo