Optima-MCP
Connects to Google Sheets via public CSV export URLs, fetching the full sheet directly into a local pandas DataFrame so it can be mapped and fed into the solvers without loading raw rows into the LLM context.
Reads data from MariaDB databases using strict read-only (SELECT-only) queries with credentials supplied through env: variables, streaming the result set locally into the optimization models.
Reads data from MySQL databases using strict read-only (SELECT-only) queries with credentials supplied through env: variables, streaming the result set locally into the optimization models.
Reads data from PostgreSQL databases using strict read-only (SELECT-only) queries with credentials supplied through env: variables, streaming the result set locally into the optimization models.
Reads data from SQLite database files using strict read-only (SELECT-only) queries, streaming the full dataset locally into the optimization models.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
⚡ Optima-MCP
Stop letting LLMs guess your math.
A Universal, Zero-Hallucination Operations Research & Decision Intelligence MCP Server for Claude, Antigravity, Cursor, and any AI Agent.
Quick Install (1 Link) • How It Works • Connectors • Solvers • Examples
🚨 The Problem
Large Language Models are probabilistic — they predict the next likely token. Ask an LLM to plan inventory for 500 SKUs under budget, storage, and supplier constraints, and it will confidently hallucinate suboptimal (or mathematically impossible) numbers.
Related MCP server: SAGE
💡 The Solution: Neuro-Symbolic Decision Intelligence
Optima-MCP splits the job in two:
Your AI Agent (Flexible Adapter): Inspects any messy database, Excel sheet, Google Sheet, or API — maps the columns, captures your business rules, and explains the outcome.
Optima-MCP (Deterministic Math Brain): Streams your full dataset locally into industrial-grade Operations Research solvers (HiGHS MILP/LP & Google OR-Tools CP-SAT / VRP) to compute the single mathematically proven optimal decision in milliseconds — with a complete audit trail and zero raw data leaked into the LLM context.
flowchart LR
A["Any Data Source\nExcel / CSV / SQL / Sheets / API"] -->|Full Dataset Streamed Locally| B["Optima-MCP Engine\n(Connectors + Pydantic Guard)"]
B -->|Schema + 3-Row Preview Only| C["AI Agent\nClaude / Antigravity / Cursor"]
C -->|Column Mapping + Constraints| B
B --> D["Solver Grid\nHiGHS MILP + Google OR-Tools"]
D -->|Optimal Plan + Audit Trail| C
C -->|Clear Executive Decision| E["User"]⚡ Install in 10 Seconds (Zero Setup)
Option 1: Just Paste This Repo Link to Your AI Agent 🤖
Copy and send this prompt to Antigravity, Claude Code, Cursor, or Windsurf:
"Install the MCP plugin and skill from
https://github.com/1PROO/optima-mcpfollowing its Agent Auto-Install block."
Option 2: Manual MCP Config (claude_desktop_config.json / .mcp.json)
Requires uv (runs directly from GitHub with no manual cloning):
{
"mcpServers": {
"optima-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/1PROO/optima-mcp",
"optima-mcp"
]
}
}
}🔌 Universal Data Connectors (Plug & Play)
Optima-MCP connects to your real systems out of the box without stuffing thousands of rows into your LLM's context window:
Source Type | Supported Formats / Engines | Security & Privacy |
Spreadsheets & Files |
| 100% local in-memory read |
SQL Databases | SQLite, PostgreSQL, MySQL / MariaDB | Strict Read-Only ( |
Cloud Sheets | Google Sheets (Public CSV URLs) | Direct fetch into Pandas |
Live Systems / ERPs | Any REST API ( | Auth headers read from local |
🧠 Built-in Mathematical Solvers
Module | Underlying Engine | Business Decisions It Solves |
| HiGHS (MILP) | What to buy, from which supplier, and how much — respecting cash budgets, warehouse/fridge capacity, MOQ, shipping fees, and shelf life. |
| OR-Tools (VRP) | Optimal delivery & field-service routes for vehicles/technicians under load capacity and time windows. |
| OR-Tools (CP-SAT) | Fair, optimal shift & workforce schedules matching peak demand, skill requirements, and legal rest limits. |
| HiGHS (LP / MILP) | Capital allocation, shelf-space optimization, fuel/oil blending, and production mix planning. |
| Multi-Run Grid | Instant side-by-side sensitivity analysis ("What if my supplier raises prices by 8% or my budget drops by 20%?"). |
📊 Pure LLM vs. Optima-MCP
Dimension | Pure LLM (GPT / Claude alone) | Optima-MCP (Neuro-Symbolic) |
Math Accuracy | Probabilistic guesses (~30–60% on constraints) | 100% Provably Optimal (Deterministic) |
Dataset Scale | Breaks or truncates beyond ~100 rows | Handles 100,000+ variables in milliseconds |
Context Window Cost | Massive (uploads entire tables) | Minimal (sees schema + 3 sample rows only) |
Auditability | Black box ("trust me") | Full Audit Trail + Infeasibility Diagnostics |
Data Privacy | Raw business numbers sent to cloud LLM | Raw numbers stay 100% local on your machine |
🌍 Real-World Examples (Not Just Factories)
⛽ Fuel Stations & Lubricants: Optimize underground tank replenishment timing + lubricant SKU mix to maximize profit per dollar without dead stock.
🍽️ Restaurants & Food Distribution: Daily purchasing for perishable ingredients under fridge space, shelf life, and supplier minimums.
🚚 Distribution & Field Service: Route sales reps, delivery vans, or maintenance technicians to slash fuel costs and late arrivals.
🛒 Retail & E-Commerce: Allocate limited cash across hundreds of SKUs for maximum ROI and stockout prevention.
Try it immediately with the bundled sample files in examples/:
"Inspect
examples/fuel_and_oils_station.csv, validate the mapping, and give me the optimal purchasing plan for a $50,000 budget and 1,200 storage units."
🛡️ Strict 3-Step Safety Protocol
Every tool call follows an enforced workflow (bundled in SKILL.md and served natively via the optima://protocol/strict-rules MCP resource):
inspect_source— Reads columns & 3 sample rows only.dry_run_validate— Verifies units, negative-margin traps, and constraints before computing.solve_*— Runs the deterministic mathematical solver and outputs exact numbers + skipped opportunities.
🤝 Contributing
New solver templates (Production Scheduling, Portfolio Optimization, Bin Packing) and connectors (Odoo, Shopify, Airtable, Snowflake) are welcome! Open an issue or submit a PR.
📄 License
MIT License — free for personal and commercial use.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Field operations on a deterministic solver — run jobs, crews & fleet from Claude or ChatGPT.
Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.
AI-native data layer: sheets, databases and apps for every agent, with exact answers and audit.
Connect AI agents to financial institution origination, analytics, and compliance workflows.
Related MCP Servers
AlicenseAqualityCmaintenanceEnable AI agents to work reliably - giving them secure access to structured data, tools to take action, and the context needed to make smart decisions.85440MIT- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop and MCP-compatible agents to formulate, solve, and certify mathematical optimization problems using production-grade open-source solvers, providing mathematically grounded decisions.MIT
- AlicenseBqualityDmaintenanceTransforms unstructured natural language operational problems into rigorously formulated, validated, and solved Mixed-Integer Linear Programming (MILP) models via an autonomous multi-agent graph, bringing closed-loop Operations Research capabilities to LLM assistants and MCP clients.11MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query and operate on ERP data through a unified tool interface, working across CSV exports, SFTP drop folders, SQLite/ODBC, and optional enterprise APIs. It supports purchase orders, vendors, and inventory lookups while keeping agent-facing tools consistent regardless of backend.MIT