Mobo4/bmad-prompt
If you are the rightful owner of bmad-prompt and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The BMAD Prompt Engineering MCP Server is a comprehensive solution designed to transform raw prompts into business-aligned, strategic prompts using the BMAD-first workflow, ensuring quality assurance and optimal agent recommendations.
BMAD Prompt Engineering MCP Server
A comprehensive Model Context Protocol (MCP) server that enforces BMAD-first workflow by transforming raw prompts into business-aligned, strategic prompts with built-in quality assurance and agent recommendations.
๐ฏ What is BMAD-First Workflow?
BMAD (Business Method Analysis & Design) is a strategic framework that ensures every task begins with comprehensive business analysis before implementation. This MCP server enforces BMAD methodology by:
- Strategic Analysis First - Understanding the true business objective
- Stakeholder Impact Assessment - Identifying who benefits and who's affected
- Business Value Identification - Defining measurable outcomes
- Success Metrics Definition - Establishing clear success criteria
- Risk Assessment - Identifying and mitigating potential issues
- Agent Delegation - Recommending optimal specialized agents
๐ Quick Start
NPX Usage (Recommended)
# Transform any raw prompt into BMAD-structured format
npx bmad-prompt transform "Create user authentication system"
# Interactive mode for guided prompt engineering
npx bmad-prompt interactive
# Validate existing prompts against BMAD standards
npx bmad-prompt validate "Your existing prompt here"
# Get specialized agent recommendations
npx bmad-prompt suggest "Your BMAD prompt" --complexity complex
# View comprehensive examples
npx bmad-prompt example
Local Installation
npm install -g bmad-prompt-engineer
bmad-prompt --help
๐ Features
๐ Prompt Transformation
- Converts raw prompts into BMAD-structured strategic prompts
- Analyzes business context and stakeholder impact
- Generates success metrics and risk assessments
- Provides actionable next steps
โ Prompt Validation
- Validates prompts against BMAD compliance standards
- Provides detailed scoring and improvement recommendations
- Identifies missing strategic elements
- Ensures business alignment before execution
๐ค Agent Recommendations
- Suggests optimal specialized agents based on task analysis
- Provides execution sequences for complex multi-agent workflows
- Adjusts recommendations based on task complexity
- Integrates with existing agent ecosystems
โก AI Consensus Priority Setting
- Determines appropriate quality thresholds for AI Consensus System
- Analyzes business impact and risk levels
- Provides priority-based execution recommendations
- Ensures quality standards match business criticality
๐ ๏ธ MCP Server Integration
Claude Desktop Configuration
Add to your Claude Desktop config.json
:
{
"mcpServers": {
"bmad-prompt-engineer": {
"command": "npx",
"args": ["bmad-prompt-engineer"],
"env": {}
}
}
}
Available MCP Tools
transform_prompt
Transforms raw prompts into BMAD-structured strategic prompts.
Parameters:
raw_prompt
(required): The raw prompt to transformcontext
(optional): Additional business contexturgency
(optional): Urgency level (low, medium, high, critical)
validate_prompt
Validates prompts against BMAD standards.
Parameters:
prompt
(required): The prompt to validate
suggest_agents
Recommends specialized agents for BMAD-structured prompts.
Parameters:
bmad_prompt
(required): BMAD-structured prompttask_complexity
(optional): Task complexity level
set_priority
Determines AI Consensus priority based on BMAD analysis.
Parameters:
bmad_analysis
(required): BMAD strategic analysisbusiness_impact
(optional): Business impact levelrisk_level
(optional): Risk assessment level
๐ Usage Examples
Basic Transformation
npx bmad-prompt transform "Build a dashboard" --context "Healthcare analytics platform" --urgency high
Output:
BMAD Analyst, provide comprehensive strategic analysis for: Build a dashboard
Include:
1. True objective analysis (what we're really achieving)
2. Stakeholder impact assessment (Customers, Management, IT Department)
3. Business value identification (Customer Experience, Operational Efficiency)
4. Success metrics definition (how we know we succeeded)
5. Risk assessment and mitigation strategies
6. Optimal agent delegation sequence with reasoning
Context: Healthcare analytics platform
Task Category: technical_implementation
Priority Level: high
This analysis should drive purposeful, value-driven execution aligned with business objectives.
Validation Example
npx bmad-prompt validate "Just create a login form"
Output:
โ NEEDS IMPROVEMENT (17%)
Missing BMAD Elements:
โข Strategic Analysis
โข Stakeholder Focus
โข Business Value
โข Success Metrics
โข Risk Assessment
Recommendations:
โข Add clear objective statement and strategic context
โข Identify key stakeholders and their interests
โข Define specific business value and expected outcomes
Agent Suggestions
npx bmad-prompt suggest "BMAD analysis for healthcare authentication system" --complexity complex
Output:
Primary Agents:
โข healthcare-security-specialist
โข fhir-hl7-integration-specialist
โข security-guardian
โข sql-express-database-expert
Supporting Agents:
โข performance-optimization-engineer
โข test-commander
โข audit-log-sanitizer
Execution Sequence:
1. healthcare-security-specialist
2. security-guardian
3. sql-express-database-expert
4. test-commander
๐๏ธ Project Structure
prompt-engineer-mcp/
โโโ src/
โ โโโ index.js # Main MCP server implementation
โโโ bin/
โ โโโ cli.js # Command-line interface
โโโ tests/
โ โโโ test-server.js # Comprehensive test suite
โโโ examples/
โ โโโ prompt-examples.md # Detailed usage examples
โโโ package.json # NPM configuration
โโโ README.md # This file
๐งช Testing
Run the comprehensive test suite:
npm test
Test specific functionality:
# Test transformation
node tests/test-server.js
# Test CLI interface
npx bmad-prompt example
๐ง Development
Local Development Setup
git clone <repository-url>
cd prompt-engineer-mcp
npm install
npm run dev
Running as MCP Server
npm start
Building for Distribution
npm run build
๐ Quality Thresholds
The server automatically sets AI Consensus quality thresholds based on BMAD analysis:
- Critical Priority: 95% threshold (Security, compliance, revenue-critical)
- Important Priority: 85% threshold (Customer-facing, strategic initiatives)
- Normal Priority: 75% threshold (Internal tools, optimization)
๐ Integration with AI Consensus System
After BMAD transformation, use with AI Consensus System:
# 1. Transform with BMAD
npx bmad-prompt transform "Your task" --urgency high
# 2. Use transformed prompt in AI Consensus
cd /path/to/ai-consensus-system
python3 run.py demo --task "BMAD Analyst, provide..." --priority important
# 3. Implement with validated approach
๐จ Agent Ecosystem Integration
Compatible with the following agent systems:
- Personal Agents (
~/.claude/agents/
) - Project Agents (
/project/.claude/agents/
) - UI-Registered Agents (
/claude-config/agents/
)
Automatically recommends agents based on:
- Task domain (Healthcare, Finance, Technology, etc.)
- Complexity level (Simple, Moderate, Complex, Enterprise)
- Business context and requirements
- Security and compliance needs
๐ Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Run tests (
npm test
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the file for details.
๐ Acknowledgments
- Built with @modelcontextprotocol/sdk
- Implements BMAD (Business Method Analysis & Design) framework
- Integrates with AI Consensus System for quality validation
- Compatible with Claude Desktop MCP protocol
๐ Support
- ๐
- ๐ Issue Tracker
- ๐ฌ Discussions
๐ Version History
- v1.0.0 - Initial release with full BMAD workflow enforcement
- Complete MCP server implementation
- Command-line interface with interactive mode
- Comprehensive test suite
- Agent recommendation system
- AI Consensus priority integration
Made with โค๏ธ by Claude AI - Enforcing strategic thinking in every prompt