A Model Context Protocol (MCP) server that refines your prompts using PromptArchitect's AI-powered prompt engineering. Simply pass your current prompt and get an improved version back. Works with: Claude Desktop • VS Code (Copilot) • Cursor • Windsurf • Zed • JetBrains IDEs • Continue.dev • Cline Unlike generic prompt tools, PromptArchitect understands your project context. When refining prompts,
Add this skill
npx mdskills install MerabyLabs/promptarchitect-mcpWell-documented MCP server with three useful prompt engineering tools and excellent IDE integration examples
A Model Context Protocol (MCP) server that refines your prompts using PromptArchitect's AI-powered prompt engineering. Simply pass your current prompt and get an improved version back.
Works with: Claude Desktop • VS Code (Copilot) • Cursor • Windsurf • Zed • JetBrains IDEs • Continue.dev • Cline
Unlike generic prompt tools, PromptArchitect understands your project context. When refining prompts, it considers:
This means prompts are tailored to your specific codebase, not generic boilerplate.
| Tool | Description |
|---|---|
refine_prompt | Improve your current prompt based on feedback and your workspace context |
analyze_prompt | Evaluate prompt quality with scores and improvement suggestions |
generate_prompt | Transform a raw idea into a well-structured prompt tailored to your project |
npm install @merabylabs/promptarchitect-mcp
Or install globally:
npm install -g @merabylabs/promptarchitect-mcp
PromptArchitect MCP server works with any IDE or application that supports the Model Context Protocol. Below are configuration examples for popular editors.
No API key required! The MCP server uses the PromptArchitect backend API, so you don't need your own Gemini API key.
Add to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"promptarchitect": {
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
}
}
}
Add to your VS Code settings.json (Cmd/Ctrl+Shift+P → "Preferences: Open Settings (JSON)"):
{
"github.copilot.chat.mcp.servers": {
"promptarchitect": {
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
}
}
}
Add to your Cursor MCP settings:
~/.cursor/mcp.json%USERPROFILE%\.cursor\mcp.json{
"mcpServers": {
"promptarchitect": {
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
}
}
}
Add to your Windsurf MCP configuration:
~/.codeium/windsurf/mcp_config.json%USERPROFILE%\.codeium\windsurf\mcp_config.json{
"mcpServers": {
"promptarchitect": {
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
}
}
}
Add to your Zed settings:
~/.config/zed/settings.json~/.config/zed/settings.json{
"context_servers": {
"promptarchitect": {
"command": {
"path": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
},
"settings": {}
}
}
}
Works with IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, GoLand, RubyMine, CLion, DataGrip, Rider, Android Studio.
{
"mcpServers": {
"promptarchitect": {
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
}
}
}
Or add to .idea/mcp.json in your project.
Add to your Continue configuration:
~/.continue/config.json.continue/config.json{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"]
}
}
]
}
}
Open Cline Settings → MCP Servers, or edit cline_mcp_settings.json:
{
"mcpServers": {
"promptarchitect": {
"command": "npx",
"args": ["@merabylabs/promptarchitect-mcp"],
"disabled": false
}
}
}
Any application supporting MCP can use this server. The standard configuration is:
| Property | Value |
|---|---|
| Command | npx |
| Args | ["@merabylabs/promptarchitect-mcp"] |
For global installation, use promptarchitect-mcp as the command after running:
npm install -g @merabylabs/promptarchitect-mcp
import { refinePrompt, analyzePrompt } from '@promptarchitect/mcp-server';
// Refine an existing prompt
const result = await refinePrompt({
prompt: 'Write code to sort an array',
feedback: 'Make it more specific about language and edge cases',
});
console.log(result.refinedPrompt);
// => "Write a TypeScript function that sorts an array of numbers..."
// Analyze prompt quality
const analysis = await analyzePrompt({
prompt: 'Help me with my code',
});
console.log(analysis.scores); // { overall: 45, clarity: 50, ... }
console.log(analysis.suggestions); // ["Be more specific about...", ...]
| Variable | Required | Description |
|---|---|---|
LOG_LEVEL | No | Logging level: debug, info, warn, error. Default: info |
Improve an existing prompt based on feedback. This is the primary tool.
Input:
{
"prompt": "Write code",
"feedback": "Make it more specific and add examples",
"preserveStructure": true
}
Output:
{
"refinedPrompt": "Write a TypeScript function that...",
"changes": ["Added specificity", "Included example"],
"metadata": {
"originalWordCount": 2,
"refinedWordCount": 45
}
}
Evaluate prompt quality and get improvement suggestions.
Input:
{
"prompt": "You are a helpful assistant. Help me write code."
}
Output:
{
"scores": {
"overall": 65,
"clarity": 70,
"specificity": 50,
"structure": 60,
"actionability": 80
},
"suggestions": [
"Add more specific details about the code",
"Include examples of expected output"
],
"strengths": ["Clear action verb"],
"weaknesses": ["Lacks specificity"]
}
Transform a raw idea into a well-structured prompt.
Input:
{
"idea": "Create a code review assistant",
"template": "coding",
"context": "For TypeScript projects"
}
Output:
{
"prompt": "You are a senior code reviewer...",
"metadata": {
"template": "coding",
"wordCount": 150,
"hasStructure": true
}
}
npm install
npm run build
npm test
npm start
mcp-server/
├── src/
│ ├── tools/ # MCP tools (refine, analyze, generate)
│ ├── resources/ # Template library for reference
│ ├── utils/ # Gemini client, logger
│ ├── server.ts # MCP server configuration
│ ├── cli.ts # CLI entry point
│ └── index.ts # Main exports
└── examples/ # Configuration examples
Proprietary - © 2025 Meraby Labs. All rights reserved.
This software is provided for use exclusively with the PromptArchitect service. Unauthorized copying, modification, distribution, or use outside the intended scope is prohibited.
Install via CLI
npx mdskills install MerabyLabs/promptarchitect-mcpMerabylabs/promptarchitect MCP is a free, open-source AI agent skill. A Model Context Protocol (MCP) server that refines your prompts using PromptArchitect's AI-powered prompt engineering. Simply pass your current prompt and get an improved version back. Works with: Claude Desktop • VS Code (Copilot) • Cursor • Windsurf • Zed • JetBrains IDEs • Continue.dev • Cline Unlike generic prompt tools, PromptArchitect understands your project context. When refining prompts,
Install Merabylabs/promptarchitect MCP with a single command:
npx mdskills install MerabyLabs/promptarchitect-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
Merabylabs/promptarchitect MCP works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.