Skip to main content

DcisionAI MCP Server v3.0 - AI-Powered Optimization with DAME (DcisionAI Micro-differential Evolutionary Algorithm), HiGHS Solver, Dual Validation, 90%+ Trust Scores & Business Interpretation

Project description

๐ŸŽฏ DcisionAI MCP Server

AI-Powered Optimization for Your IDE - Solve complex business problems directly in Cursor, Claude Desktop, or VS Code.

Version Python License


โœจ What is This?

DcisionAI is a Model Context Protocol (MCP) server that brings enterprise-grade optimization to your IDE. Ask your AI assistant to solve real business problems, and get:

  • ๐ŸŽฏ 90%+ Trust Scores with mathematical proof
  • ๐Ÿง  DAME Algorithm (proprietary evolutionary solver)
  • โš–๏ธ Dual Validation with HiGHS exact solver
  • ๐Ÿ’ผ Business Interpretation in plain language
  • ๐Ÿ“Š 5-Layer Proof Suite for transparency

๐Ÿš€ Quick Start (30 seconds)

Step 1: Install in Your IDE

For Cursor / Claude Desktop:

Add to your MCP settings (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):

{
  "mcpServers": {
    "dcisionai": {
      "command": "uvx",
      "args": ["dcisionai-mcp-server@latest"],
      "env": {
        "OPENAI_API_KEY": "${OPENAI_API_KEY}",
        "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
        "SUPABASE_URL": "https://your-project.supabase.co",
        "SUPABASE_KEY": "your-anon-key"
      },
      "autoApprove": ["dcisionai_solve"]
    }
  }
}

That's it! No compilation, no setup, no auth tokens.


Step 2: Try It

Ask Claude/Cursor:

"Use DcisionAI to optimize my retail store layout: 
20 products across 5 shelves, maximize revenue and customer flow."

Get back:

  • โœ… Optimal product placement
  • โœ… 90% trust score with mathematical proof
  • โœ… Business interpretation
  • โœ… Constraint verification
  • โœ… Sensitivity analysis

๐ŸŽ“ What Can It Solve?

๐Ÿ“Š Finance

  • Portfolio Optimization - Rebalance $500k portfolio, reduce concentration risk
  • Trading Schedule - Optimize execution timing to minimize market impact
  • Asset Allocation - Balance risk/return across sectors

๐Ÿช Retail

  • Store Layout - Optimize shelf space for 20+ products
  • Promotion Scheduling - Maximize revenue with budget constraints
  • Inventory Placement - Minimize stockouts & overstock

๐Ÿšš Logistics

  • Vehicle Routing - Minimize travel time for 10+ delivery stops
  • Warehouse Layout - Optimize picking paths
  • Job Shop Scheduling - Sequence 15 jobs across 5 machines

๐Ÿ‘ท Workforce

  • Shift Scheduling - Assign 20 workers to 40 shifts
  • Maintenance Scheduling - Minimize downtime across 10 assets
  • Skill Matching - Optimal worker-task assignment

๐Ÿ”ง Environment Variables

Required in your IDE's MCP config:

# LLM APIs (required)
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...

# Supabase (required - stores domain configs)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=eyJ...

# Optional: External data (for real-world augmentation)
POLYGON_API_KEY=...              # Market data
ALPHA_VANTAGE_API_KEY=...        # Economic data

๐Ÿ“Š Trust & Validation

Every solution includes:

1. Mathematical Proof Suite (5 proofs)

  • Constraint Verification - All business rules satisfied?
  • Monte Carlo Simulation - 1000 scenarios, how stable?
  • Optimality Certificate - How close to theoretical best?
  • Sensitivity Analysis - What if inputs change ยฑ20%?
  • Benchmark Comparison - Beats naive baseline by X%?

2. Dual Solver Validation

  • DAME (heuristic) - Fast, handles any problem
  • HiGHS (exact) - Slow, LP/MIP only, mathematically optimal
  • Cross-validation - Compare results, boost trust to 95%+

3. Business Interpretation

  • Plain language explanation
  • Implementation steps
  • Risks & assumptions
  • What-if scenarios

๐Ÿ’ก Example Interaction

You ask:

"I have 50 products to place on 8 store shelves. 
Products have different profit margins and sales rates. 
Dairy needs refrigeration. High-value items need security.
How should I arrange them?"

DcisionAI returns:

โœ… Status: SUCCESS
๐Ÿ“Š Industry: RETAIL
๐ŸŽฏ Domain: Store Layout Optimization
โญ Trust Score: 92% (VERIFIED)
๐Ÿ† Certification: VERIFIED

๐Ÿ“ˆ Objective Value: 0.423 (42.3% improvement vs. baseline)

๐Ÿ’ผ Business Interpretation:
"Strategic product placement optimizes for revenue and customer 
flow. High-margin products positioned in prime visibility zones. 
Refrigerated items grouped for efficiency..."

๐Ÿ” Mathematical Proof:
โœ… All 8 constraints satisfied
โœ… Monte Carlo: 1000 scenarios, 95% confidence
โœ… Optimality: Within 4.2% of theoretical best
โœ… Sensitivity: Stable under ยฑ20% demand changes
โœ… Benchmark: 42% better than random placement

๐Ÿ› ๏ธ Implementation Steps:
1. Reorganize shelf 1-3 (high-traffic zone)
2. Group dairy in refrigerated section
3. Position security items near checkout
4. Monitor sales for 30 days and adjust

๐Ÿ—๏ธ Architecture

User Question
    โ†“
LLM Extraction (GPT-4/Claude)
    โ†“
Domain Classification (11 domains)
    โ†“
Data Augmentation (synthetic + external APIs)
    โ†“
Parallel Solving
    โ”œโ”€ DAME (heuristic, 100 generations)
    โ””โ”€ HiGHS (exact, LP/MIP)
    โ†“
Cross-Validation
    โ†“
Proof Generation (5 proofs)
    โ†“
Business Interpretation (LLM)
    โ†“
Structured Response (JSON)

๐Ÿ“š Supported Domains

Domain Description Example
Portfolio Asset allocation, risk balancing "Optimize $500k portfolio"
Retail Layout Shelf space allocation "Place 20 products on 5 shelves"
VRP Vehicle routing, delivery optimization "Route 3 trucks to 15 stops"
Job Shop Production scheduling "Schedule 10 jobs on 4 machines"
Workforce Shift assignment, rostering "Assign 15 workers to 40 shifts"
Maintenance Asset maintenance scheduling "Schedule maintenance for 8 machines"
Promotion Marketing campaign optimization "Allocate $50k ad budget"
Trading Trade execution optimization "Minimize market impact of large order"
Customer Onboarding Wealth management "Onboard new client with $2M"
PE Exit Timing Private equity exits "Optimize exit timing for 5 holdings"
HF Rebalancing Hedge fund portfolio adjustments "Rebalance multi-strategy fund"

๐Ÿ”ฌ Technology Stack

  • DAME - Proprietary evolutionary algorithm (see research paper)
  • HiGHS - Open-source LP/MIP solver from Edinburgh
  • FastMCP - Model Context Protocol implementation
  • Anthropic Claude - LLM for extraction & interpretation
  • OpenAI GPT-4 - Fallback LLM
  • Supabase - Domain config storage

๐Ÿ“– Documentation


๐Ÿ› ๏ธ Development

Local Testing

# Clone the repo
git clone https://github.com/dcisionai/dcisionai-mcp-platform.git
cd dcisionai-mcp-platform/dcisionai/fastapi-server

# Install dependencies
pip install -e .

# Run locally
python -m dcisionai_mcp_server.server

Contributing

We welcome contributions! See CONTRIBUTING.md.


๐Ÿ“œ License

MIT License - see LICENSE


๐Ÿค Support


๐ŸŽ‰ Credits

Built by Amey Dhavle

Powered by:

  • FastMCP
  • HiGHS Solver
  • Anthropic Claude
  • OpenAI GPT-4
  • Supabase

โญ Star us on GitHub if DcisionAI helps your business!

github.com/dcisionai/dcisionai-mcp-platform

Project details


Release history Release notifications | RSS feed

This version

3.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcisionai_mcp_server-3.0.0.tar.gz (464.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcisionai_mcp_server-3.0.0-py3-none-any.whl (560.0 kB view details)

Uploaded Python 3

File details

Details for the file dcisionai_mcp_server-3.0.0.tar.gz.

File metadata

  • Download URL: dcisionai_mcp_server-3.0.0.tar.gz
  • Upload date:
  • Size: 464.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dcisionai_mcp_server-3.0.0.tar.gz
Algorithm Hash digest
SHA256 cbb0b91c0b0c243915db1d22fb4e880d22f9eaa1dbc53088d6c04e8551f1e338
MD5 82fa794474fcb5b6ddfd188a26669848
BLAKE2b-256 413f43f69a41d0187332bb986d5f8b361f08e92c6e4c614e8efb61ac5400cf2d

See more details on using hashes here.

File details

Details for the file dcisionai_mcp_server-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dcisionai_mcp_server-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60b52d0077e30d36f8cdcbde0c90cb12437c8c21cc2ce031b79385b213a99f2c
MD5 fc7fa3a50d7f4ba1de5deff5e2ff4162
BLAKE2b-256 8fcf01ae2c88f7182e113ba414a2077ce7fcb94b45da4733267c9d6c580170ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page