Provides M/M/1 and M/M/c queue simulation tools, metrics, and production-ready SimPy code.
Configuration
View docs{
"mcpServers": {
"kiyoung8-simulation_by_simpy_mcp": {
"command": "uvx",
"args": [
"mcp-server-mm1"
]
}
}
}You can run, test, and analyze M/M/1 and M/M/c queue simulations through an MCP server that provides prebuilt resources, prompts, and execution tools. This server helps you validate configurations, generate production-ready simulations, compare queue strategies, and analyze real-world scenarios like stores or banks using SimPy.
To use the MCP server, connect your MCP client and select the M/M/1 or M/M/c workspace. You can validate configurations, compute theoretical metrics, run simulations, and generate SimPy code for production use. Start by choosing the desired operation (validate, simulate, compare, or analyze), then provide your λ (arrival rate) and μ (service rate) values along with the number of servers for M/M/c. Use the results to compare separate queues versus a pooled queue, and to interpret simulated performance against theoretical formulas.
Follow these concrete installation flows to set up the M/M/1/M/M/c MCP server and start running simulations.
uvx mcp-server-mm1pip install mcp-server-mm1
mcp-server-mm1git clone https://github.com/yourusername/mcp-server-mm1.git
cd mcp-server-mm1
uv pip install -e .
mcp-server-mm1If you use Claude Desktop, you can register the MCP server by adding a configuration entry that points to the runtime command. The following example shows a typical setup referencing the uvx runner.
{
"mcpServers": {
"mm1-simulation": {
"command": "uvx",
"args": ["mcp-server-mm1"]
}
}
}Validate M/M/1 parameters and check system stability before running simulations.
Compute theoretical performance metrics such as utilization, average queue length, and waiting times.
Execute an M/M/1 style simulation to generate metrics and compare with theory.
Execute an M/M/c simulation to handle multiple servers and compare against separate queues.
Compare separate queues versus a pooled queue to evaluate strategy performance.
Analyze a supermarket-like scenario to study queue dynamics and staffing.
Analyze the alignment between simulation outcomes and theoretical expectations.
Suggest optimal λ and μ configurations to meet stability and performance goals.
Create production-ready SimPy code from given parameters.
Provide educational content on M/M/1 theory and core formulas.
Interpret simulation outcomes and extract actionable insights.
Troubleshoot common issues in configurations and simulations.