Coding Prompt Engineer MCP Server
by hireshBrem
Write 10x better prompts using Prompt Engineer MCP server.
What is Coding Prompt Engineer MCP Server
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 rewritinglanguage
(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:
- Adding clear structure and context
- Specifying requirements and expectations
- Including language-specific considerations
- 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.
Leave a Comment
Comments section will be available soon. Stay tuned!
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Fetch
Web content fetching and conversion for efficient LLM usage
Playwright
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
puppeteer-mcp-server
Puppeteer
Browser automation and web scraping
Playwright Universal MCP
A universal Playwright MCP server for browser automation in containerized environments
MCP Server Playwright
MCP Server Playwright - A browser automation service for Claude Desktop
OneNote MCP Server
MCP server for browsing and interacting with OneNote web app using browser-use automation
Playwright
๐ Fetcher MCP - Playwright Headless Browser Server
MCP server for fetch web page content using Playwright headless browser.
MCP Browser
NeoForge Browser MCP server - used to test the frontend
Submit Your MCP Server
Share your MCP server with the community
Submit Now