USolver
A best-effort universal logic and numerical solver interface using MCP that implements the 'LLM sandwich' model to process queries, call dedicated solvers (ortools, cvxpy, z3), and verbalize results.
What is USolver?
USolver is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to best-effort universal logic and numerical solver interface using mcp that implements the 'llm sandwich' model to process queries, call dedicated solvers (ortools, cvxpy, z3), and verbalize results.
A best-effort universal logic and numerical solver interface using MCP that implements the 'LLM sandwich' model to process queries, call dedicated solvers (ortools, cvxpy, z3), and verbalize results.
This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A best-effort universal logic and numerical solver interface
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx usolverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use USolver
USolver is a Python-based MCP server that implements a universal solver interface using the 'LLM sandwich' model, where natural language problem descriptions are translated into mathematical constraints, passed to dedicated solver backends (Google OR-Tools for combinatorial optimization, CVXPy for convex optimization, and Z3 for SMT/logical constraint satisfaction), and the results are verbalized back in plain language. It is designed for engineers, operations researchers, and data scientists who want to describe optimization problems — staff scheduling, pipeline design, resource allocation — in conversational language rather than solver-specific syntax, with the LLM handling the translation layer in both directions.
Prerequisites
- Python 3.9+ installed on your system
- uv package manager (recommended) or pip
- The solver Python packages: google-or-tools, cvxpy, and z3-solver
- An MCP-compatible client such as Claude Desktop or Claude Code
- Note: this repository is archived and no longer maintained; it remains functional for educational and research use
Clone the archived repository
Clone the USolver repository from GitHub. Although archived, the code is still functional.
git clone https://github.com/sdiehl/usolver.git
cd usolverInstall dependencies
Install the Python dependencies using uv (recommended) or pip. The core solver backends are OR-Tools, CVXPy, and Z3.
# Using uv (recommended):
uv sync
# Or using pip:
pip install google-or-tools cvxpy z3-solverRun the install script
Use the provided install.py script to set up the environment and verify solver backends are available.
python install.pyConfigure your MCP client
Add USolver to your Claude Desktop or Claude Code configuration, pointing to the Python entrypoint.
{
"mcpServers": {
"usolver": {
"command": "python",
"args": ["/path/to/usolver/main.py"]
}
}
}Test with a simple optimization problem
Ask your AI assistant a constraint satisfaction or optimization problem to verify the solver backends are working correctly.
USolver Examples
Client configuration
Claude Desktop config for USolver using Python.
{
"mcpServers": {
"usolver": {
"command": "python",
"args": ["/path/to/usolver/main.py"]
}
}
}Prompts to try
Example natural language optimization problems you can give to USolver.
- "Schedule 4 nurses across 3 shifts (morning 6-14, afternoon 14-22, night 22-6) so each nurse works 5 days and shifts are evenly distributed"
- "Design a water transport pipeline with max flow rate 500 L/min, pressure between 2 and 8 bar, and pipe diameter between 50 and 200mm — minimize cost"
- "Find integer values of x and y such that 3x + 2y = 18, x > 0, y > 0, and x + y is minimized"
- "Is it possible to color a map with 3 colors such that no two adjacent regions share a color? Regions: A-B, B-C, C-A, A-D"Troubleshooting USolver
ImportError for ortools, cvxpy, or z3
Install the missing solver package: 'pip install google-or-tools' for OR-Tools, 'pip install cvxpy' for CVXPy, and 'pip install z3-solver' for Z3. Ensure you are using the same Python environment that the MCP server runs in.
The solver returns 'infeasible' or no solution for a problem
The problem constraints may be contradictory. Try relaxing one or more constraints in your natural language description. USolver uses a best-effort approach — rephrase the problem with looser bounds if the solver cannot find a feasible solution.
Repository archived warning and concerns about maintenance
The repository was archived in May 2026 and is no longer receiving updates. It remains functional for the documented use cases. For production deployments, consider forking the repository or migrating to an actively maintained solver MCP integration.
Frequently Asked Questions about USolver
What is USolver?
USolver is a Model Context Protocol (MCP) server that best-effort universal logic and numerical solver interface using mcp that implements the 'llm sandwich' model to process queries, call dedicated solvers (ortools, cvxpy, z3), and verbalize results. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install USolver?
Follow the installation instructions on the USolver GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with USolver?
USolver works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is USolver free to use?
Yes, USolver is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.
USolver Alternatives — Similar Data Science & ML Servers
Looking for alternatives to USolver? Here are other popular data science & ml servers you can use with Claude, Cursor, and VS Code.
Ultrarag
★ 5.6kA Low-Code MCP Framework for Building Complex and Innovative RAG Pipelines
RocketRide
★ 3.1k📇 🏠 - MCP server that exposes RocketRide AI pipelines as t
Aix Db
★ 2.1kAix-DB 基于 LangChain/LangGraph 框架,结合 MCP Skills 多智能体协作架构,实现自然语言到数据洞察的端到端转换。
NeMo Data Designer
★ 1.9k🎨 NeMo Data Designer: Generate high-quality synthetic data from scratch or from seed data.
PaperBanana
★ 1.7kOpen source implementation and extension of Google Research’s PaperBanana for automated academic figures, diagrams, and research visuals, expanded to new domains like slide generation.
MiniMax
★ 1.5kBridges MiniMax AI capabilities to the Model Context Protocol, enabling AI agents to perform image understanding, text-to-image generation, and speech synthesis. It provides a standardized interface for accessing MiniMax's core tools via JSON-RPC.
Browse More Data Science & ML MCP Servers
Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up USolver in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use USolver?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.