Claude Code Prompt Engineer MCP Server logo

Claude Code Prompt Engineer MCP Server

Community
gr3enarr0w

Claude Code Prompt Engineer MCP Server

Publishergr3enarr0w
Repositorycc_peng_mcp
LanguageJavaScript
Forks
4
Stars
12
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Claude Code Prompt Engineer MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 4 forks from the linked repository.

Claude Code Prompt Engineer MCP Server

An advanced Model Context Protocol (MCP) server that intelligently engineers and optimizes prompts for Claude Code, with interactive refinement capabilities and automatic optimization.

Features

🚀 Intelligent Prompt Engineering

  • Automatically detects programming language and task type
  • Optimizes prompts specifically for Claude Code's capabilities
  • Leverages knowledge of Claude Code's tools and workflows

🤖 Interactive Refinement

  • Q&A-based prompt clarification system
  • Context-aware question generation
  • Session-based refinement process

⚡ Automatic Optimization

  • Language-specific prompt enhancement
  • Task complexity detection
  • Claude Code capability awareness
  • No external API dependencies - works entirely with built-in capabilities

Installation & Setup

1. Install Dependencies

bash
npm install

2. Configure Claude Code

Create or update your .mcp.json configuration file:

json
{
  "mcpServers": {
    "prompt-engineer": {
      "command": "node",
      "args": ["/absolute/path/to/cc_peng_mcp/index.ts"],
      "env": {}
    }
  }
}

3. Restart Claude Code

bash
# Exit current session and start new one
claude

4. Verify Installation

bash
/mcp

You should see prompt-engineer listed as connected.

Usage with Claude Code

🎯 Auto-Optimization (Primary Usage)

Simply use the tools directly - no setup required:

Use the auto_optimize tool to analyze: "fix my React app performance issues"

Interactive Mode for Complex Requests

Use the engineer_prompt tool with interactive=true for: "create a new authentication system"

Direct Prompt Engineering

Use the engineer_prompt tool with prompt="optimize my database queries" and language="python"

Available Tools

auto_optimize ⭐ Primary Tool

Automatically detects and optimizes natural language text:

  • text (required): Your natural language text/request
  • context (optional): Additional project context
  • interactive (optional): Force interactive questioning

engineer_prompt

Manual prompt engineering with specific parameters:

  • prompt (required): The raw user prompt that needs engineering
  • language (optional): Programming language (auto-detected if not provided)
  • context (optional): Additional project context
  • interactive (optional): Enable Q&A refinement process

answer_questions

Used to provide answers during interactive sessions:

  • sessionId (required): Session ID from interactive mode
  • answers (required): Array of answers to the questions

How It Works

1. Natural Language Detection

The system automatically identifies when your text is natural language that needs optimization by detecting:

  • Request patterns: "help me", "can you", "i need", "i want"
  • Problem descriptions: "issue", "bug", "not working", "broken"
  • Task indicators: "create", "build", "fix", "optimize"
  • Questions: "how do", "what is", "why is"
  • Conversational markers: "i'm", "i think", "not sure"

2. Built-in Intelligence

  • No API calls required - uses pattern matching and rule-based optimization
  • Language detection via regex patterns for 10+ programming languages
  • Task type detection (debug, test, refactor, explain, architecture)
  • Complexity analysis based on text length and technical indicators

3. Claude Code Optimization

Prompts are optimized knowing Claude Code's capabilities:

  • File system operations (Read, Write, Edit)
  • Code search (Grep, Glob patterns)
  • Git operations and workflow management
  • Todo list management for complex tasks
  • Browser automation via Playwright MCP
  • GitHub integration

4. Interactive Refinement

When needed, the system:

  • Generates clarifying questions based on your prompt
  • Creates a session to track the conversation
  • Refines the prompt based on your answers
  • Delivers a highly optimized final prompt

Example Workflows

🎯 Auto-Optimization Example

Input:

"my website is slow and users are complaining"

Auto-Optimized Output:

**Task:** Debug and fix the following issue:

my website is slow and users are complaining

**Requirements:**
- Use file search tools (Grep/Glob) to locate relevant code
- Read and analyze the problematic files
- Identify the root cause and implement a fix
- Test the solution if possible

**Ready to proceed with this task?**

🤖 Interactive Mode Example

Input: "make my app better"

Questions Generated:

  1. What specific aspect needs improvement (performance, readability, maintainability)?
  2. What technology stack or programming language are you using?
  3. Are there any constraints or requirements I should know about?

After Answers: Creates detailed, structured prompt with your specific requirements.

Benefits

✅ No Setup Required: Works immediately after MCP configuration
✅ No API Keys: Uses only built-in Claude Code capabilities
✅ Context Aware: Understands your project and requirements
✅ Interactive: Asks clarifying questions when needed
✅ Systematic: Structures complex requests properly
✅ Fast: No external API calls for instant optimization

Requirements

  • Node.js 16+
  • TypeScript support (tsx recommended)
  • Claude Code CLI
  • No external API keys required

Technical Details

Supported Languages

  • JavaScript/Node.js, TypeScript, Python, Java, C++, Rust, Go, PHP, Ruby, C#/.NET

Task Types

  • Debug: Bug fixing and error resolution
  • Test: Unit testing and test creation
  • Refactor: Code improvement and restructuring
  • Explain: Code explanation and documentation
  • Architecture: System design and patterns
  • Code: General coding tasks (default)

Architecture

  • Pure pattern matching - no machine learning models
  • Rule-based optimization - deterministic and fast
  • Session management - for interactive conversations
  • Built-in language detection - regex-based patterns

License

MIT License - feel free to modify and distribute.

Installation Guide

See INSTALL.md for detailed installation instructions, troubleshooting, and advanced configuration options.

Installation

TypingMind
{
  "mcpServers": {
    "cc-peng-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/cc_peng_mcp/index.ts"
      ]
    }
  }
}

Use Claude Code Prompt Engineer MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Claude Code Prompt Engineer MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Claude Code Prompt Engineer MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Claude Code Prompt Engineer MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cc-peng-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "claude-code-prompt-engineer-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Claude Code Prompt Engineer MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Claude Code Prompt Engineer MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Claude Code Prompt Engineer MCP Server to help me with this task?
Claude Code Prompt Engineer MCP Server
Sure. I read it.
Here is what I found using Claude Code Prompt Engineer MCP Server.

Frequently asked questions

What is the Claude Code Prompt Engineer MCP Server MCP server used for?

Claude Code Prompt Engineer MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Claude Code Prompt Engineer MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Claude Code Prompt Engineer MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Claude Code Prompt Engineer MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Claude Code Prompt Engineer MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Claude Code Prompt Engineer MCP Server MCP to TypingMind?

Claude Code Prompt Engineer MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Claude Code Prompt Engineer MCP Server MCP provide in TypingMind?

Claude Code Prompt Engineer MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Claude Code Prompt Engineer MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Claude Code Prompt Engineer MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇