Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"sage": {
"args": [
"sage-solver-mcp"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
SAGE grounds AI in mathematical truth. It is a local MCP server that gives Claude Desktop — and any MCP-compatible agent — the ability to formulate, solve, and certify mathematical optimization problems using production-grade open-source solvers.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'sage-solver-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked sage-solver-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / data
Persistent memory using a knowledge graph
Manage Supabase projects — databases, auth, storage, and edge functions
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
MCP Security Weekly
Get CVE alerts and security updates for Sage Solver MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
SAGE grounds AI in mathematical truth. It is a local MCP server that gives Claude Desktop — and any MCP-compatible agent — the ability to formulate, solve, and certify mathematical optimization problems using production-grade open-source solvers.
Status: v0.1.3 — Alpha · Author: Peter Pragnakar Atreides
Large Language Models are probabilistic text generators. When you ask an LLM to allocate a budget, design a schedule, optimize a route, or balance a portfolio, it generates text that resembles a solution. No simplex method runs underneath. No branch-and-bound search. No constraint check. The model cannot prove optimality, certify feasibility, or — critically — declare with certainty that no feasible solution exists.
One of the most valuable outcomes in decision-making is a mathematically certified statement of infeasibility. It tells decision-makers their goals conflict, their assumptions are inconsistent, or their constraints must be renegotiated. LLMs have no native mechanism to produce this. SAGE provides it.
SAGE introduces a hybrid intelligence architecture: LLMs handle language and ambiguity; solvers handle optimality and feasibility. Each component does what it is best suited for.
LLMs operate as single-pass inference systems — token generation stops when the response is done. Optimization solvers work differently: they are inherently iterative and stateful, designed to run for minutes, hours, or days while continuously improving. At any point they can return the best solution found so far, a bound on the optimal objective, and a certificate of optimality or infeasibility.
This "anytime" property enables SAGE to:
The result: AI shifts from immediate but approximate to sustained and mathematically grounded.
| Capability | Detail |
|---|---|
| Problem types | LP, MIP, Portfolio Optimization (QP), Workforce Scheduling |
| Solvers | HiGHS (LP/MIP), OSQP (QP) |
| File I/O | Read/write Excel (.xlsx) and CSV |
| Infeasibility | IIS detection + ranked relaxation suggestions |
| Sensitivity | Dual values, reduced costs, allowable ranges |
| Explanation | Plain-language narration of every result |
# From PyPI (once published)
pip install sage-solver-mcp
# From source (development)
git clone https://github.com/pragnakar/Project_Sage
cd sage
pip install -e sage-solver-core/
pip install -e sage-solver-mcp/
Find your config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the SAGE server:
{
"mcpServers": {
"sage": {
"command": "uvx",
"args": ["sage-solver-mcp"]
}
}
}
What is
uvx? It is a command from the uv Python toolchain that runs a PyPI package ephemerally — no manualpip installrequired. If you have uv installed (brew install uvon macOS),uvx sage-solver-mcpfetches and runs SAGE automatically. If Claude Desktop cannot finduvxon your PATH, use the full path:"/opt/homebrew/bin/uvx"(macOS) or the output ofwhich uvx.
Restart Claude Desktop and you will see the SAGE tools in the toolbar.
Ask Claude:
"Solve this LP: maximize 3x + 5y subject to x + 2y ≤ 12, x ≤ 8, y ≤ 5, x,y ≥ 0"
Or with a file:
"Read examples/portfolio_5_assets.xlsx and solve it as a portfolio optimization"
| Tool | Description |
|---|---|
solve_optimization | Solve LP / MIP / portfolio / scheduling from JSON |
read_data_file | Read an Ex |