プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Euclid-MCP

作者:meobバージョン 0.4.5i★ –iパソコンで動く
レジストリ名io.github.meob/euclid-mcp

インストール

概要

作者による説明(英語の原文)

Deterministic logical reasoning engine — facts in Euclid IR, solutions with proof trees

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "euclid": {
      "command": "uvx",
      "args": [
        "euclid-mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add euclid -- uvx euclid-mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "euclid": {
      "command": "uvx",
      "args": [
        "euclid-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "euclid": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "euclid-mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント meob で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの5653件のうち0%よりスターが多い
  • このカテゴリのほかの5653件のうち33%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5653件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Euclid-MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.4.5)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT昨日更新
インストール

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

パソコンで動く★ 48,148MIT21 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT2 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Euclid-MCP

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.

How it works

┌──────────────┐     ┌──────────────────┐     ┌──────────────┐     ┌─────────────────┐

│ LLM/Agent │────▶│ Euclid-MCP │────▶│ Translator │────▶│ SWI-Prolog │ │ (MCP Client)│◀────│ (MCPServer) │◀────│ + Meta-IP │◀────│ (persistent) │ └──────────────┘ └──────────────────┘ └──────────────┘ └─────────────────┘

  1. Receive facts, rules, and a query in a simple intermediate language
  2. Translate into Prolog with a meta-interpreter for proof tree capture
  3. Execute via a persistent SWI-Prolog engine process (JSON-lines protocol on stdin/stdout; the workspace is reloaded per call, no process spawn overhead)
  4. Return solutions + proof trees as structured JSON

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.

Knowledge Base

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.

Intermediate Language

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:
  • parent(tom, bob)
  • parent(bob, ann)
  • parent(tom, liz)

rules:

  • ancestor($x, $y) IF parent($x, $y)
  • ancestor($x, $y) IF parent($x, $z) AND ancestor($z, $y)

query: ancestor(tom, $who)

Full language reference: docs/EUCLID_IR.md

Euclid-IR Syntax Reference
ElementSyntaxExample
Factspredicate(args)parent(tom, bob)
Variables$name (lowercase)$who, $x, $count
ImplicationIFmortal($x) IF human($x)
ConjunctionANDp($x) AND q($x)
DisjunctionORcan($u) IF is_admin($u) OR has_role($u, auditor)
Grouping(...)(is_admin($u) OR support($u)) AND active($u)
NegationNOTNOT active($user)
Boolean literalstrue / false in rule bodiesmerchant($m) IF false
Query? predicate? ancestor(tom, $who)
String literals"..." or '...'"alice@example.com"
Multi-line rulesBody on next linerule($x) IF\n body($x)
Arithmetic Comparisons

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: more than 15 direct permissions

excessive_permissions($user, $count) IF user($user) AND permission_count($user, $count) AND $count > 15

Clearance check: user clearance >= resource classification

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, !=

Multi-line Rules

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)

Conjunctions in Queries

Queries can combine multiple predicates:

? can_access_resource($who, $res) AND resource($res, _, _, _, _, secret)

This returns solutions where both conditions are satisfied simultaneously.

Disjunction (OR)

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.

Why External Inference?

The external inference gives several advantages:

  • deterministic
  • explainable
  • verifiable
  • inexpensive
  • replaceable backend

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.

Tools

Euclid-MCP exposes 8 tools, each with a specific purpose:

ToolPurpose
reasonMain deduction — get solutions + proof trees
explainReadable, natural-language reasoning steps
diagnoseUnderstand why a query succeeds or fails
what_ifTest modifications before applying them
check_kbValidate KB consistency before reasoning
register_kbRegister a named KB under a kb_id
unregister_kbRemove a named KB from the registry
list_kbsList registered named KBs (metadata)
reason

Main tool for verifiable deterministic reasoning.

ParameterTypeDefaultDescription
knowledgestring?—Facts & rules in text or YAML format
kb_idstring?—Reference a KB registered via register_kb
delta_knowledgestring?—Session-specific facts appended to the kb_id base
querystring?—Override query (optional)
max_solutionsint5Max solutions to return
max_depthint30Max proof tree depth

Returns ReasonResult with solutions[] — each containing variable bindings and a proof tree.

explain

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

ParameterTypeDefaultDescription
knowledgestring?—Facts & rules in text or YAML format
kb_idstring?—Reference a KB registered via register_kb
delta_knowledgestring?—Session-specific facts appended to the kb_id base
querystring?—Override query (optional)
max_solutionsint5Max solutions to return
max_depthint30Max 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).

diagnose

Query analysis — understand why a query succeeds or fails.

ParameterTypeDefaultDescription
knowledgestring?—Facts & rules in text or YAML format
kb_idstring?—Reference a KB registered via register_kb
delta_knowledgestring?—Session-specific facts appended to the kb_id base
querystring—Query to diagnose
modestringwhyOne of: why, why_not, what_needs
max_solutionsint5Max solutions to return
max_depthint30Max 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 true

Returns DiagnosisResult with holds, findings[], conclusion, and optionally proof.

what_if

Scenario analysis — apply modifications to a knowledge base and compare results.

ParameterTypeDefaultDescription
base_knowledgestring?—Base facts & rules
kb_idstring?—Reference a KB registered via register_kb
delta_knowledgestring?—Session-specific facts appended to the kb_id base
modificationsstring—+ fact(...) to add, - fact(...) to remove
querystring—Query to evaluate
max_solutionsint5Max solutions to return
max_depthint30Max proof tree depth

Returns WhatIfResult with before_count, after_count, delta, solutions_before, solutions_after, conclusion.

check_kb

Knowledge base validator — check for consistency before running deduction.

ParameterTypeDefaultDescription
knowledgestring?—Facts & rules in text or YAML format
kb_idstring?—Reference a KB registered via register_kb

| delta_knowledge | string? | — | Session-specific facts appended to the `

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く