Skip to main content

DcisionAI MCP Server v2.5 - Enhanced with KB Integration, Retry Mechanism, Validation Feedback, and 3-Industry Wedge Focus (Manufacturing, Retail, Finance)

Project description

DcisionAI MCP Server

PyPI version Python 3.8+ License: MIT

🚀 AI-Powered Mathematical Optimization for Cursor IDE

The DcisionAI MCP Server brings advanced mathematical optimization capabilities directly to your Cursor IDE. Transform natural language problem descriptions into optimal solutions using state-of-the-art AI models and robust optimization solvers.

✨ Features

  • 8 Powerful Tools: Complete optimization workflow from problem understanding to business explanations
  • AI-Driven Problem Formulation: Uses Claude 3 Haiku to translate business problems into mathematical models
  • Real Optimization Solvers: OR-Tools integration with PDLP, GLOP, CBC, SCIP, and more
  • Business Explainability: Generate executive summaries and implementation guidance
  • 21 Industry Workflows: Pre-built templates for manufacturing, healthcare, finance, and more
  • Cursor IDE Integration: Seamless integration with Cursor's MCP protocol

🛠️ Available Tools

  1. classify_intent - Understand and classify optimization problems
  2. analyze_data - Assess data quality and identify variables/constraints
  3. build_model - Generate mathematical optimization models using AI
  4. select_solver - Choose the best solver for your problem type
  5. solve_optimization - Execute optimization using real solvers
  6. explain_optimization - Generate business-friendly explanations
  7. get_workflow_templates - Access 21 industry-specific workflows
  8. execute_workflow - Run complete optimization workflows

🚀 Quick Start

Installation

# Install via pip
pip install dcisionai-mcp-server

# Or use uvx for direct execution
uvx dcisionai-mcp-server@latest

Cursor IDE Setup

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "dcisionai-mcp-server": {
      "command": "uvx",
      "args": ["dcisionai-mcp-server@latest"],
      "env": {
        "PYTHONUNBUFFERED": "1"
      },
      "disabled": false,
      "autoApprove": [
        "classify_intent",
        "analyze_data", 
        "build_model",
        "solve_optimization",
        "select_solver",
        "explain_optimization",
        "get_workflow_templates",
        "execute_workflow"
      ]
    }
  }
}

Usage Example

# In Cursor IDE, use the MCP tools:
@dcisionai-mcp-server classify_intent "Optimize my investment portfolio for maximum returns with moderate risk"

# Follow up with:
@dcisionai-mcp-server build_model "Portfolio optimization problem" --intent_data <previous_result>

# Continue the workflow:
@dcisionai-mcp-server solve_optimization "Portfolio problem" --model_building <model_result>

📊 Supported Optimization Types

  • Linear Programming (LP) - Resource allocation, production planning
  • Mixed-Integer Linear Programming (MILP) - Scheduling, routing
  • Quadratic Programming (QP) - Portfolio optimization, risk management
  • Convex Optimization - Machine learning, signal processing

🏭 Industry Workflows

  • Manufacturing: Production planning, inventory optimization, quality control
  • Healthcare: Staff scheduling, patient flow, resource allocation
  • Finance: Portfolio optimization, risk assessment, fraud detection
  • Retail: Demand forecasting, pricing optimization, supply chain
  • Logistics: Route optimization, warehouse management, fleet operations
  • Energy: Grid optimization, renewable integration, demand response
  • Marketing: Campaign optimization, budget allocation, customer segmentation

🔧 Requirements

  • Python 3.8+ (Python 3.13 has limited OR-Tools support)
  • AWS credentials for Bedrock access (for AI model inference)
  • Cursor IDE (for MCP integration)

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

🙏 Acknowledgments


Made with ❤️ by the DcisionAI Team

Project details


Release history Release notifications | RSS feed

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-2.5.2.tar.gz (445.8 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-2.5.2-py3-none-any.whl (158.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dcisionai_mcp_server-2.5.2.tar.gz
  • Upload date:
  • Size: 445.8 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-2.5.2.tar.gz
Algorithm Hash digest
SHA256 08b345b0109a79841c7a1ce0ab44820b03da9de7225ad3f79f29cc57585dd24e
MD5 8043b5c0c18519b60b2c1d8f4734f142
BLAKE2b-256 88032640b2a174a35172c17ae0fe652489516c2f2ee70c6eab8d64273dfd2029

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dcisionai_mcp_server-2.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a201bfa493954c6f127a925b6d1c086234fc21975da8c4f7711b956b0413329
MD5 9c02bda736e4c14b7c45d0d7f9583106
BLAKE2b-256 b7c4b6252bee20503ca1b8447ddc903200520069328863a4b39c5ed7e7d2d321

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