mcp-z3-prover MCP Server
MCP server exposing Z3 solver API
mcp-z3-prover scores 49 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 9 tools. Filed under Uncategorized. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
49 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
64/100 for listing completeness. Lost points: short README, 7 of 9 tools barely described, short summary.
How quality is graded
Where the 49 comes from
22 + 5 + 1 + 10 + 4 + 7 = 49. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "daedalus-mcp-z3-prover": { "command": "uvx", "args": [ "mcp-z3-prover" ] } }}
Environment variables
This server does not declare environment variables.
Tools9Tool docs quality grade D
All capabilitiesadd_constrainttoolAdd a constraint to the solver
create_bool_vartoolCreate a Boolean variable
Create an integer constant
create_int_vartoolCreate an Integer variable
Create a real constant
create_real_vartoolCreate a Real variable
get_model_valuetoolGet value of a variable from the model
list_variablestoolList all created variables
reset_solvertoolReset the solver state
About
mcp-z3-prover
MCP server exposing Z3 solver API
Install
pip install mcp-z3-prover
Usage
from mcp_z3_prover import mcp
# Run the server
mcp.run()
Or from command line:
mcp-z3-prover
MCP Tools
The server exposes the following tools:
- create_bool_var - Create a Boolean variable
- create_int_var - Create an Integer variable
- create_real_var - Create a Real variable
- create_int_constant - Create an integer constant
- create_real_constant - Create a real constant
- add_constraint - Add a constraint to the solver
- solve - Solve the current problem
- get_model_value - Get value of a variable from the model
- optimize - Solve with optimization objective
- reset_solver - Reset the solver state
- list_variables - List all created variables
Example
# Create variables
create_int_var("x")
create_int_var("y")
# Add constraints
add_constraint("int:x + int:y == 10")
add_constraint("int:x > 0")
add_constraint("int:y > 0")
# Solve
result = solve()
# Returns: {"status": "sat", "model": {"x": "5", "y": "5"}}
# Get specific values
x_val = get_model_value("int:x")
Integer Factorization Example
# Factor n = 4295229443 where n = p * q with q <= sqrt(n)
create_int_var("p")
create_int_var("q")
# Add constraints
add_constraint("int:p * int:q == 4295229443")
add_constraint("4295229443 > int:p")
add_constraint("4295229443 > int:q")
add_constraint("int:q <= 65537") # sqrt(4295229443) ≈ 65537
add_constraint("int:q > 1")
add_constraint("int:p > 1")
add_constraint("int:q % 2 != 0") # q is odd
add_constraint("int:p % 2 != 0") # p is odd
# Solve
result = solve()
# Returns: {"status": "sat", "model": {"p": "65539", "q": "65537"}}
# Verification: 65537 * 65539 = 4295229443
Development
git clone https://github.com/daedalus/mcp-z3-prover.git
cd mcp-z3-prover
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
MCP Registration
mcp-name: io.github.daedalus/mcp-z3-prover
Frequently asked questions
What is mcp-z3-prover MCP Server?
MCP server exposing Z3 solver API
How do I install mcp-z3-prover MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-z3-prover MCP Server runs locally from the PyPI package mcp-z3-prover with the command uvx mcp-z3-prover.
Is mcp-z3-prover MCP Server free and open source?
Yes. mcp-z3-prover MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcp-z3-prover MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-z3-prover MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-z3-prover MCP Server provide?
mcp-z3-prover MCP Server provides 9 tools, including add_constraint, create_bool_var, create_int_constant, and create_int_var. See the full tool list for descriptions and parameters.
How is mcp-z3-prover MCP Server's trust score calculated?
mcp-z3-prover MCP Server scores 49 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.