MCP Logic MCP Server

An MCP server for automated first-order logic reasoning using Prover9 and Mace4.

Local serverstdioPython

What is the MCP Logic MCP Server?

MCP Logic connects MCP Logic to AI assistants that speak the Model Context Protocol. An MCP server for automated first-order logic reasoning using Prover9 and Mace4.

What MCP Logic does

An MCP server for automated first-order logic reasoning using Prover9 and Mace4.

Key capabilities

  • Theorem Proving — - Prove logical statements with Prover9
  • Model Finding — - Find finite models with Mace4
  • Counterexample Finding — - Show why statements don't follow
  • Syntax Validation — - Pre-validate formulas with helpful error messages
  • Categorical Reasoning — - Built-in support for category theory proofs
  • Propositional Contingency — - Purely analytical HCC prover for fast propositional checks
  • Abductive Reasoning — - Rank hypotheses using Variational Free Energy (VFE)
  • Self-Contained — - All dependencies install automatically

Practical notes

  • Maintained by angrysky56, written in Python.

Recorded tools

  • prove — Prove statements using Prover9
  • check-well-formed — Validate formula syntax with detailed errors
  • find_model — Find finite models satisfying premises
  • find_counterexample — Find counterexamples showing statements don't follow
  • verify_commutativity — Generate FOL for categorical diagram commutativity
  • get_category_axioms — Get axioms for category/functor/group/monoid
  • check_contingency — Check truth-functional contingency via HCC prover
  • abductive_explain — Find the VFE-minimizing explanation for an observation

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
proveProve statements using Prover9
check_well_formedValidate formula syntax with detailed errors
find_modelFind finite models satisfying premises
find_counterexampleFind counterexamples showing statements don't follow
verify_commutativityGenerate FOL for categorical diagram commutativity
get_category_axiomsGet axioms for category/functor/group/monoid
check_contingencyCheck truth-functional contingency via HCC prover
abductive_explainFind the VFE-minimizing explanation for an observation

How to install the MCP Logic MCP Server

{
  "mcpServers": {
    "mcp-logic": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/mcp-logic",
        "run",
        "mcp_logic",
        "--prover-path",
        "/absolute/path/to/mcp-logic/ladr/bin"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use MCP Logic to prove.”
  • “Use MCP Logic to check-well-formed.”
  • “Use MCP Logic to find model.”

Frequently asked questions

An MCP server for automated first-order logic reasoning using Prover9 and Mace4. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.