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"
]
}
}
}
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Remote MCP Server Authless Test
An example of deploying a remote MCP server on Cloudflare Workers without authentication.
Google Apps Script MCP Server
Manage Google Apps Script projects, including creation, editing, deployment, and execution. Requires Google Cloud credentials for authentication.
Raspberry Pi MCP Servers Collection
A collection of production-ready MCP servers optimized for Raspberry Pi and AI workloads.
Swagger/OpenAPI MCP Server
Explore and interact with Swagger/OpenAPI specifications, allowing for browsing endpoints and retrieving details on API operations.
TokenTool MCP
Deploy and manage compliant tokens from Claude, Cursor, or any AI agent — by typing a sentence.
MCP-Allure
Reads Allure test reports and returns them in LLM-friendly formats for better test analysis and insights.
Jenkins MCP Server
Integrates with Jenkins CI/CD systems for AI-powered insights, build management, and debugging.
MCP Documentation Server
An AI-powered documentation server for code improvement and management, with Claude and Brave Search integration.
MCP Ollama Agent
A TypeScript agent that integrates MCP servers with Ollama, allowing AI models to use various tools through a unified interface.
Vibe Check
The definitive Vibe Coder's sanity check MCP server: Prevents cascading errors by calling a "Vibe-check" agent to ensure alignment and prevent scope creep