About Logic
Logic is an MCP server published by angrysky56 in the AI category: fully functional AI Logic Calculator utilizing Prover9/Mace4 via Python based Model Context Protocol (MCP-Server)- tool for Windows, Linux, Claude App etc. Conduid read 11 tools from its source: abductive_explain, ask_logic_advisor, check_contingency, check_satisfiable, check_well_formed, find_counterexample and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 47 stars and 12 forks, is licensed MIT, and its last commit was on 15 Aug 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include claude-skills, fastapi, pmo and project-management.
Install
git clone https://github.com/angrysky56/mcp-logicTools (11)
abductive_explainFind the VFE-minimizing explanation for an observation| Parameter | Type | Description |
|---|---|---|
| background | array | Optional background theory (domain rules) used to decide whether a candidate entails the observation. |
| candidates * | array | Candidate explanation formulas to rank. |
| max_complexity | integer | Maximum candidate complexity (default 20). |
| observation * | string | The formula that was observed (propositional or first-order). |
ask_logic_advisorAsk the onboard logic reasoning LLM to solve a logic problem END-TO-END. You pose a natural-language question and the advisor automatically: (1) formalizes it into Prover9/Mace4 syntax, (2) runs the appropriate solver (prove, find_model, find_counterexample, etc.), and (3) interprets the result in plain English. Use this when you want a complete solution without manually constructing FOL formulas. Examples: 'Is it true that if all humans are mortal and Socrates is human, then Socrates is mortal?', 'Find a model where there exist at least two distinct elements and every element has a successor', 'Is the formula (P -> Q) <-> (-Q -> -P) a tautology?'. For direct solver access with your own formulas, use prove/find_model/find_counterexample instead.| Parameter | Type | Description |
|---|---|---|
| context | string | Optional additional context: background knowledge, constraints, domain-specific definitions, or a previous solver result you want debugged. |
| question * | string | Your logic question in natural language. Be as specific as possible about what you want to prove, check, or find. |
check_contingencyCheck truth-functional contingency via HCC prover| Parameter | Type | Description |
|---|---|---|
| formula * | string | The propositional formula string to check |
check_satisfiableAsk Z3 whether a set of ARITHMETIC constraints can all be true at once, and get a concrete satisfying assignment if so. Use for consistency checks, puzzles and scheduling-style problems over numbers. Same SMT-LIB prefix notation as prove_arithmetic. Returns 'satisfiable' with a model, 'unsatisfiable', or 'unknown'. Example: constraints=['(> x 0)', '(< x 10)', '(= (mod x 3) 0)'], variables={'x': 'Int'}.| Parameter | Type | Description |
|---|---|---|
| constraints * | array | SMT-LIB assertions to satisfy together |
| functions | object | Optional uninterpreted function decls |
| timeout_ms | integer | Solver timeout in ms (default 10000) |
| variables | object | Variable name -> sort (Int, Real, Bool) |
check_well_formedValidate formula syntax with detailed errors| Parameter | Type | Description |
|---|---|---|
| statements * | array | Logical statements to check |
find_counterexampleFind counterexamples showing statements don't follow| Parameter | Type | Description |
|---|---|---|
| conclusion * | string | The statement to falsify. |
| domain_size | integer | Exact domain size to search. Omit to scan sizes automatically and enable complete fragment search when a decidable fragment is recognized. |
| premises * | array | Assumptions held true in the search. |
| verbose | boolean | Include raw Mace4 output. Default false. |
find_modelFind finite models satisfying premises| Parameter | Type | Description |
|---|---|---|
| domain_size | integer | Exact domain size to search. Omit to scan sizes automatically and enable complete fragment search when a decidable fragment is recognized. |
| premises * | array | Formulas that must all hold in the model. |
| verbose | boolean | Include raw Mace4 output. Default false. |
get_category_axiomsGet axioms for category/functor/group/monoid| Parameter | Type | Description |
|---|---|---|
| concept * | string | Which concept's axioms to retrieve |
| functor_name | string | For functor axioms: name of the functor (default: F) |
proveProve statements using Prover9| Parameter | Type | Description |
|---|---|---|
| conclusion * | string | The single statement to prove. |
| premises * | array | Assumptions, each a well-formed formula string. May be an empty list to prove a logical truth. |
| verbose | boolean | If true, include the full raw Prover9 output. Default false (concise proof + stats only). |
prove_arithmeticProve or refute a claim involving ARITHMETIC, using the Z3 SMT solver. Use this instead of 'prove' whenever numbers are involved — Prover9 has no theory of arithmetic and cannot decide that 2+2=4 or that x+1 > x. Constraints are SMT-LIB prefix notation: (> x 0), (= y (+ x 1)), (=> (> x 0) (>= x 1)). Declare every variable in 'variables' with sort Int, Real or Bool. Returns 'proved', or 'counterexample' with concrete values that break the claim, or 'unknown' if Z3 could not decide. Example: premises=['(> x 0)'], conclusion='(> (* x 2) x)', variables={'x': 'Int'}.| Parameter | Type | Description |
|---|---|---|
| conclusion * | string | SMT-LIB assertion to prove |
| functions | object | Optional uninterpreted functions, name -> [arg sorts..., result sort], e.g. {'succ': ['Int', 'Int']} |
| premises * | array | SMT-LIB assertions taken as given |
| timeout_ms | integer | Solver timeout in ms (default 10000) |
| variables | object | Variable name -> sort (Int, Real or Bool), e.g. {'x': 'Int', 'y': 'Real'} |
verify_commutativityGenerate FOL for categorical diagram commutativity| Parameter | Type | Description |
|---|---|---|
| object_end * | string | |
| object_start * | string | |
| path_a * | array | List of morphism names in first path |
| path_b * | array | List of morphism names in second path |
| with_category_axioms | boolean |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 15 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/mcp_logic/server.py:19
- Starts other programs
- 2 callssrc/mcp_logic/mace4_wrapper.py:152, src/mcp_logic/server.py:258
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 3 callssrc/mcp_logic/mace4_wrapper.py:283, src/mcp_logic/server.py:340, src/mcp_logic/syntax_contract.py:87
- Lockfile
- uv.lock
Pattern matches on the source text of 15 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.9K words, fetched a month ago. The original in the repository is authoritative.
Read full README