Skip to main content
Glama
Expert Role Prompt MCP

Expert Role Prompt MCP

README.md
# Expert Role Prompt MCP

[![MCP](https://img.shields.io/badge/MCP-1.0-blue)](https://modelcontextprotocol.io/)
[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![Node](https://img.shields.io/badge/Node-18%2B-brightgreen)](https://nodejs.org)
[![Claude Desktop](https://img.shields.io/badge/Claude-Desktop-orange)](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 community

TDQS

B3.3/5.0

Scored across 10 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues