Genetic Algorithm MCP
A server that uses a Genetic Algorithm to solve maximization problems.
genetic_mcp
An MCP server to solve maximization problems using Genetic Algorithm.
Table of Contents
How it works
...
How to run
Genetic Algorithm
There's already a sample problem loaded in genetic-mcp-server/genetic_algorithm/main.py. To run it, run the following commands:
cd genetic-mcp-server/genetic_algorithm
python3 main.py
There are also sample problems in genetic-mcp-server/genetic_algorithm/samples. To run them, simply replace <problem> below with the name of the actual problem you want to run:
cd genetic-mcp-server/genetic_algorithm
python3 main.py samples/<problem>.json
If you want to run your own problems, you have 2 options:
- Simply modify the following section of
genetic-mcp-server/genetic_algorithm/main.py:
tsp_data = {
"options": {
"population_size": 100,
"chromosome_size": 4,
"fitness_function": {
"cities": ["A", "B", "C", "D"],
"distance_matrix": [
[0, 10, 15, 20],
[10, 0, 35, 25],
[15, 35, 0, 30],
[20, 25, 30, 0]
]
}
},
"problem": "traveling_salesman",
"generations": 50
}
- Create a .json file in the same style of the ones in
genetic-mcp-server/genetic_algorithm/samplesand replace<path_to_your_file>with the path to your file:
cd genetic-mcp-server/genetic_algorithm
python3 <path_to_your_file>
MCP Server
If you want to run the MCP server, run:
cd genetic-mcp-server
uv run main.py
How to add the MCP server to Cursor
Replace <full-path-to-genetic-mcp-server> in the following JSON with your actual path:
{
"mcpServers": {
"genetic_algorithm_mcp_server": {
"command": "uv",
"args": [
"--directory",
<full-path-to-genetic-mcp-server>,
"run",
"main.py"
]
}
}
}
Máy chủ liên quan
Scout Monitoring MCP
nhà tài trợPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
nhà tài trợAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
MCPilot
A FastAPI-based gateway for the Model Context Protocol (MCP) designed to unify and scale AI toolchains.
iTerm
Access and control local iTerm2 terminal sessions.
Notifly MCP Server
Notifly MCP Server - enabling AI agents to provide real-time, trusted Notifly documentation and SDK code examples for seamless integrations.
Perfetto
Turn natural language into powerful Perfetto trace analysis. Quickly explain jank, diagnose ANRs, spot CPU hot threads, uncover lock contention, and find memory leaks.
Code Reaper
CodeReaper is an AI-driven MCP tool for Cursor that finds and removes dead JavaScript by exploring real UIs and capturing V8 coverage
VSCode MCP
Enables AI agents and assistants to interact with Visual Studio Code through the Model Context Protocol.
Untun
Create secure tunnels to expose local servers to the internet using untun.
Stackzero Labs MCP
A server for generating Stackzero Labs UI components.
Remote MCP Server (Authless)
An authentication-free, remote MCP server designed for deployment on Cloudflare Workers or local setup via npm.
Vibe Stack MCP
Helps developers choose the right tech stack for their projects with personalized recommendations.