Prompt Ops MCP

Prompt Ops MCP

Optimizes prompts using meta-prompting techniques through a two-turn approach that first provides optimization guidelines and then refines the prompt for enhanced quality and effectiveness.

Category
Visit Server

README

Prompt Ops MCP

A streamlined Model Context Protocol (MCP) server that optimizes prompts using meta-prompting techniques. This server can be easily integrated into Cursor and other MCP-compatible tools to enhance prompt quality and effectiveness.

Features

  • Two-Turn Prompt Optimization: Transform basic prompts into sophisticated, structured requests using a simple two-turn approach
  • Meta-Prompting Technique: Leverages the LLM's capabilities to apply optimization guidelines
  • MCP Integration: Seamlessly integrates with Cursor and other MCP-compatible tools
  • TypeScript: Built with TypeScript for type safety and better development experience

Installation

Via NPM (Recommended)

npm install -g prompt-ops-mcp

From Source

git clone <repository-url>
cd prompt-ops-mcp
npm install
npm run build

Usage

Integration with Cursor

Add the following to your Cursor MCP settings:

{
  "mcpServers": {
    "prompt-optimizer": {
      "command": "npx",
      "args": ["prompt-ops-mcp"]
    }
  }
}

Direct Usage

# Run the server
npx prompt-ops-mcp

# Or if installed globally
prompt-ops-mcp

How It Works: Two-Turn Optimization

The prompt optimizer uses a simple two-turn approach:

  1. Turn 1: Provide your original prompt → Receive optimization guidelines
  2. Turn 2: Provide the optimized prompt → Get it ready for use

Available Tool: promptenhancer

Parameters:

  • originalPrompt: The prompt you want to optimize (for Turn 1)
  • optimizedPrompt: The optimized prompt created by following the guidelines (for Turn 2)

Example Usage (Turn 1):

@prompt-ops promptenhancer {"originalPrompt": "Write a Python function to calculate fibonacci numbers"}

Example Usage (Turn 2):

@prompt-ops promptenhancer {"optimizedPrompt": "Your optimized prompt here..."}

Optimization Guidelines

The meta-prompting framework includes guidance for:

  1. Clarifying Intent and Scope: Making implicit requirements explicit
  2. Adding Structure and Organization: Breaking complex requests into clear sections
  3. Enhancing with Reasoning Elements: Including step-by-step thinking instructions
  4. Providing Context and Examples: Adding relevant background information
  5. Setting Quality Standards: Defining success criteria and constraints

Example Transformation

See example-two-turn.md for a complete example of the two-turn optimization process.

Development

Setup

git clone <repository-url>
cd prompt-ops-mcp
npm install

Development Scripts

# Run in development mode
npm run dev

# Build the project
npm run build

# Run tests
npm run test

# Lint code
npm run lint

# Format code
npm run format

Project Structure

src/
├── index.ts              # Main MCP server implementation
├── prompt-optimizer.ts   # Core prompt optimization logic
└── types.ts             # TypeScript type definitions

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Run npm run lint and npm run format
  6. Submit a pull request

License

MIT License - see LICENSE file for details

Support

For issues and questions:

Changelog

v1.0.0

  • Initial release with two-turn prompt optimization
  • Full MCP integration support

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured