1. Conduid
  2. AI
  3. Logic
MCP server · AI

Logic

Fully functional AI Logic Calculator utilizing Prover9/Mace4 via Python based Model Context Protocol (MCP-Server)- tool for Windows, Linux, Claude App etc

55Fair

Scored 20 hours ago · breakdown

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

From source
git clone https://github.com/angrysky56/mcp-logic

Tools (11)

abductive_explainFind the VFE-minimizing explanation for an observation
ParameterTypeDescription
backgroundarrayOptional background theory (domain rules) used to decide whether a candidate entails the observation.
candidates *arrayCandidate explanation formulas to rank.
max_complexityintegerMaximum candidate complexity (default 20).
observation *stringThe 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.
ParameterTypeDescription
contextstringOptional additional context: background knowledge, constraints, domain-specific definitions, or a previous solver result you want debugged.
question *stringYour 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
ParameterTypeDescription
formula *stringThe 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'}.
ParameterTypeDescription
constraints *arraySMT-LIB assertions to satisfy together
functionsobjectOptional uninterpreted function decls
timeout_msintegerSolver timeout in ms (default 10000)
variablesobjectVariable name -> sort (Int, Real, Bool)
check_well_formedValidate formula syntax with detailed errors
ParameterTypeDescription
statements *arrayLogical statements to check
find_counterexampleFind counterexamples showing statements don't follow
ParameterTypeDescription
conclusion *stringThe statement to falsify.
domain_sizeintegerExact domain size to search. Omit to scan sizes automatically and enable complete fragment search when a decidable fragment is recognized.
premises *arrayAssumptions held true in the search.
verbosebooleanInclude raw Mace4 output. Default false.
find_modelFind finite models satisfying premises
ParameterTypeDescription
domain_sizeintegerExact domain size to search. Omit to scan sizes automatically and enable complete fragment search when a decidable fragment is recognized.
premises *arrayFormulas that must all hold in the model.
verbosebooleanInclude raw Mace4 output. Default false.
get_category_axiomsGet axioms for category/functor/group/monoid
ParameterTypeDescription
concept *stringWhich concept's axioms to retrieve
functor_namestringFor functor axioms: name of the functor (default: F)
proveProve statements using Prover9
ParameterTypeDescription
conclusion *stringThe single statement to prove.
premises *arrayAssumptions, each a well-formed formula string. May be an empty list to prove a logical truth.
verbosebooleanIf 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'}.
ParameterTypeDescription
conclusion *stringSMT-LIB assertion to prove
functionsobjectOptional uninterpreted functions, name -> [arg sorts..., result sort], e.g. {'succ': ['Int', 'Int']}
premises *arraySMT-LIB assertions taken as given
timeout_msintegerSolver timeout in ms (default 10000)
variablesobjectVariable name -> sort (Int, Real or Bool), e.g. {'x': 'Int', 'y': 'Real'}
verify_commutativityGenerate FOL for categorical diagram commutativity
ParameterTypeDescription
object_end *string
object_start *string
path_a *arrayList of morphism names in first path
path_b *arrayList of morphism names in second path
with_category_axiomsboolean

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
Questions

About Logic

How do I install Logic?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Logic safe to use with an AI agent?

Its trust score is 55 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 15 source files found that it serves MCP over stdio, starts other programs (2 calls) and writes or deletes files (3 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Logic still maintained?

Yes — the last commit was 3 months ago. The repository has 47 stars and 12 forks and 1 open issues.

What tools does Logic provide?

Conduid read 11 tools from the source: abductive_explain, ask_logic_advisor, check_contingency, check_satisfiable, check_well_formed, find_counterexample, find_model, get_category_axioms and 3 more. 11 of them publish their parameters, listed under Tools above.

What license is Logic released under?

The repository declares the MIT license.