Logic Reasoning Engine

v1.0.0Data Science & MLstable

Enables first-order logic reasoning including theorem proving, model finding, counterexample detection, and category theory diagram verification using pure TypeScript with no external dependencies.

aiclaude-3-5-sonnetllmlogicmcp-server
Share:
43
Stars
0
Downloads
0
Weekly
0/5

What is Logic Reasoning Engine?

Logic Reasoning Engine is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables first-order logic reasoning including theorem proving, model finding, counterexample detection, and category theory diagram verification using pure typescript with no external dependencies.

Enables first-order logic reasoning including theorem proving, model finding, counterexample detection, and category theory diagram verification using pure TypeScript with no external dependencies.

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables first-order logic reasoning including theorem provin

Use Cases

First-order logic reasoning
Theorem proving
Category theory verification
angrysky56

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 1, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-logic

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Logic Reasoning Engine

MCP-Logic is a formal reasoning MCP server that gives AI assistants access to Prover9/Mace4 theorem provers and first-order logic verification tools, implemented in Python with no additional Python dependencies beyond the bundled setup. It exposes eight tools covering theorem proving, model finding, counterexample detection, propositional contingency checking, category theory axiom retrieval, and abductive hypothesis ranking — enabling Claude to rigorously verify logical arguments rather than just reason heuristically. Researchers, mathematicians, and developers working with formal specifications can use this server to let Claude prove or disprove claims with mathematical certainty.

Prerequisites

  • Python 3.10 or higher and the uv package manager installed
  • Git installed to clone the repository
  • A Linux, macOS, or Windows system (setup scripts provided for all three)
  • An MCP-compatible client such as Claude Desktop
1

Clone the repository

Clone the MCP-Logic repository which includes the Prover9/Mace4 binaries and setup scripts.

git clone https://github.com/angrysky56/mcp-logic
cd mcp-logic
2

Run the platform setup script

Run the appropriate setup script for your operating system. The script installs Python dependencies and configures the Prover9 binaries.

# Linux/macOS:
./linux-setup-script.sh

# Windows:
windows-setup-mcp-logic.bat
3

Note the generated config path

After setup completes, the script generates a claude-app-config.json file in the project directory containing the correct absolute paths for the uv command and the Prover9 binary. Use this as the basis for your MCP client config.

4

Add the server to your MCP client configuration

Copy the mcpServers block from the generated claude-app-config.json into your claude_desktop_config.json, replacing the placeholder paths with the absolute paths on your system.

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

Restart Claude Desktop and verify

Restart Claude Desktop. You should see 8 logic tools available: prove, check-well-formed, find_model, find_counterexample, verify_commutativity, get_category_axioms, check_contingency, and abductive_explain.

Logic Reasoning Engine Examples

Client configuration

Example claude_desktop_config.json entry for MCP-Logic using uv to run the Python module with the Prover9 binary path.

{
  "mcpServers": {
    "mcp-logic": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/yourname/mcp-logic",
        "run",
        "python",
        "-m",
        "mcp_logic",
        "--prover-path",
        "/Users/yourname/mcp-logic/ladr/bin"
      ]
    }
  }
}

Prompts to try

Example prompts for formal logic reasoning with the MCP-Logic server.

- "Prove that Socrates is mortal given: all men are mortal, Socrates is a man"
- "Find a counterexample to the claim that if P(a) holds then P(b) must also hold"
- "Check whether the formula (p -> q) | (q -> p) is a tautology, contingent, or contradiction"
- "Find a finite model satisfying the premises: all x (A(x) -> B(x)) and A(c)"
- "Get the category theory axioms for functors and verify that composition is associative"

Troubleshooting Logic Reasoning Engine

Setup script fails with 'Permission denied' on linux-setup-script.sh

Make the setup script executable first: chmod +x linux-setup-script.sh — then run it again with ./linux-setup-script.sh.

prove tool returns 'prover9 not found' or times out immediately

Verify that the --prover-path argument in your MCP config points to the ladr/bin directory inside the cloned repository (not just the repo root). Check that the prover9 binary exists at that path and is executable: ls -la /path/to/mcp-logic/ladr/bin/prover9.

uv command not found when Claude Desktop starts the server

Install uv with 'curl -LsSf https://astral.sh/uv/install.sh | sh' and ensure it is on your PATH. On macOS you can also use 'brew install uv'. Use the full absolute path to the uv binary in your MCP config if PATH issues persist.

Frequently Asked Questions about Logic Reasoning Engine

What is Logic Reasoning Engine?

Logic Reasoning Engine is a Model Context Protocol (MCP) server that enables first-order logic reasoning including theorem proving, model finding, counterexample detection, and category theory diagram verification using pure typescript with no external dependencies. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Logic Reasoning Engine?

Follow the installation instructions on the Logic Reasoning Engine GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Logic Reasoning Engine?

Logic Reasoning Engine works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Logic Reasoning Engine free to use?

Yes, Logic Reasoning Engine is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-logic": { "command": "npx", "args": ["-y", "mcp-logic"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Logic Reasoning Engine?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides