Mercury Spec Ops MCP Server: Prompts and Resources as Tools

The first MCP server to expose dynamic, AI-invocable tools for prompt generation and template assembly.
Transform how AI assistants interact with specialized content. Instead of static prompts and resources, Mercury Spec Ops provides 6 programmable tools that enable AI to dynamically generate technology-specific prompts and comprehensive templates on-demand. Built on a sophisticated modular architecture with 31 technology stacks, 10 analysis dimensions, and 34 template sectionsβall accessible through simple tool calls.
Features
This MCP server provides a modular, extensible architecture with:
Prompts (Enhanced with Enum Support)
- PRD Prompt - Generate Product Requirements Document with modular technology-specific analysis
- Codebase Analysis Prompt - Analyze codebases with modular technology/focus-specific analysis
- Bug Analysis Prompt - Analyze bugs with modular severity/technology-specific analysis
Resources (Modular Templates)
- PRD Template - Modular PRD template with technology-specific sections
- Codebase Analysis Template - Modular codebase analysis template with technology/focus-specific sections
- Bug Analysis Template - Modular bug analysis template with severity/technology-specific sections
Key Capabilities
Enum-Based Input Validation
- Technology Stack (31 total):
- Languages (11): JavaScript, TypeScript, Python, Java, Go, Rust, C#, PHP, Ruby, Swift, Kotlin
- Runtimes (1): Node.js
- Frontend (3): React, Angular, Vue
- Backend (7): Express, NestJS, Django, Flask, Spring, Laravel, Rails
- Databases (4): MongoDB, PostgreSQL, MySQL, Redis
- Cloud (3): AWS, Azure, GCP
- DevOps (2): Docker, Kubernetes
- Analysis Focus (10 total): architecture, security, performance, testing, documentation, maintainability, scalability, reliability, code-quality, dependencies
- Bug Severity (4 total): low, medium, high, critical
- Target Audience: developers, business-users, enterprise, startup, healthcare, finance, and more
Programmatic Prompt Assembly
- Base prompts + 31 technology modules + 10 focus modules + 4 severity modules
- Automatic module selection based on input parameters
- Priority-based module ordering
- Multi-value support: Analyze multiple technologies and focus areas simultaneously
- Comma-separated input: "node.js,react,postgresql" or "security,performance,code-quality"
- Custom instruction integration
- Intelligent fallback to base prompts
Modular Template System
- Template sections with dependency resolution
- Technology-specific template sections
- Focus-specific template sections
- Custom section support
Installation
Option 1: Local Development
- Clone and install dependencies:
git clone https://github.com/n0zer0d4y/mercury-spec-ops.git
cd mercury-spec-ops
npm install
npm run build
- Run the server locally:
Option 2: Install from npm
npm install -g @n0zer0d4y/mercury-spec-ops
Or use directly with npx (no installation required):
npx @n0zer0d4y/mercury-spec-ops
Usage
Integration with MCP Clients
Configure the server in your MCP client (Claude Desktop, Cursor, etc.):
Using npx (Recommended - No Installation)
For Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"mercury-spec-ops": {
"command": "npx",
"args": ["-y", "@n0zer0d4y/mercury-spec-ops"]
}
}
}
For Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"mercury-spec-ops": {
"timeout": 60,
"type": "stdio",
"command": "npx",
"args": ["-y", "@n0zer0d4y/mercury-spec-ops"]
}
}
}
Using Local Installation
For Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"mercury-spec-ops": {
"command": "node",
"args": ["/path/to/mercury-spec-ops/dist/src/server.js"]
}
}
}
For Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"mercury-spec-ops": {
"timeout": 60,
"type": "stdio",
"command": "node",
"args": ["/path/to/mercury-spec-ops/dist/src/server.js"]
}
}
}
Windows Local Path Example (Cursor):
{
"mcpServers": {
"mercury-spec-ops": {
"timeout": 60,
"type": "stdio",
"command": "node",
"args": [
"C:\\Development\\Projects\\MCP-Servers\\mercury-spec-ops\\dist\\src\\server.js"
]
}
}
}
Important Notes:
- npx: Automatically fetches the latest version from npm (recommended for most users)
- Local: Replace the path with your actual project location and run
npm run build first
- Restart: Restart your MCP client after configuration changes
Workflow Examples
Example 1: Enhanced Codebase Analysis
- User Prompt: "Analyze this Node.js/TypeScript codebase focusing on security and performance"
- Claude Desktop Action:
- Calls the
codebase-analysis-prompt with technology_stack: "node.js,typescript" and analysis_focus: "security,performance"
- System programmatically assembles: base prompt + Node.js module + TypeScript module + security module + performance module
- The prompt instructs Claude to first read the
resource://codebase-analysis-template
- Template builder assembles: base template + Node.js sections + TypeScript sections + security sections + performance sections
- Claude reads the dynamically assembled template
- Claude analyzes the codebase and generates a comprehensive technology-specific report
Example 2: Enhanced Bug Analysis
- User Prompt: "Analyze this critical security bug in React application"
- Claude Desktop Action:
- Calls the
bug-analysis-prompt with technology_stack: "react", severity_level: "critical", and bug_type: "security"
- System assembles: base prompt + React module + security module + critical severity module
- Template includes: general sections + React-specific + security-specific + critical-severity sections
- Claude reads the bug analysis template
- Claude analyzes the bug and generates a comprehensive technology and severity-specific report
Example 3: PRD Generation with Technology Support
- User Prompt: "Help me create a PRD for a React-based task management application"
- Claude Desktop Action:
- Calls the
prd-prompt with project details and technology_stack: "react"
- System assembles: base prompt + React module
- Template builder includes: base PRD template + React-specific considerations
- Claude reads the technology-enhanced PRD template
- Claude generates a comprehensive PRD with React-specific sections
Prompt Details
PRD Prompt
- Name:
prd-prompt
- Arguments:
project_name (required): Name of the software project
project_description (required): Brief description of the project
target_audience (optional): Target audience for the product (enum values)
project_type (optional): Type of project (enum values)
key_features (optional): Key features to include in the PRD
technology_stack (optional): Technology stack to be used (enum values)
custom_instructions (optional): Custom instructions for PRD generation
Codebase Analysis Prompt
- Name:
codebase-analysis-prompt
- Arguments:
repository_path (required): Path to the repository to analyze
technology_stack (required): Technology stack used in the codebase (enum values)
analysis_focus (optional): Focus areas for analysis (enum values)
custom_instructions (optional): Custom instructions for codebase analysis
Bug Analysis Prompt
- Name:
bug-analysis-prompt
- Arguments:
repository_path (required): Path to the repository with bugs to analyze
bug_description (required): Description of the bug or issue to analyze
affected_components (optional): Components affected by the bug
severity_level (optional): Severity level of the bug (enum values)
bug_type (optional): Type of bug (enum values)
technology_stack (optional): Technology stack used in the affected components (enum values)
custom_instructions (optional): Custom instructions for bug analysis
Resource Details
PRD Template
- URI:
resource://prd-template
- Format: Markdown
- Content: Modular PRD template with technology-specific sections that dynamically assemble based on input parameters
Codebase Analysis Template
- URI:
resource://codebase-analysis-template
- Format: Markdown
- Content: Modular codebase analysis template with technology and focus-specific sections that assemble based on analysis parameters
Bug Analysis Template