refine-prompt
Refine Prompt
Documentation
โจ Refine Prompt โจ
Transform ordinary prompts into powerful, structured instructions for any LLM
โข
โข
โข
โข
โข
๐ 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"`
๐ Installation
๐ฆ Via NPM
npm install refine-prompt๐ ๏ธ Via Smithery
You can install this MCP server directly through Smithery by visiting:
๐ 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 |
|---|---|---|
| `prompt` | Your raw prompt that needs refinement (must include "refine" keyword) | โ |
| `language` | For code-related prompts, specify the target programming language | โ |
๐ Example Usage
For general prompts
{
"name": "rewrite_prompt",
"arguments": {
"prompt": "refine, Summarize the main points of the article titled \"The Future of AI\""
}
}For code-related prompts
{
"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:
1. ๐ Adding clear structure and context
2. ๐ Specifying requirements and expectations
3. ๐ Including domain-specific considerations
4. ๐ Optimizing for any LLM understanding
โจ Features
โ๏ธ Configuration
๐ฅ๏ธ Usage with Claude Desktop
Add this to your `claude_desktop_config.json`:
NPX
{
"mcpServers": {
"refine-prompt": {
"command": "npx",
"args": [
"-y",
"refine-prompt"
]
}
}
}Local Installation
# 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
Input
Arguments
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
Input
Arguments
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.
Frequently asked questions
What is refine-prompt?
refine-prompt is Refine Prompt
How do I install refine-prompt?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is refine-prompt open source?
Yes โ it is hosted on GitHub at https://github.com/FelippeFarias/refine-prompt and has 3 stars.
Related MCP tools
๐ฅ Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
ๆ้ข MCP Server ๅฏไปฅ่ฎฉ AI ่ชๅจๅฐ Markdown ๆ็ซ ๆ็ๅๅๅธ่ณๅพฎไฟกๅ ฌไผๅทใ
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP