Simple Prompt Optimizer
БесплатноНе проверенTransforms user prompts into optimized versions using the CO-STAR framework with instant improvement and deep critique-and-refine modes.
Описание
Transforms user prompts into optimized versions using the CO-STAR framework with instant improvement and deep critique-and-refine modes.
README
Turn vague ideas into perfect prompts instantly.
A lightweight, robust, and fast Model Context Protocol (MCP) server designed to optimize prompts using state-of-the-art frameworks like CO-STAR and Chain-of-Thought critique.
🚀 Why use this?
Most "prompt improvers" are slow or hallucinate. This MCP server:
- Uses OpenRouter to access top-tier models (like Llama 3.1 405B or Claude 3.5 Sonnet) for optimization.
- Implements Proven Frameworks: Applies the CO-STAR method (Context, Objective, Style, Tone, Audience, Response) for reliable results.
- Critiques Before rewriting: The
deep_optimizetool analyzes your prompt's weaknesses before fixing them. - Fast: Built on
FastMCPfor minimal latency.
✨ Features
1. instant_improve
Best for: Daily tasks, quick fixes. Rapidly enhances prompts using structured best practices.
- Inputs:
prompt,task_type(coding, writing, etc.),detailed(bool). - Output: A polished, ready-to-use prompt.
2. deep_optimize
Best for: Complex architecture, critical implementations, debugging. Performs a sophisticated Critique & Refine loop:
- Analyzes your draft for ambiguity and missing constraints.
- Plans a strategy to fix it.
- Rewrites the prompt to perfection.
📦 Installation
Prerequisites
- Python 3.10 or higher
- uv (recommended) or pip
Steps
Clone the repository:
git clone https://github.com/Chumbayoumba/simple-prompt-optimizer.git cd simple-prompt-optimizerInstall dependencies:
# Using uv (Recommended) uv sync # OR using pip pip install .
⚙️ Configuration
You need an API key from OpenRouter to power the optimization.
- Create a
.envfile in the project root:cp .env.example .env - Add your credentials:
Note: You can changeOPENAI_API_KEY=sk-or-your-key-here... OPENAI_BASE_URL=https://openrouter.ai/api/v1 LLM_MODEL=nousresearch/hermes-3-llama-3.1-405b:freeLLM_MODELto any model supported by OpenRouter (e.g.,anthropic/claude-3.5-sonnet).
💻 Usage with Claude Desktop
To use this MCP server with Claude Desktop, add the following to your claude_desktop_config.json:
Windows
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"simple-prompt-optimizer": {
"command": "uv",
"args": [
"run",
"server.py"
],
"cwd": "C:\\path\\to\\simple-prompt-optimizer",
"env": {
"OPENAI_API_KEY": "sk-or-your-key...",
"LLM_MODEL": "nousresearch/hermes-3-llama-3.1-405b:free"
}
}
}
}
Note: Make sure to replace C:\\path\\to\\... with your actual absolute path.
🛠️ Development
Run the server locally for testing:
uv run server.py
# The server will start and listen on stdio
📄 License
MIT License. Free to use and modify.
⭐ If you find this tool useful, please give it a star on GitHub!
Установка Simple Prompt Optimizer
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/chumbayoumba/simple-prompt-optimizerFAQ
Simple Prompt Optimizer MCP бесплатный?
Да, Simple Prompt Optimizer MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Simple Prompt Optimizer?
Нет, Simple Prompt Optimizer работает без API-ключей и переменных окружения.
Simple Prompt Optimizer — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Simple Prompt Optimizer в Claude Desktop, Claude Code или Cursor?
Открой Simple Prompt Optimizer на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Simple Prompt Optimizer with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
