![]()
β¨ Refine Prompt β¨
Transform ordinary prompts into powerful, structured instructions for any LLM
Installation β’ Getting Started β’ How It Works β’ Features β’ Examples β’ License
π 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: 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_key
Without an API key, the tool will display an error message.
βοΈ Running the Server
npm start
Or 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:
- π 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:
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 |
|---|---|
| |
π» Code-Related Prompt Enhancement
| Input | Arguments |
|---|---|
| |
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.
Refine Prompt
Project Details
- felippefarias/refine-prompt
- MIT License
- Last Updated: 4/28/2025
Recomended MCP Servers
Model Context Protocol Servers
π MCP aggregator for batching multiple tool calls into a single request. Reduces overhead, saves tokens, and simplifies...
Identify and fix common SEO tools in your project, without leaving Cursor/Claude.
Implement Discord MCP server enabling AI assistants to interact with the Discord platform.
π Model Context Protocol (MCP) Server for retrieving saved articles from Pocket API and loading them into Claude
A Model Context Protocol (MCP) server implementation that connects LLMs to the GeoServer REST API
Asset Price MCP Server





