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"
]
}
}
}
Server Terkait
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Figma
Integrate Figma design data with AI coding tools using a local MCP server.
Accordo MCP Server
Provides dynamic YAML-driven workflow guidance for AI coding agents with structured development workflows, progression control, and decision points.
Replicate Minimax Image-01
Generate images using the minimax/image-01 model on Replicate.
MCP Proxy
A bidirectional MCP proxy connecting stdio and Server-Sent Events (SSE) with OAuth support.
Greb-MCP
Semantic code search for AI agents without indexing your codebase or storing any data. Fast and accurate.
Have I Been Pwned
Check if an account or password has been compromised in a data breach using the Have I Been Pwned API.
sep-mpc-server
A server for processing semantic embeddings, requiring external data files mounted via a Docker volume.
My MCP SSE Servers
A project for managing multiple MCP servers using Docker Compose, with each server as a submodule.
Logfire
Provides access to OpenTelemetry traces and metrics through Logfire.
GitHub Issue Reproduction MCP Server
An intelligent MCP server that automates the reproduction of GitHub issues for AWS CDK projects.