
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.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
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 · 采集于 2026-11-13 10:33:10 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
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.