mlsanityData to 14 Oct 2026

Euclid-MCP: A Model Context Protocol Server for Deterministic Logical Reasoning via Prolog

arXiv 2607.21412 ↗First posted 23 Jul 2026cs.AI cs.CL cs.SEcited by 0

On the map: LLM reasoning → Reasoning benchmarks and evaluation

also in 1 more
Abstract (arXiv)

Large Language Models (LLMs) excel at natural language understanding and generation but remain unreliable for multi-step logical reasoning, especially in safety-critical or compliance-sensitive domains. Recent neuro-symbolic approaches address this gap by coupling neural models with external symbolic engines, yet most integrations are bespoke and lack a standardized interface for tool-augmented agents. This paper presents Euclid-MCP, an open-source MCP server that provides deterministic logical reasoning via SWI-Prolog. Euclid-MCP introduces Euclid-IR, an engine-agnostic intermediate representation for Horn-clause logic that is human-readable, easy for LLMs to generate, and straightforward to compile into Prolog or alternative backends. The server exposes a compact tool interface that supports a translate-run-inspect-repair loop, enabling LLM clients to delegate inference while retaining full access to proof traces and derivation logs. We evaluate Euclid-MCP on a realistic IT security and compliance use case. Results show that while LLMs alone are sufficient on small knowledge bases, they hallucinate systematically on larger problems, whereas Euclid-MCP delivers exact answers with lower latency and more compact outputs. We argue that semantic RAG is fundamentally unsuited for rule enforcement, and that Euclid-MCP can serve as a stable, shared reasoning substrate for both RAG-based assistants and agentic systems.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 6 of its 7 references that are in the map. First posted on arXiv 23 Jul 2026.

Builds on

6 of 7 references.

Closest ancestors · 2

Same direction, newest first

  1. 2026PrologMCP: A Standardized Prolog Tool Interface for LLM Agents12 Jun
  2. 2023Neurosymbolic AI for Reasoning over Knowledge Graphs: A Survey14 Feb

Other references · 4

  1. 2025Hallucination Mitigation using Agentic AI Natural Language-Based Frameworkscited by 12
  2. 2026Neuro-Symbolic Compliance: Integrating LLMs and SMT Solvers for Automated Financial Legal Analysiscited by 3
  3. 2025Logical Lease Litigation: Prolog and LLMs for Rental Law Compliance in New Yorkcited by 2
  4. 2026Hallucination Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Cachingcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification
  2. 2026Logic-Parametric Neuro-Symbolic NLI: Controlling Logical Formalisms for Verifiable LLM Reasoning
  3. 2025Current Practices for Building LLM-Powered Reasoning Tools Are Ad Hoc -- and We Can Do Better
  4. 2024Leveraging LLMs for Hypothetical Deduction in Logical Inference: A Neuro-Symbolic Approach
  5. 2025Large Language Models Meet Symbolic Provers for Logical Reasoning Evaluation
  6. 2022Evaluating Step-by-Step Reasoning through Symbolic Verification
  7. 2026LogicGraph : Benchmarking Multi-Path Logical Reasoning via Neuro-Symbolic Generation and Verification
  8. 2026Structured Abductive-Deductive-Inductive Reasoning for LLMs via Algebraic Invariants