Refine Prompt
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Refine Prompt refine, write a Python script to automate weekly email reports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📋 Overview
Refine Prompt is an intelligent prompt engineering tool that transforms ordinary prompts into powerful, structured instructions for any large language model (LLM). Using Claude's advanced capabilities, it enhances your prompts to produce exceptional results across all AI platforms.
🔑 Important: Your prompt must include the keyword "refine" to activate the enhancement process.
Example:
"refine, Create a function that calculates the factorial of a number"
Related MCP server: prompte-mcp
🚀 Installation
📦 Via NPM
npm install refine-prompt🛠️ Via Smithery
You can install this MCP server directly through Smithery by visiting: Smithery - Refine Prompt
📁 Via Local Repository
# Clone the repository
git clone https://github.com/felippefarias/refine-prompt.git
cd refine-prompt
# Install dependencies
npm install🏁 Getting Started
🔑 API Key Setup
Refine Prompt requires an Anthropic API key to access Claude's advanced capabilities:
export ANTHROPIC_API_KEY=your_anthropic_api_keyWithout an API key, the tool will display an error message.
⚙️ Running the Server
npm startOr with MCP Inspector:
npx @modelcontextprotocol/inspector npm start🔧 Tool: rewrite_prompt - The Power of Refinement
Transform your ideas into expertly crafted prompts. This powerful tool analyzes your input and generates a professionally engineered prompt that maximizes AI understanding and response quality.
📝 Parameters
Parameter | Description | Required |
| Your raw prompt that needs refinement (must include "refine" keyword) | ✅ |
| For code-related prompts, specify the target programming language | ❌ |
📋 Example Usage
{
"name": "rewrite_prompt",
"arguments": {
"prompt": "refine, Summarize the main points of the article titled \"The Future of AI\""
}
}{
"name": "rewrite_prompt",
"arguments": {
"prompt": "refine, Create a function to convert temperature between Celsius and Fahrenheit",
"language": "typescript"
}
}🧠 How It Works
The server uses Claude 3 Sonnet by Anthropic to intelligently rewrite your prompts for better results. Every prompt must include the keyword "refine" to trigger the enhancement process.
It enhances your prompt by:
📐 Adding clear structure and context
📝 Specifying requirements and expectations
🔍 Including domain-specific considerations
🌐 Optimizing for any LLM understanding
✨ Features
Feature | Description |
🤖 AI-Powered Refinement | Leverages Claude 3.5 Sonnet's advanced capabilities to transform your prompts |
🔑 Activation with Keywords | Simply include "refine" in your prompt to trigger the enhancement |
🌐 Universal Compatibility | Optimizes prompts for any type of task or domain |
💻 Code-Specific Intelligence | Provides specialized enhancements for programming tasks when language is specified |
🔄 Seamless Integration | Works flawlessly with any LLM-powered application or workflow |
🎯 Precision-Focused | Uses 0.2 temperature setting to ensure reliable, consistent output quality |
📊 Structural Clarity | Adds logical organization, clear instructions, and proper formatting |
⚙️ Configuration
🖥️ Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"refine-prompt": {
"command": "npx",
"args": [
"-y",
"refine-prompt"
]
}
}
}# Clone the repository
git clone https://github.com/felippefarias/refine-prompt.git
cd refine-prompt
# Install dependencies
npm install
# Run the server
node index.js📊 Examples
📝 General Prompt Enhancement
refine, Summarize the main points of the article titled "The Future of AI"{
"prompt": "refine, Summarize the main points of the article titled \"The Future of AI\""
}💻 Code-Related Prompt Enhancement
refine, Create a function that sorts an array of objects by a specific property{
"prompt": "refine, Create a function that sorts an array of objects by a specific property",
"language": "typescript"
}The tool will rewrite both prompts to be more structured and detailed for optimal results with any LLM.
🚀 Elevate Your AI Interactions
Refine Prompt bridges the gap between human thinking and AI understanding. By transforming your natural language instructions into expertly engineered prompts, it helps you unlock the full potential of any language model. Whether you're a developer, content creator, researcher, or AI enthusiast, Refine Prompt gives you the power to communicate with AI more effectively.
📄 License
Refine Prompt is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Available Tools
1 toolrefine_promptA
This tool MUST be used whenever a user asks to refine, rewrite, improve, enhance, or optimize a prompt. It transforms raw prompts into more effective versions that are clearer, more detailed, and better structured to improve results from Large Language Models (LLMs). When users mention 'refine prompt' or similar phrases, use this tool.
Inputs: prompt (required), language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap with other tools. The tool's purpose is clearly defined and distinct by default.
The single tool name 'refine_prompt' follows a consistent verb_noun pattern, and there are no other tools to create inconsistency.
A single tool feels thin for a server named 'Refine Prompt', as it suggests a narrow scope with no additional functionality like versioning, history, or batch processing. This is borderline too few for a dedicated server.
The tool covers the core action of refining prompts, but there are notable gaps such as no ability to list, retrieve, or manage previous refinements, which limits workflow completeness for a prompt refinement domain.
Maintenance
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP server for generating rough-draft project plans from natural-language prompts.
Cloudflare Workers MCP server: ai-prompt-optimizer
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that transforms vague prompts into platform-optimized prompts for 58 AI platforms across 7 categories. Send a raw prompt. Get back a version specifically optimized for Midjourney, DALL-E, Sora, Runway, ElevenLabs, Claude, ChatGPT, or any of the 58 supported platforms — with the right syntax, parameters, and structure each platform expects.23129 npm13Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that automatically enhances user prompts by applying advanced engineering techniques like chain-of-thought and few-shot reasoning based on identified intent. It optimizes technique selection through local learning and integrates directly into Claude sessions to improve output quality without additional API costs.6MIT
- AlicenseAqualityDmaintenanceAn advanced MCP server that intelligently enhances prompts using 44+ metaprompt strategies, with LLM-driven strategy selection and enterprise-grade features.853 npm9MIT
- AlicenseAqualityDmaintenanceAn MCP server for deterministic prompt optimization in Claude Code. Score prompts across 7 quality dimensions, auto-select from 11 Anthropic techniques, and return a structural scaffold.129 npm2MIT