
angrysky56/mcp-logic 是从 https://github.com/angrysky56/mcp-logic. 导入的一个 MCP 服务器候选
概览
angrysky56/mcp-logic 是从 https://github.com/angrysky56/mcp-logic. 导入的一个 MCP 服务器候选
概述(AI 翻译)
一个MCP服务器,用于自动一阶逻辑推理,使用Prover9、Mace4和板载推理LLM。
特色
- 定理证明 - 用Prover9证明逻辑命题
- 模型查找 - 用Mace4查找有限模型
- 反例发现 - 说明陈述为何不成立
- 语法验证 - 预验证公式并带有有用的错误信息
- 范畴推理 - 内置范畴论证明支持。
- 命题偶然性 - 纯分析型HCC证明器,用于快速命题检查
- 溯因推理 - 使用变分自由能(VFE)进行秩假设
- ** 🤖 Logic Advisor(新版)** - 内置TwIL-LM3推理LLM,端到端解决逻辑问题:只需用通俗易懂的英语提问
- 自成一体 - 所有依赖自动安装
快速启动
安装
Linux/macOS:
Windows:
设置脚本会自动:
- 下载和构建LADR(Prover9 + Mace4)
- 创建 Python 虚拟环境
- 安装所有依赖
- 生成 Claude Desktop 配置
启用逻辑顾问(可选)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP-Logic
An MCP server for automated first-order logic reasoning using Prover9, Mace4, and an onboard reasoning LLM.
Features
- 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)
- 🤖 Logic Advisor (NEW) - Onboard TwIL-LM3 reasoning LLM that solves logic problems end-to-end: just ask a question in plain English
- Self-Contained - All dependencies install automatically
Quick Start
Installation
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:
- Downloads and builds LADR (Prover9 + Mace4)
- Creates Python virtual environment
- Installs all dependencies
- Generates Claude Desktop config
Enable the Logic Advisor (Optional)
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:
- Detects your GPU — CUDA on NVIDIA (Linux/Windows), Metal on Apple Silicon (macOS), or falls back to CPU
- Compiles
llama-cpp-pythonwith the right acceleration backend - Downloads the model (~3.3 GB, one-time) to
~/.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.
Manual Installation (Advanced)
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"
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"mcp-logic": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-logic",
"run",
"mcp_logic",
"--prover-path",
"/absolute/path/to/mcp-logic/ladr/bin"
]
}
}
}