
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server offering automated first-order logic reasoning tools built on Prover9 and Mace4, with an optional onboard reasoning LLM that solves logic problems from plain English.
MCP-Logic is cataloged as an MCP server attributed to angrysky56. An MCP server offering automated first-order logic reasoning tools built on Prover9 and Mace4, with an optional onboard reasoning LLM that solves logic problems from plain English. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP-Logic are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. The setup script detects CUDA or Metal acceleration but falls back to CPU, which works on any platform at slower speed.
The advisor feature is restricted to non-commercial use by the model license, while the core server tools remain MIT-licensed and usable commercially without the advisor.
It formalizes the question into a solver call, executes the actual solver, then interprets the solver output into a plain-English answer.
README.md · b11999d12a18 · 采集于 2026-11-13 07:10:19 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An MCP server for automated first-order logic reasoning using Prover9, Mace4, and an onboard reasoning LLM.
Linux/macOS:
git clone https://github.com/angrysky56/mcp-logic
cd mcp-logic
./linux-setup-script.sh
Windows:
git clone https://github.com/angrysky56/mcp-logic
cd mcp-logic
windows-setup-mcp-logic.bat
The setup script automatically:
The onboard logic advisor uses a local 3B-parameter LLM (TwIL-LM3 Q8) to solve logic problems end-to-end. Run the setup script to install it:
Linux/macOS:
./setup-advisor.sh
Windows:
setup-advisor.bat
The script automatically:
llama-cpp-python with the right acceleration backend~/.cache/mcp-logic/models/No venv activation needed — the setup scripts use
uvwhich manages the virtual environment automatically. Alluv runanduv pip install --directorycommands target the project's.venvwithout you having to activate it first.
If you prefer to install manually instead of using the setup script:
Linux (NVIDIA GPU):
CMAKE_ARGS="-DGGML_CUDA=on" uv pip install --directory . "llama-cpp-python>=0.3.0"
uv pip install --directory . "huggingface-hub>=0.24.0"
macOS (Apple Silicon):
CMAKE_ARGS="-DGGML_METAL=on" uv pip install --directory . "llama-cpp-python>=0.3.0"
uv pip install --directory . "huggingface-hub>=0.24.0"
Windows (NVIDIA GPU, PowerShell):
$env:CMAKE_ARGS="-DGGML_CUDA=on"
uv pip install --directory . "llama-cpp-python>=0.3.0"
uv pip install --directory . "huggingface-hub>=0.24.0"
CPU-only (any platform):
uv pip install --directory . "llama-cpp-python>=0.3.0"
uv pip install --directory . "huggingface-hub>=0.24.0"
The model auto-downloads on first use, or pre-download manually:
uv run --directory . python -c "
from huggingface_hub import hf_hub_download
hf_hub_download('webAI-Official/TwIL-LM3', 'TwIL-LM3-Q8_0.gguf',
revision='5d90f3a3251e142fc5cc6b42a62b175fdb0d4ccd',
local_dir='$HOME/.cache/mcp-logic/models',
local_dir_use_symlinks=False)
"
| Platform | GPU Acceleration | Notes |
|---|---|---|
| Linux (x86_64) | ✅ CUDA (NVIDIA) | Requires CUDA Toolkit + nvidia-smi |
| macOS (Apple Silicon) | ✅ Metal | Native ARM64 Python recommended |
| macOS (Intel) | ⚠️ Metal (limited) | Works but slower than Apple Silicon |
| Windows (x86_64) | ✅ CUDA (NVIDIA) | Requires CUDA Toolkit + Visual Studio Build Tools |
| Any platform | ✅ CPU | Always works, slower (~10-20s per query for 3B model) |
Add to your Claude Desktop MCP config (auto-generated at claude-app-config.json):
{
"mcpServers": {
"mcp-logic": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-logic",
"run",
"mcp_logic",
"--prover-path",
"/absolute/path/to/mcp-logic/ladr/bin"
]
}
}
}
Important: Replace /absolute/path/to/mcp-logic with your actual repository path.
Add "--no-advisor" for deterministic solver-only testing or when the
optional advisor dependencies are not installed. The model is lazy-loaded, so
normal prove and find_model calls do not consume GPU memory.
Register the stdio server globally with absolute paths:
codex mcp add mcp-logic -- \
/absolute/path/to/mcp-logic/.venv/bin/mcp_logic \
--prover-path /absolute/path/to/mcp-logic/ladr/bin
Confirm the saved command with codex mcp get mcp-logic. Restart Codex after
adding or changing the server so its tools are loaded into the next session.
| Tool | Purpose |
|---|---|
| ask_logic_advisor 🤖 | Solve logic problems in plain English (end-to-end) |
| 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 |
Just ask a question in natural language — the advisor formalizes it, runs the solver, and explains the result:
Use ask_logic_advisor with:
question: "Is it true that if all humans are mortal and Socrates is human,
then Socrates is mortal?"
Result: The advisor translates to FOL, proves the theorem with Prover9, and returns:
"Yes, Socrates is mortal. The proof follows from the universal premise that all humans are mortal, combined with the fact that Socrates is human."
The response also includes the formalization it used and the raw solver output for transparency.
Use the prove tool with:
premises: ["all x (man(x) -> mortal(x))", "man(socrates)"]
conclusion: "mortal(socrates)"
Result: ✓ THEOREM PROVED
Use the check_contingency tool with:
formula: "(p -> q) | (q -> p)"
Result: Identifies that the formula is a non-contingent tautology, returning the proof trace.
Use the find_counterexample tool with:
premises: ["P(a)"]
conclusion: "P(b)"
Result: Model found where P(a) is true but P(b) is false, proving the conclusion doesn't follow.
Use the verify_commutativity tool with:
path_a: ["f", "g"]
path_b: ["h"]
object_start: "A"
object_end: "C"
Result: FOL premises and conclusion to prove that f∘g = h.
Instead of Claude Desktop, run the server directly:
Linux/macOS:
./run_mcp_logic.sh
Windows:
run_mcp_logic.bat
mcp-logic/
├── src/mcp_logic/
│ ├── server.py # Main MCP server (9 tools)
│ ├── logic_advisor.py # Onboard TwIL-LM3 agentic solver
│ ├── mace4_wrapper.py # Mace4 model finder
│ ├── syntax_validator.py # Formula syntax validation
│ ├── categorical_helpers.py # Category theory utilities
│ ├── hcc_prover.py # Hypersequent Contingency Calculus prover
│ ├── vfe_engine.py # Variational Free Energy abductive engine
│ ├── formula_ast.py # Propositional logic AST and parser
│ └── fol_ast.py # First-order AST, parser, and transformations
├── ladr/ # Auto-installed Prover9/Mace4 binaries
│ └── bin/
│ ├── prover9
│ └── mace4
├── tests/ # Unit, solver integration, and MCP stdio tests
├── linux-setup-script.sh # Linux/macOS core setup
├── windows-setup-mcp-logic.bat # Windows core setup
├── setup-advisor.sh # Linux/macOS advisor setup
├── setup-advisor.bat # Windows advisor setup
├── run_mcp_logic.sh # Linux/macOS run script
└── run_mcp_logic.bat # Windows run script
The ask_logic_advisor tool uses a 3-phase agentic pipeline:
Natural Language Question
│
▼
┌─────────────────────┐
│ 1. FORMALIZE │ TwIL-LM3 translates to FOL
│ (LLM call) │ → {"tool":"prove", "premises":[...], ...}
└────────┬────────────┘
▼
┌─────────────────────┐
│ 2. EXECUTE │ Runs actual Prover9/Mace4/HCC
│ (Solver call) │ → {"result":"proved", "proof":...}
└────────┬────────────┘
▼
┌─────────────────────┐
│ 3. INTERPRET │ TwIL-LM3 explains the result
│ (LLM call) │ → Plain English answer
└─────────────────────┘
| Scenario | VRAM | Inference Speed |
|---|---|---|
| NVIDIA GPU (CUDA) | ~3.5 GB | ~1-3s per LLM call |
| Apple Silicon (Metal) | ~3.5 GB | ~2-5s per LLM call |
| CPU-only | 0 (uses RAM) | ~10-20s per LLM call |
Onboard Logic Advisor:
Cognitive Architecture Enhancements:
prove tool automatically routes pure propositional queries to the HCC engine, and first-order queries to Prover9.find_model and find_counterexample now support custom timeouts and structured predicate/function extraction.1..model_bound search. A no_model_found response is
absolute only with a context-licensed PROVED or REFUTED status; a
BOUNDED_NO_MODEL response retains the finite-bound hedge.check_well_formed warns about implicit universal
quantification and unused binders without rejecting legal Prover9 formulas.Enhanced Features:
The test fixtures automatically discover the bundled ladr/bin/prover9 and
ladr/bin/mace4; no LADR_PATH is needed for a normal checkout.
Run the complete suite:
.venv/bin/python -m pytest tests/ -q
Run only the end-to-end MCP stdio test, which starts the server and exercises both Prover9 and Mace4 through MCP tool calls:
.venv/bin/python -m pytest tests/test_mcp_stdio_integration.py -q
Restricted process sandboxes can allow the LADR binaries to start while preventing them from making progress, producing misleading 30/60-second timeouts. Run solver-backed tests outside that sandbox; do not compensate by increasing the solver timeout.
mcp_logic_agent.md - Agent guide (tool reference + workflows)ENHANCEMENTS.md - Quick reference for v0.2.0 featuresDocuments/ - Detailed analysis and examples"Prover9 not found" error:
./linux-setup-script.sh or windows-setup-mcp-logic.batladr/bin/prover9 and ladr/bin/mace4 existLogic advisor not working:
./setup-advisor.sh or setup-advisor.batnvidia-smi (Linux/Windows) or system_profiler SPDisplaysDataType (macOS)./setup-advisor.sh --cpuls ~/.cache/mcp-logic/models/TwIL-LM3-Q8_0.gguf--no-advisor to server args"llama-cpp-python" build fails:
sudo apt-get install build-essential cmakexcode-select --installnvcc is in PATHServer not updating:
Syntax validation warnings:
man(x) not Man(x))MIT (mcp-logic server)
Note: The TwIL-LM3 model used by the logic advisor is licensed under the webAI Non-Commercial License v1.0. This restricts the advisor feature to non-commercial use. The core mcp-logic server (prove, find_model, etc.) remains MIT-licensed and usable commercially without the advisor.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP-Logic from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-logic)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.