Skip to main content
Glama
Prompt Ops MCP

Prompt Ops MCP

by heyjustinai

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

Related MCP server: PromptTuner MCP

Installation

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

Available Tools

1 tool
promptenhancerA

A prompt optimization tool that guides you through transforming basic prompts into comprehensive, well-structured prompts.

How it works:

  1. First call: Provide an originalPrompt to receive optimization guidelines

  2. The LLM follows the guidelines to create an optimized version

  3. Second call: Provide the optimizedPrompt to get it ready for use

This tool uses a meta-prompting approach where the LLM does the actual optimization work.

Inputs: originalPrompt, optimizedPrompt.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'promptenhancer' has a clearly distinct and singular purpose: transforming basic prompts into optimized versions through a guided two-step process.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'promptenhancer' follows a clear and descriptive pattern, combining the target domain ('prompt') with the action ('enhancer'), and there are no other tools to cause inconsistency.

    Tool Count2/5

    The server has only one tool, which feels thin for a server named 'Prompt Ops MCP' that might imply broader prompt operations. While the tool is well-described, a single tool limits the scope and could indicate incomplete coverage, as agents might expect more functionalities like prompt analysis, validation, or management.

    Completeness2/5

    The tool set is severely incomplete for the implied domain of prompt operations. It only offers enhancement via a specific meta-prompting approach, lacking other essential operations such as prompt validation, versioning, comparison, or basic CRUD management. This gap will likely cause agent failures when broader prompt-related tasks are needed.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Analyzes, refines, and optimizes prompts for AI assistants by fixing grammar, improving clarity, applying best practices like chain-of-thought and few-shot learning, and scoring prompt quality across multiple dimensions.
      3
      37 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Refines and optimizes prompts for LLMs through adaptive questioning and intelligent clarification workflows. Supports multiple AI providers (Google, OpenAI, Anthropic, Groq, Qwen) with interactive prompt enhancement and targeted modifications.
      18 PyPI
      17
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Automatically analyzes and optimizes AI prompts by calculating clarity scores, detecting risks, asking clarifying questions, and adding domain-specific requirements to improve AI interaction quality.
      1
      MIT