# MCP Prompt Optimizer

Professional MCP server for AI prompt optimization with smart tier-aware features, template management, and advanced analytics. Starting at $2.99/month.

## 🚀 Quick Start

**1. Install the MCP server:**
```bash
npm install -g mcp-prompt-optimizer
```

**2. Get your API key:**
Visit [https://promptoptimizer-blog.vercel.app/pricing](https://promptoptimizer-blog.vercel.app/pricing) to sign up and get your API key.

**3. Configure Claude Desktop:**
Add to your `~/.claude/claude_desktop_config.json`:
```json
{
  "mcpServers": {
    "prompt-optimizer": {
      "command": "npx",
      "args": ["mcp-prompt-optimizer"],
      "env": {
        "OPTIMIZER_API_KEY": "sk-opt-your-key-here"
      }
    }
  }
}
```

**4. Restart Claude Desktop** and start optimizing prompts!

## 💰 Pricing Plans

### Explorer - $2.99/month
- ✅ 5,000 optimizations per month
- ✅ Basic prompt optimization
- ✅ Community support

### Creator - $25.99/month  
- ✅ 18,000 optimizations per month
- ✅ Auto-save templates for high-confidence prompts
- ✅ Template search and management
- ✅ Email support

### Innovator - $69.99/month
- ✅ 75,000 optimizations per month
- ✅ Advanced analytics and insights
- ✅ Priority processing
- ✅ Enterprise features

🆓 **Free Trial:** 5 optimizations included with every new account

## ✨ Features by Tier

**All Tiers:**
- High-quality AI prompt optimization
- Multiple optimization goals (clarity, conciseness, creativity, specificity, etc.)
- AI context awareness (code, writing, technical, etc.)
- Professional reliability and uptime

**Creator & Innovator Tiers:**
- 🔄 **Automatic template saving** for high-confidence optimizations (>70% confidence)
- 🔍 **Smart template search** - Find similar templates from your library
- 📚 **Template management** - Build your optimization knowledge base

**Innovator Tier Exclusive:**
- 📊 **Advanced optimization insights** with performance metrics
- 🧠 **AI-powered recommendations** for continuous improvement
- 📈 **Usage analytics** and optimization patterns
- 🎯 **Precision metrics** (clarity, specificity improvements)

## 📊 Example Responses

### Explorer Tier ($2.99/mo)
```
🎯 Optimized Prompt

Create a comprehensive blog post about artificial intelligence that explores current applications, potential benefits, existing challenges, and future implications.

Confidence: 87.3%
Plan: Explorer

---
🚀 Basic professional optimization
💡 Upgrade to Creator for auto-save templates and similar template search
```

### Creator Tier ($25.99/mo)
```
🎯 Optimized Prompt

Create a comprehensive blog post about artificial intelligence that explores current applications, potential benefits, existing challenges, and future implications.

Confidence: 87.3%
Plan: Creator

✅ Auto-saved as template (ID: tmp_abc123)
High-confidence optimization automatically saved for future use

📋 Similar Templates Found
1. AI Article Writing Template (92.1% similarity)
2. Technical Blog Post Structure (85.6% similarity)

Creator+ feature: Access your template library for consistent optimization

---
🎨 Optimization + Template management
```

### Innovator Tier ($69.99/mo)
```
🎯 Optimized Prompt

Create a comprehensive blog post about artificial intelligence that explores current applications, potential benefits, existing challenges, and future implications.

Confidence: 87.3%
Plan: Innovator

✅ Auto-saved as template (ID: tmp_abc123)

📋 Similar Templates Found
1. AI Article Writing Template (92.1% similarity)
2. Technical Blog Post Structure (85.6% similarity)

📊 Advanced Optimization Insights

Performance Analysis:
- Clarity improvement: +21.9%
- Specificity boost: +17.3%
- Length optimization: +15.2%

Prompt Analysis:
- Complexity level: intermediate
- Optimization confidence: 87.3%

AI Recommendations:
- Template automatically saved for future reference
- Consider using more specific examples

Innovator feature: Advanced analytics and improvement recommendations

---
🧠 Optimization + Templates + Advanced insights
```

## 🔧 MCP Client Support

### Claude Desktop
```json
{
  "mcpServers": {
    "prompt-optimizer": {
      "command": "npx",
      "args": ["mcp-prompt-optimizer"],
      "env": {
        "OPTIMIZER_API_KEY": "sk-opt-your-key-here"
      }
    }
  }
}
```

### Cursor IDE
Add to `~/.cursor/mcp.json`:
```json
{
  "mcpServers": {
    "prompt-optimizer": {
      "command": "npx", 
      "args": ["mcp-prompt-optimizer"],
      "env": {
        "OPTIMIZER_API_KEY": "sk-opt-your-key-here"
      }
    }
  }
}
```

### Windsurf
Configure in IDE settings or add to MCP configuration file.

### Cline
Use standard MCP configuration with the server settings above.

## 🎯 How It Works

1. **Install once** - `npm install -g mcp-prompt-optimizer`
2. **Configure with API key** - Add to your MCP client config
3. **Use anywhere** - Works with all MCP-compatible clients
4. **Smart backend** - Automatically provides tier-appropriate features
5. **Template management** - Auto-saves high-quality optimizations (Creator+)
6. **Advanced insights** - Performance analytics and recommendations (Innovator)

## 🛠️ Usage

Once configured, use the optimize tool in your MCP client:

```
Please optimize this prompt: "Write a blog post about AI"
```

The server automatically:
1. Optimizes your prompt for clarity and effectiveness
2. Auto-saves as template if high confidence (Creator/Innovator)
3. Searches for similar templates (Creator/Innovator)
4. Provides optimization insights (Innovator)
5. Shows upgrade suggestions for your tier

## 🎨 Optimization Goals

- **clarity** - Make prompts clearer and more understandable
- **conciseness** - Remove unnecessary words while preserving meaning
- **creativity** - Enhance creative and imaginative aspects
- **specificity** - Add specific details and concrete examples
- **actionability** - Make prompts more directive and actionable

## 🤖 AI Context Support

- **human_communication** - Emails, letters, social content
- **llm_interaction** - General LLM conversations (default)
- **image_generation** - Image/art generation prompts
- **technical_automation** - DevOps, system administration
- **structured_output** - JSON, data formats, templates
- **code_generation** - Programming and development
- **api_automation** - API calls, integrations

## 🔐 Security & Privacy

- API keys are validated server-side
- Quotas enforced automatically
- Template data encrypted at rest (Creator/Innovator)
- Professional-grade security and uptime
- GDPR compliant data handling

## 📈 Smart Features

### Automatic Template Saving (Creator/Innovator)
High-confidence optimizations (>70%) are automatically saved as templates for future use.

### Template Search (Creator/Innovator)
Find similar prompts from your template library to maintain consistency across projects.

### Optimization Insights (Innovator)
Get detailed analytics on:
- Performance improvements
- Clarity and specificity metrics
- AI-powered recommendations
- Usage patterns and trends

## 🏢 Team Features

All plans support team API keys for collaborative optimization:
- Shared template libraries
- Team quota management
- Centralized billing
- Usage analytics across team members

## 📞 Support

- **Community Support:** Explorer tier
- **Email Support:** Creator & Innovator tiers
- **Priority Support:** Innovator tier
- **Enterprise:** enterprise@promptoptimizer.help

## 🚀 Getting Started

1. **Sign up** at [promptoptimizer-blog.vercel.app/pricing](https://promptoptimizer-blog.vercel.app/pricing)
2. **Install** the MCP server: `npm install -g mcp-prompt-optimizer`
3. **Configure** your MCP client with your API key
4. **Start optimizing** - the backend handles everything automatically!

## 🌐 Links

- **Pricing & Signup:** https://promptoptimizer-blog.vercel.app/pricing
- **Dashboard:** https://promptoptimizer-blog.vercel.app/dashboard
- **Documentation:** https://promptoptimizer-blog.vercel.app/docs

---

**Professional MCP Server** - Built for serious AI development with smart tier-aware features, substantial monthly quotas, and advanced template management.