
prompt boost
一个通过增加上下文、示例或特定指令来增强AI提示的MCP服务器。
Repository Info
About This Server
一个通过增加上下文、示例或特定指令来增强AI提示的MCP服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Prompt Enhancer MCP Server
A Model Context Protocol (MCP) server that enhances AI agent capabilities by augmenting prompts with additional context, examples, or specialized instructions.
Overview
This MCP server provides tools for enhancing prompts to improve AI reasoning and response quality. It follows the Model Context Protocol specification and is compatible with Claude for Desktop and other MCP clients.
The server offers several enhancement strategies:
- Context Addition - Adds relevant contextual information to prompts
- Example Injection - Adds examples to help guide responses
- Instruction Refinement - Enhances instructions for better reasoning
- Domain Knowledge - Adds domain-specific information
Installation
Prerequisites
- Node.js 16 or higher
- npm or yarn
Setup
-
Clone the repository:
git clone https://github.com/chirag127/prompt-enhancer-mcp.git cd prompt-enhancer-mcp -
Install dependencies:
npm install -
Build the project:
npm run build
Usage
Starting the Server
To start the server:
npm start
Testing
To run the tests:
npm test
To run the tests with coverage:
npm run test:coverage
To run the tests in watch mode:
npm run test:watch
Configuration
You can configure the server by creating a config.json file in the root directory or by setting the CONFIG_PATH environment variable to point to a configuration file.
Example configuration:
{
"logLevel": "info",
"enabledEnhancers": ["context", "instruction"]
}
Configuration options:
logLevel: The logging level (error, warn, info, debug)enabledEnhancers: Array of enhancer names to enable (if empty, all enhancers are enabled)
Integrating with Claude for Desktop
To use this server with Claude for Desktop:
-
Make sure you have Claude for Desktop installed
-
Open the Claude for Desktop configuration file at:
- Windows:
%AppData%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
-
Add the server configuration:
{
"mcpServers": {
"prompt-enhancer": {
"command": "node",
"args": ["C:/absolute/path/to/prompt-enhancer-mcp/dist/index.js"]
}
}
}
Replace C:\\absolute\\path\\to with the actual path to your server.
- Restart Claude for Desktop
Available Tools
enhance-prompt
Enhances a prompt by adding context, examples, or specialized instructions.
Parameters:
prompt(string): The original prompt to enhancestrategy(string): The enhancement strategy to use (context, example, instruction, domain-knowledge)options(object, optional): Strategy-specific options
Example usage in Claude:
I need to enhance this prompt: "Explain quantum computing" using the context strategy.
list-enhancers
Lists all available prompt enhancement strategies.
Example usage in Claude:
What enhancement strategies are available in the prompt enhancer?
Enhancement Strategies
Context
Adds relevant contextual information to prompts.
Options:
contextType: "general" | "technical" | "creative" | "analytical" (default: "general")depth: "minimal" | "moderate" | "extensive" (default: "moderate")includeDefinitions: boolean (default: true)includeBackground: boolean (default: true)
Example
Adds examples to help guide responses.
Options:
exampleCount: number (default: 2)exampleType: "simple" | "detailed" | "diverse" (default: "simple")position: "before" | "after" (default: "before")
Instruction
Enhances instructions for better reasoning and clarity.
Options:
instructionType: "clarity" | "reasoning" | "structure" | "comprehensive" (default: "clarity")addStepByStep: boolean (default: true)addReasoning: boolean (default: true)
Domain Knowledge
Adds domain-specific information to prompts.
Options:
domain: string (required)depth: "basic" | "intermediate" | "advanced" (default: "intermediate")includeTerminology: boolean (default: true)includePrinciples: boolean (default: true)
License
MIT
Author
Chirag Singhal (@chirag127)
Quick Start
Clone the repository
git clone https://github.com/chirag127/prompt-boostInstall dependencies
cd prompt-boost
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.