DEV Community

James Murrell
James Murrell

Posted on

From Problem to Solution: Creating Prompt Refiner

Building Prompt Refiner: An MCP Extension for Better AI Prompts

The Problem

As a Business Analyst, I use Claude daily for requirements documentation, user stories, and stakeholder communications. But I found myself constantly rewriting prompts to get better results.

The cycle was frustrating:

  • Write a prompt
  • Get okay results
  • Rewrite to be more specific
  • Get better results
  • Realize I should have been more concise
  • Rewrite again...

I needed a faster way.

The Solution

I built Prompt Refiner - an MCP extension that instantly shows you 4 refined versions of any prompt:

  1. Concise - Direct and to the point
  2. Detailed - Rich with context
  3. Creative - Encourages imagination
  4. Analytical - Structured and logical

How It Works

  1. Ask Claude to refine your prompt
  2. See 4 variants instantly in a React artifact
  3. Click copy on your preferred variant
  4. Use it immediately

Technical Implementation

Built with:

  • Node.js MCP server
  • SQLite for history tracking
  • React artifacts for UI
  • Configurable storage system

Key Features

1. Configurable Storage

Perfect for enterprise environments. Store data on network drives, local folders, or in-memory.

2. Graceful Fallback

Works even on locked-down machines with automatic fallback.

3. History Tracking

All refinements saved for future reference.

Results

  • 5-minute setup
  • Zero external dependencies
  • Works entirely in Claude Desktop
  • Open source (MIT license)

Try It Yourself

GitHub: https://github.com/cs97jjm3/prompt-refiner

Conclusion

If you use AI in your workflow, prompt engineering is a skill worth developing. Prompt Refiner is a tool to help you get there faster.

What prompt engineering tools do you use? Share in the comments!

Top comments (0)