Coding Prompt Engineer MCP Server

Coding Prompt Engineer MCP Server

Write 10x better prompts using Prompt Engineer MCP server.

hireshBrem

Developer Tools
Visit Server

README

Coding Prompt Engineer MCP Server

This Model Context Protocol (MCP) server provides a tool to rewrite coding prompts for optimal results with Cursor AI and other AI IDEs, using Claude by Anthropic.

Installation

npm install

Install via Smithery

You can install this MCP server directly through Smithery by visiting: https://smithery.ai/server/@hireshBrem/prompt-engineer-mcp-server

Usage

Setting Environment Variables

The server requires an Anthropic API key to use Claude for formatting. Set it as an environment variable:

export ANTHROPIC_API_KEY=your_anthropic_api_key

If no API key is provided, the server will throw an error indicating the missing API key.

Running the Server

npm start

Or with MCP Inspector:

npx @modelcontextprotocol/inspector npm start

Tool: rewrite_coding_prompt

This tool takes a raw prompt and rewrites it for optimal results with Cursor AI and other AI IDEs.

Parameters

  • prompt (required): The raw user's prompt that needs rewriting
  • language (required): The programming language of the code

Example Usage

{
  "name": "rewrite_coding_prompt",
  "arguments": {
    "prompt": "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. It enhances your prompt by:

  1. Adding clear structure and context
  2. Specifying requirements and expectations
  3. Including language-specific considerations
  4. Optimizing for AI IDE understanding

Features

  • Intelligent Prompt Engineering: Uses Claude 3 Sonnet to rewrite prompts for optimal results
  • Language-Aware: Customizes prompts based on target programming language
  • Easy Integration: Works seamlessly with Cursor and other AI IDEs
  • Low Temperature Setting: Uses 0.2 temperature for consistent, structured output

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

NPX

{
  "mcpServers": {
    "cursor-prompt-engineer": {
      "command": "npx",
      "args": [
        "-y",
        "cursor-prompt-engineer"
      ]
    }
  }
}

Local Installation

# Clone the repository
git clone https://github.com/yourusername/cursor-prompt-engineer.git
cd cursor-prompt-engineer

# Install dependencies
npm install

# Run the server
node index.js

Example

Input:

Create a function that sorts an array of objects by a specific property

With arguments:

{
  "prompt": "Create a function that sorts an array of objects by a specific property",
  "language": "typescript"
}

The tool will rewrite the prompt to be more structured and detailed for optimal results with your AI IDE.

License

This MCP server is licensed under the MIT License. This means 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.

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
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python