Expert Role Prompt MCP
# Expert Role Prompt MCP
[](https://modelcontextprotocol.io/)
[](LICENSE)
[](https://nodejs.org)
[](https://claude.ai)
Advanced expert role simulation and prompt enhancement MCP (Model Context Protocol) for Claude Desktop. Access 50 specialized expert personas to enhance your AI interactions with domain-specific expertise and reasoning frameworks.
## π Features
- **50 Expert Roles**: Comprehensive coverage across engineering, business, creative, scientific, and educational domains
- **Advanced Reasoning Chains**: Each expert applies domain-specific analytical frameworks
- **Confidence Scoring**: Intelligent expert matching with confidence metrics
- **Constitutional AI Principles**: Built-in safety and ethical guidelines
- **Zero Cost**: Runs entirely locally - no API costs
- **Instant Response**: No network latency, immediate expert selection
- **Workflow Templates**: Pre-built reasoning patterns for common tasks
## π Expert Categories
### Engineering (12 experts)
- Backend Engineer, Frontend Engineer, AI/ML Engineer
- Data Engineer, Security Engineer, DevOps Engineer
- Cloud Architect, Mobile Developer, QA Engineer
- Database Administrator, Blockchain Developer, Game Developer
### Business & Product (10 experts)
- Product Manager, Business Analyst, Marketing Manager
- Sales Executive, Financial Analyst, HR Manager
- Operations Manager, Strategy Consultant, Customer Success Manager
- Supply Chain Manager
### Creative & Design (8 experts)
- UX/UI Designer, Graphic Designer, Content Writer
- Video Editor, Social Media Manager, Brand Strategist
- Copywriter, Creative Director
### Science & Research (8 experts)
- Data Scientist, Research Scientist, Bioinformatician
- Statistician, Economist, Physicist
- Chemist, Environmental Scientist
### Education & Training (6 experts)
- Teacher, Corporate Trainer, Curriculum Designer
- E-Learning Specialist, Academic Researcher, Career Counselor
### Other Specialists (6 experts)
- Legal Advisor, Healthcare Professional, Project Manager
- Technical Writer, System Administrator, Prompt Engineer
## π Installation
### Via NPM (Recommended)
```bash
npm install -g expert-role-prompt-mcp
```
### Manual Installation
```bash
git clone https://github.com/justmy2satoshis/expert-role-prompt-mcp.git
cd expert-role-prompt-mcp
npm install
```
## π§ Configuration
Add to your Claude Desktop configuration file:
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"expert-role-prompt": {
"command": "node",
"args": ["C:\\path\\to\\expert-role-prompt-mcp\\src\\server.js"],
"env": {}
}
}
}
```
Or if installed globally via npm:
```json
{
"mcpServers": {
"expert-role-prompt": {
"command": "npx",
"args": ["-y", "expert-role-prompt-mcp"],
"env": {}
}
}
}
```
## π Usage Examples
### Basic Expert Nomination
```javascript
// Request an expert for your task
const expert = await nominate_expert({
task_description: "Design a scalable microservices architecture for an e-commerce platform",
context: "High-traffic, global users, multiple payment providers"
});
// Returns:
// {
// expert: "Backend Engineer",
// confidence: 92%,
// reasoning: "Strong domain alignment with microservices, APIs, distributed systems"
// }
```
### Enhance Prompt with Expert Knowledge
```javascript
const enhanced = await enhance_prompt({
expert_id: "backend-engineer",
task_description: "Optimize database query performance",
reasoning_type: "technical"
});
// Returns enhanced prompt with:
// - Domain-specific analysis framework
// - Best practices and tools
// - Step-by-step approach
// - Risk mitigation strategies
```
### List Available Experts
```javascript
const experts = await list_expert_roles({
category: "engineering" // optional filter
});
// Returns list of experts with capabilities
```
## π‘ Use Cases
### Software Development
- Architecture design and code review
- Performance optimization recommendations
- Security vulnerability assessment
- Testing strategy development
### Business Strategy
- Market analysis and competitive positioning
- Product roadmap planning
- Financial modeling and forecasting
- Customer acquisition strategies
### Content Creation
- Technical documentation writing
- Marketing copy optimization
- Educational content development
- Brand messaging refinement
### Research & Analysis
- Data analysis and visualization
- Statistical modeling approaches
- Research methodology design
- Literature review strategies
## ποΈ Architecture
```
expert-role-prompt-mcp/
βββ src/
β βββ server.js # Main MCP server
β βββ experts/
β β βββ roles.js # Expert role definitions
β β βββ frameworks.js # Reasoning frameworks
β βββ matcher.js # Expert matching logic
β βββ enhancer.js # Prompt enhancement
βββ examples/ # Usage examples
βββ tests/ # Test suite
βββ package.json
```
## π° Cost Comparison
| Solution | Monthly Cost | Response Time | Privacy |
|----------|-------------|---------------|---------|
| **Expert Role MCP** | $0 (Local) | <100ms | Full |
| GPT-4 with prompts | $50-200 | 2-5s | Limited |
| Claude API | $40-150 | 1-3s | Limited |
| Multiple AI subscriptions | $100+ | Varies | Limited |
**Savings**: $50-200/month while maintaining expert-quality responses
## π§ͺ Testing
```bash
npm test
```
Run the comprehensive test suite including:
- Expert matching accuracy
- Confidence scoring validation
- Framework application tests
- Edge case handling
## π€ Contributing
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
### Adding New Experts
1. Define the expert role in `src/experts/roles.js`
2. Add specialized frameworks in `src/experts/frameworks.js`
3. Update confidence scoring logic if needed
4. Add tests for the new expert
5. Submit a pull request
## π Performance Metrics
- **Expert Selection**: <50ms average
- **Prompt Enhancement**: <100ms average
- **Memory Usage**: <50MB
- **Accuracy**: 85%+ expert-task alignment
- **Coverage**: 50 expert roles across 6 categories
## π Security
- No external API calls
- No data transmission
- Runs entirely in local Claude Desktop environment
- No sensitive data storage
- Constitutional AI principles built-in
## π License
MIT License - see [LICENSE](LICENSE) file for details
## π Acknowledgments
- Anthropic for the Model Context Protocol specification
- Claude Desktop team for MCP integration
- Community contributors and testers
## π§ Support
- **Issues**: [GitHub Issues](https://github.com/justmy2satoshis/expert-role-prompt-mcp/issues)
- **Discussions**: [GitHub Discussions](https://github.com/justmy2satoshis/expert-role-prompt-mcp/discussions)
- **Updates**: Watch this repository for updates
## π¦ Status
- β
Production Ready
- β
All 50 experts functional
- β
Comprehensive test coverage
- β
Documentation complete
- β
Claude Desktop compatible
---
**Note**: This MCP requires Claude Desktop with MCP support enabled. It does not work with the web version of Claude.
Built with β€οΈ for the Claude communityTDQS
Scored across 10 tools
Most tools have clearly distinct purposes: role discovery (list_expert_roles, get_expert_capabilities), matching (nominate_expert), and workflow operations are separable. However, test_confidence overlaps with nominate_expert (both concern confidence scoring for expert matching), and execute_workflow vs chain_workflows vs apply_reasoning require careful reading to distinguish.
Every tool follows a consistent verb_noun snake_case pattern (nominate_expert, enhance_prompt, list_expert_roles, get_expert_capabilities, execute_workflow, apply_reasoning, create_custom_workflow, chain_workflows, list_workflows). No mixed conventions or vague verbs.
Ten tools is well within the ideal 3-15 range and each maps to a coherent capability (expert discovery, matching, prompt enhancement, reasoning, workflow lifecycle). No obvious redundancy inflating the count.
The core lifecycle is covered: discover roles, get details, nominate, enhance prompts, list/create/execute/chain workflows, and apply reasoning. Minor gaps existβcustom workflows can be created but not updated, deleted, or fetched individually, which limits management of user-created templates.