MCP4DRL
Exposes a trained Deep Q-Network agent for business process resource allocation, enabling natural language interaction with reinforcement learning models. It provides tools for simulation control, Q-value analysis, and action explainability to make complex decision-making transparent.
README
MCP4DRL - Model Context Protocol for Deep Reinforcement Learning
MCP server that exposes a trained Deep Q-Network (DQN) agent for business process resource allocation through conversational interfaces. Makes "black box" RL systems transparent via natural language queries.
Features
- Environment State Queries - View simulation state, waiting/active cases, resources
- Q-Value Analysis - Inspect Q-values for all actions
- Action Recommendations - Get agent's top choice with justification
- Explainability - Detailed explanations of why actions are chosen
- Heuristic Comparison - Compare with FIFO, SPT, EDF, LST baselines
- Simulation Control - Step through episodes, reset, run full episodes
Installation
pip install -r requirements.txt
Requirements: Python 3.8+, TensorFlow 2.16+
Quick Start
Test locally
python -m mcp4drl.test_integration
Run MCP server
# Windows
run_server.bat
# Linux/Mac
chmod +x run_server.sh
./run_server.sh
Claude Desktop Integration
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcp4drl": {
"command": "cmd.exe",
"args": ["/c", "C:\\path\\to\\mcp4drl_repo\\run_server.bat"],
"shell": true
}
}
}
Available MCP Tools
| Tool | Description |
|---|---|
get_environment_state |
Current simulation state |
get_eligible_actions |
All possible actions with validity |
get_q_values |
Q-values for all actions |
get_recommended_action |
Agent's best action |
explain_action |
Detailed action explanation |
compare_with_heuristic |
Compare with FIFO/SPT/EDF/LST |
step_simulation |
Execute one step |
reset_simulation |
Reset to initial state |
run_episode |
Run full episode with policy |
Project Structure
mcp4drl_repo/
├── mcp4drl/ # Main Python package
│ ├── core/ # Wrappers (simulator, agent)
│ ├── models/ # Pydantic schemas
│ └── tools/ # MCP tool implementations
├── simprocess/ # Business process simulation engine
├── data/ # Model and event log
└── mcp4drl_server.py # Standalone launcher
Configuration
Environment variables (optional):
MCP4DRL_MODEL_PATH- Path to trained model (.h5)MCP4DRL_EVENT_LOG- Path to XES event logMCP4DRL_TRANSPORT-stdio(default) orsse
Context
Part of doctoral dissertation on intelligent automation of business process management. Demonstrates that RL systems can be made transparent through conversational interfaces.
License
Research prototype.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.