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

A Python MCP server that exposes Z3 theorem prover capabilities for constraint satisfaction and relationship analysis using functional programming abstractions.
Z3 constraint-solving MCP server is cataloged as an MCP server attributed to javergar. A Python MCP server that exposes Z3 theorem prover capabilities for constraint satisfaction and relationship analysis using functional programming abstractions. 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 License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Z3 constraint-solving MCP server 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.
The server provides solve_constraint_problem, analyze_relationships, simple_constraint_solver, and simple_relationship_analyzer.
It uses the Z3 solver, the Returns functional programming library, Pydantic, and FastMCP.
README.md · 0bb3eaf184a3 · Fetched 2026-11-13 10:33:10 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Python implementation of abstactions over the Z3 Theorem Prover capabilities using functional programming principles, exposed through a Model Context Protocol (MCP) server.
This project demonstrates how to use the Z3 Theorem Prover with a functional programming approach to solve complex constraint satisfaction problems and analyze relationships between entities. It leverages the returns library for functional programming abstractions and exposes its capabilities through an MCP server.
z3_mcp/
├── core/ # Core implementation
│ ├── solver.py # Constraint satisfaction problem solving
│ └── relationships.py # Relationship analysis
├── models/ # Data models
│ ├── constraints.py # Models for constraint problems
│ └── relationships.py # Models for relationship analysis
├── server/ # MCP server
│ └── main.py # Server implementation
└── examples/ # Example usage
└── main.py # Demonstration of capabilities
This project uses uv for dependency management.
# Clone the repository
git clone https://github.com/javergar/z3_mcp.git
cd z3_mcp
# Install dependencies
uv pip install -e .
# Install development dependencies (optional)
uv pip install -e ".[dev]"
The project includes several examples that demonstrate the capabilities of the Z3 solver:
# Run the examples
python -m z3_poc.examples.main
Examples include:
Start the MCP server to expose Z3 capabilities through the Model Context Protocol:
# Run the server
python -m z3_poc.server.main
To use the Z3 solver MCP server with Claude through the Cline extension in VSCode, you need to configure the settings.json file:
mcpServers object in the settings file:"z3-solver": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/z3_poc",
"run",
"z3_poc/server/main.py"
],
"disabled": false,
"autoApprove": [
"simple_constraint_solver",
"simple_relationship_analyzer",
"solve_constraint_problem",
"analyze_relationships"
]
}
Configuration Options:
command: The command to run (using uv for Python environment management)args: Command arguments, including the path to your project and the server scriptdisabled: Set to false to enable the serverautoApprove: List of tools that can be used without explicit approvalRestart: After updating the settings, restart VSCode or the Claude Desktop app for the changes to take effect.
Once configured, Claude will have access to the Z3 solver capabilities through the MCP server.
The server provides the following tools:
solve_constraint_problemSolves a constraint satisfaction problem with a full Problem model.
# Example input
{
"problem": {
"variables": [
{"name": "x", "type": "integer"},
{"name": "y", "type": "integer"}
],
"constraints": [
{"expression": "x + y == 10"},
{"expression": "x >= 0"},
{"expression": "y >= 0"}
],
"description": "Find non-negative values for x and y that sum to 10"
}
}
analyze_relationshipsAnalyzes relationships between entities with a full RelationshipQuery model.
# Example input
{
"query": {
"relationships": [
{"person1": "Alice", "person2": "Bob", "relation": "sibling"},
{"person1": "Bob", "person2": "Charlie", "relation": "sibling"}
],
"query": "sibling(Alice, Charlie)"
}
}
simple_constraint_solverA simpler interface for solving constraint problems without requiring the full Problem model.
# Example input
{
"variables": [
{"name": "x", "type": "integer"},
{"name": "y", "type": "integer"}
],
"constraints": [
"x + y == 10",
"x <= 5",
"y <= 5"
],
"description": "Find values for x and y"
}
simple_relationship_analyzerA simpler interface for analyzing relationships without requiring the full RelationshipQuery model.
# Example input
{
"relationships": [
{"person1": "Bob", "person2": "Hanna", "relation": "sibling"},
{"person1": "Bob", "person2": "Claudia", "relation": "sibling"}
],
"query": "sibling(Hanna, Claudia)"
}
This project demonstrates several functional programming principles:
returns.result.Result for error handling without exceptionsreturns.maybe.Maybe for handling nullable valuesResult.do() for sequential operationsExample of do notation in analyze_relationships:
expr = (
RelationshipResult(...)
for entities in create_entities(query.relationships)
for relations in create_relations(query.relationships)
for _ in add_relationship_assertions(solver, query.relationships, entities, relations)
for query_expr in parse_query(query.query, entities, relations)
for (result, explanation, is_satisfiable) in evaluate_query(solver, query_expr)
)
return Result.do(expr)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Z3 constraint-solving MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/z3_mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
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.