MCP cover image
See in Github
2025-03-30

使用提示工程师MCP服务器编写10倍更好的提示。

1

Github Watches

3

Github Forks

2

Github Stars

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.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

    Reviews

    4 (1)
    Avatar
    user_FP2tY0Be
    2025-04-16

    I’ve been using the prompt-engineer-mcp-server by hireshBrem and it has drastically improved my workflow. The seamless integration and efficient processing capabilities make it a top choice for developers. Highly recommend checking it out at https://github.com/hireshBrem/prompt-engineer-mcp-server. Excellent tool!