Bubobot-Team/mcp-prompt-optimizer

★ 25⑂ 5

Advanced MCP server providing cutting-edge prompt optimization tools with research-backed strategies

About Bubobot-Team/mcp-prompt-optimizer

Bubobot-Team/mcp-prompt-optimizer is an open-source project on GitHub, mainly written in Python. Advanced MCP server providing cutting-edge prompt optimization tools with research-backed strategies It currently holds 25 stars and 5 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository Bubobot-Team/mcp-prompt-optimizer · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

MCP Prompt Optimizer

Python 3.8+ License: MIT MCP Compatible

A professional-grade MCP (Model Context Protocol) server that provides cutting-edge prompt optimization tools with research-backed strategies delivering 15-74% performance improvements.

✨ Features

🎯 Basic Optimization Strategies

🚀 Advanced Optimization Strategies

📋 Professional Domain Templates

Production-ready templates across 11 domains:

🛠️ Installation

Quick Setup

# Clone the repository
git clone 
cd mcp-prompt-optimizer

Create virtual environment (recommended)

python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

Install dependencies

./install.sh

Or install manually

pip install -r requirements.txt

Configure Claude Desktop

python3 setup_interactive.py

Manual Configuration

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "prompt-optimizer": {
      "command": "python3",
      "args": ["/path/to/mcp-prompt-optimizer/prompt_optimizer.py"],
      "env": {}
    }
  }
}

🎮 Usage

Basic Commands

# Analyze prompt quality
"Analyze this prompt: write a blog post about AI"

Apply specific optimization

"Optimize this prompt using chain_of_thought: explain machine learning"

Auto-select best strategy

"Auto-optimize: help me debug this code"

Get domain template

"Get domain template for code_review_checklist"

Advanced Commands

# Use Tree of Thoughts for complex problems
"Apply advanced optimization with tree_of_thoughts: design a microservices architecture"

Use Constitutional AI for safety-critical tasks

"Apply advanced optimization with constitutional_ai: create content moderation guidelines"

Use Medprompt for high-accuracy classification

"Apply advanced optimization with medprompt: categorize customer support tickets"

List available templates

"List all domain templates"

🏗️ Architecture

mcp-prompt-optimizer/
├── prompt_optimizer.py      # Main MCP server
├── advanced_strategies.py   # Research-backed optimization strategies
├── domain_templates.py      # Professional domain templates
├── examples.py              # Usage examples and demonstrations
├── setup_interactive.py     # Automated setup script
└── README.md               # This file

🧪 Testing

# Run basic tests
./test.sh

Run usage examples

python3 examples.py

📊 Performance Benchmarks

| Strategy | Use Case | Performance Improvement | | ----------------- | --------------------- | ----------------------- | | Tree of Thoughts | Complex reasoning | 70-74% success rate | | Medprompt | Classification tasks | 90%+ accuracy | | Self-Refine | Iterative improvement | 20% per iteration | | Constitutional AI | Safety alignment | High compliance | | Chain of Thought | Step-by-step tasks | 15-25% improvement |

🔧 Available Tools

Core Tools

1. analyze_prompt: Analyzes prompt quality and identifies issues 2. optimize_prompt: Applies specific optimization strategies 3. auto_optimize: Automatically selects optimal strategy 4. get_prompt_template: Returns basic templates

Advanced Tools

5. advanced_optimize: Applies research-backed strategies 6. get_domain_template: Returns professional domain templates 7. list_domain_templates: Lists available templates by domain

🎯 Strategy Selection Guide

| Prompt Type | Recommended Strategy | | -------------------- | -------------------- | | Complex problems | tree_of_thoughts | | Classification tasks | medprompt | | Safety-critical | constitutional_ai | | Vague requirements | meta_prompting | | Needs refinement | self_refine | | General optimization | auto |

🤝 Contributing

We welcome contributions! Please:

1. Fork the repository 2. Create a feature branch 3. Add tests for new functionality 4. Update documentation 5. Submit a pull request

Adding New Features

🐛 Troubleshooting

Common Issues

MCP not working?

Commands not recognized?

Debug Mode

# Test server directly
python3 prompt_optimizer.py

Verbose logging

export MCP_LOG_LEVEL=debug python3 prompt_optimizer.py

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📈 Citation

If you use this tool in your research or projects, please cite:

@software{mcp_prompt_optimizer,
  title={MCP Prompt Optimizer: Research-Backed Prompt Optimization for AI Systems},
  author={Bubobot},
  year={2024},
  url={https://github.com/Bubobot-Team/mcp-prompt-optimizer}
}

---

Built with ❤️ for the AI community

For questions, issues, or contributions, please visit our GitHub repository.

GitHub Stars & Activity

25Stars
5Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars25
Forks5
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

Significant-Gravitas / AutoGPT

Python★ 187,469⑂ 46,006▲ 27 stars
2

docling-project / docling

Python★ 67,466⑂ 4,869▲ 585 stars
3

openai / openai-python

Python★ 31,666⑂ 5,904▲ 6 stars
4

harvard-edge / cs249r_book

Python★ 28,390⑂ 3,591▲ 28 stars
5

browser-use / browser-harness

Python★ 17,893⑂ 1,750▲ 87 stars
6

FareedKhan-dev / train-llm-from-scratch

Python★ 10,474⑂ 1,450▲ 265 stars
7

zhouxiaoka / autoclip

Python★ 7,934⑂ 1,551▲ 395 stars
8

More AI Rankings