GEPA
MCP server integrating GEPA (Genetic-Evolutionary Prompt Architecture) for automatic prompt optimization with Claude Desktop
What is GEPA?
GEPA is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server integrating gepa (genetic-evolutionary prompt architecture) for automatic prompt optimization with claude desktop
MCP server integrating GEPA (Genetic-Evolutionary Prompt Architecture) for automatic prompt optimization with Claude Desktop
This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server integrating GEPA (Genetic-Evolutionary Prompt Arc
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx gepaConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use GEPA
The GEPA MCP Server integrates Genetic-Evolutionary Prompt Architecture — an automated prompt optimization system — into Claude Desktop, enabling AI-driven refinement of prompts using genetic algorithms powered by the Google Gemini API. Rather than manually iterating on prompts, GEPA evolves them over multiple generations against training examples, making it useful for teams that need to optimize prompt templates for classification, extraction, or generation tasks. The server exposes three optimization strategies: full evolutionary optimization with training data, quick single-cycle improvement, and context-aware conversational optimization.
Prerequisites
- Python 3.10+ installed on your system
- A Google Gemini API key (free tier available at ai.google.dev)
- Git for cloning the repository
- An MCP client such as Claude Desktop
Clone the repository
Download the GEPA MCP server source code from GitHub.
git clone https://github.com/developzir/gepa-mcp.git
cd gepa-mcpRun the install script
The included install.sh script sets up the Python virtual environment and installs all dependencies.
./install.shObtain a Gemini API key
Go to ai.google.dev, sign in with your Google account, and create a Gemini API key. Copy it for the next step. The default model used is gemini-1.5-flash.
Configure Claude Desktop
Add the GEPA server to your claude_desktop_config.json with your Gemini API key and optional parameters for model, temperature, and optimization budget.
{
"mcpServers": {
"gepa": {
"command": "python",
"args": ["/path/to/gepa-mcp/server.py"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
"GEMINI_MODEL": "gemini-1.5-flash",
"TEMPERATURE": "0.7",
"DEFAULT_BUDGET": "10"
}
}
}
}Restart Claude Desktop and test
Fully quit and relaunch Claude Desktop. Ask Claude to optimize a prompt using the quick_prompt_improve tool to verify connectivity.
GEPA Examples
Client configuration
Claude Desktop configuration for the GEPA server with Gemini API access.
{
"mcpServers": {
"gepa": {
"command": "python",
"args": ["/Users/you/gepa-mcp/server.py"],
"env": {
"GEMINI_API_KEY": "AIzaSyYOUR_GEMINI_KEY",
"GEMINI_MODEL": "gemini-1.5-flash",
"TEMPERATURE": "0.7",
"DEFAULT_BUDGET": "10"
}
}
}
}Prompts to try
Example prompts that exercise the three GEPA optimization tools.
- "Use quick_prompt_improve to enhance this prompt: 'Summarize the following article'"
- "Optimize this classification prompt using training examples: seed='Classify the sentiment of this review', examples=[{input:'Great product!', keywords:['positive']},{input:'Terrible quality', keywords:['negative']}]"
- "Use conversational_optimize to refine my current prompt based on the last few exchanges"Troubleshooting GEPA
Server fails to start with 'GEMINI_API_KEY not set' error
Ensure GEMINI_API_KEY is included in the env block of your claude_desktop_config.json and that you have fully restarted Claude Desktop after editing the config file.
Optimization runs slowly or times out
Reduce the DEFAULT_BUDGET environment variable (try 5 instead of 10) or lower the budget parameter when calling optimize_prompt. The budget controls how many evolutionary generations are run, directly impacting runtime.
install.sh fails with permission errors
Run chmod +x install.sh before executing it. If Python dependencies fail to install, ensure pip is available and try running pip install -r requirements.txt manually inside the cloned directory.
Frequently Asked Questions about GEPA
What is GEPA?
GEPA is a Model Context Protocol (MCP) server that mcp server integrating gepa (genetic-evolutionary prompt architecture) for automatic prompt optimization with claude desktop It connects AI assistants to external tools and data sources through a standardized interface.
How do I install GEPA?
Follow the installation instructions on the GEPA GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with GEPA?
GEPA works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is GEPA free to use?
Yes, GEPA is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
GEPA Alternatives — Similar Data Science & ML Servers
Looking for alternatives to GEPA? Here are other popular data science & ml servers you can use with Claude, Cursor, and VS Code.
Ultrarag
★ 5.6kA Low-Code MCP Framework for Building Complex and Innovative RAG Pipelines
RocketRide
★ 3.1k📇 🏠 - MCP server that exposes RocketRide AI pipelines as t
Aix Db
★ 2.1kAix-DB 基于 LangChain/LangGraph 框架,结合 MCP Skills 多智能体协作架构,实现自然语言到数据洞察的端到端转换。
NeMo Data Designer
★ 1.9k🎨 NeMo Data Designer: Generate high-quality synthetic data from scratch or from seed data.
PaperBanana
★ 1.7kOpen source implementation and extension of Google Research’s PaperBanana for automated academic figures, diagrams, and research visuals, expanded to new domains like slide generation.
MiniMax
★ 1.5kBridges MiniMax AI capabilities to the Model Context Protocol, enabling AI agents to perform image understanding, text-to-image generation, and speech synthesis. It provides a standardized interface for accessing MiniMax's core tools via JSON-RPC.
Browse More Data Science & ML MCP Servers
Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up GEPA in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use GEPA?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.