2025-08-18 11:58:55 +02:00
# SuperClaude MCP Servers Guide 🔌
## Overview
2025-08-21 19:03:25 +02:00
MCP (Model Context Protocol) servers extend Claude Code's capabilities through specialized tools. SuperClaude integrates 6 MCP servers and provides Claude with instructions on when to activate them based on your tasks.
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
### 🔍 Reality Check
- **What MCP servers are**: External Node.js processes that provide additional tools
- **What they aren't**: Built-in SuperClaude functionality
- **How activation works**: Claude reads instructions to use appropriate servers based on context
2025-08-22 19:18:44 +02:00
- **What they provide**: Real tools that extend Claude Code's native capabilities
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Core Servers:**
- **context7**: Official library documentation and patterns
- **sequential-thinking**: Multi-step reasoning and analysis
- **magic**: Modern UI component generation
- **playwright**: Browser automation and E2E testing
- **morphllm-fast-apply**: Pattern-based code transformations
- **serena**: Semantic code understanding and project memory
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
## Quick Start
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Setup Verification**: MCP servers activate automatically. For installation and troubleshooting, see [Installation Guide ](../Getting-Started/installation.md ) and [Troubleshooting ](../Reference/troubleshooting.md ).
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Auto-Activation Logic:**
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
| Request Contains | Servers Activated |
|-----------------|------------------|
| Library imports, API names | **context7** |
| `--think` , debugging | **sequential-thinking** |
| `component` , `UI` , frontend | **magic** |
| `test` , `e2e` , `browser` | **playwright** |
| Multi-file edits, refactoring | **morphllm-fast-apply** |
| Large projects, sessions | **serena** |
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
## Server Details
2025-08-18 11:58:55 +02:00
### context7 📚
2025-08-21 19:03:25 +02:00
**Purpose**: Official library documentation access
**Triggers**: Import statements, framework keywords, documentation requests
**Requirements**: Node.js 16+, no API key
2025-08-18 11:58:55 +02:00
```bash
# Automatic activation
2025-08-21 19:03:25 +02:00
/sc:implement "React authentication system"
# → Provides official React patterns
2025-08-18 11:58:55 +02:00
# Manual activation
/sc:analyze auth-system/ --c7
```
### sequential-thinking 🧠
**Purpose**: Structured multi-step reasoning and systematic analysis
2025-08-21 19:03:25 +02:00
**Triggers**: Complex debugging, `--think` flags, architectural analysis
**Requirements**: Node.js 16+, no API key
2025-08-18 11:58:55 +02:00
```bash
# Automatic activation
2025-08-21 19:03:25 +02:00
/sc:troubleshoot "API performance issues"
# → Enables systematic root cause analysis
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# Manual activation
/sc:analyze --think-hard architecture/
2025-08-18 11:58:55 +02:00
```
### magic ✨
2025-08-21 19:03:25 +02:00
**Purpose**: Modern UI component generation from 21st.dev patterns
**Triggers**: UI requests, `/ui` commands, component development
2025-08-22 19:18:44 +02:00
**Requirements**: Node.js 16+, TWENTYFIRST_API_KEY ()
2025-08-18 11:58:55 +02:00
```bash
# Automatic activation
2025-08-21 19:03:25 +02:00
/sc:implement "responsive dashboard component"
# → Generates accessible UI with modern patterns
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# API key setup
2025-08-18 11:58:55 +02:00
export TWENTYFIRST_API_KEY="your_key_here"
```
### playwright 🎭
2025-08-21 19:03:25 +02:00
**Purpose**: Real browser automation and E2E testing
**Triggers**: Browser testing, E2E scenarios, visual validation
**Requirements**: Node.js 16+, no API key
2025-08-18 11:58:55 +02:00
```bash
# Automatic activation
2025-08-21 19:03:25 +02:00
/sc:test --type e2e "user login flow"
# → Enables browser automation testing
2025-08-18 11:58:55 +02:00
# Manual activation
2025-08-21 19:03:25 +02:00
/sc:validate "accessibility compliance" --play
2025-08-18 11:58:55 +02:00
```
### morphllm-fast-apply 🔄
2025-08-21 19:03:25 +02:00
**Purpose**: Efficient pattern-based code transformations
**Triggers**: Multi-file edits, refactoring, framework migrations
2025-08-22 19:18:44 +02:00
**Requirements**: Node.js 16+, MORPH_API_KEY
2025-08-18 11:58:55 +02:00
```bash
# Automatic activation
/sc:improve legacy-codebase/ --focus maintainability
2025-08-21 19:03:25 +02:00
# → Applies consistent patterns across files
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# API key setup
2025-08-18 11:58:55 +02:00
export MORPH_API_KEY="your_key_here"
```
### serena 🧭
2025-08-21 19:03:25 +02:00
**Purpose**: Semantic code understanding with project memory
**Triggers**: Symbol operations, large codebases, session management
**Requirements**: Python 3.9+, uv package manager, no API key
2025-08-18 11:58:55 +02:00
```bash
# Automatic activation
/sc:load existing-project/
2025-08-21 19:03:25 +02:00
# → Builds project understanding and memory
2025-08-18 11:58:55 +02:00
# Manual activation
2025-08-21 19:03:25 +02:00
/sc:refactor "extract UserService" --serena
2025-08-18 11:58:55 +02:00
```
2025-08-21 19:03:25 +02:00
## Configuration
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**MCP Configuration File (`~/.claude.json` ):**
2025-08-18 11:58:55 +02:00
```json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7 -mcp@latest "]
},
"sequential-thinking": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server -sequential-thinking"]
},
"magic": {
"command": "npx",
"args": ["@21st -dev/magic"],
2025-08-21 19:03:25 +02:00
"env": {"TWENTYFIRST_API_KEY": "${TWENTYFIRST_API_KEY}"}
},
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest "]
},
"morphllm-fast-apply": {
"command": "npx",
"args": ["@morph -llm/morph-fast-apply"],
"env": {"MORPH_API_KEY": "${MORPH_API_KEY}"}
2025-08-18 11:58:55 +02:00
},
"serena": {
"command": "uv",
"args": ["run", "serena", "start-mcp-server", "--context", "ide-assistant"],
"cwd": "$HOME/.claude/serena"
}
}
}
```
## Usage Patterns
2025-08-21 19:03:25 +02:00
**Server Control:**
2025-08-18 11:58:55 +02:00
```bash
# Enable specific servers
2025-08-21 19:03:25 +02:00
/sc:analyze codebase/ --c7 --seq
2025-08-18 11:58:55 +02:00
# Disable all MCP servers
/sc:implement "simple function" --no-mcp
2025-08-21 19:03:25 +02:00
# Enable all servers
/sc:design "complex architecture" --all-mcp
2025-08-18 11:58:55 +02:00
```
2025-08-21 19:03:25 +02:00
**Multi-Server Coordination:**
2025-08-18 11:58:55 +02:00
```bash
2025-08-21 19:03:25 +02:00
# Full-stack development
/sc:implement "e-commerce checkout"
# → Sequential: workflow analysis
# → Context7: payment patterns
# → Magic: UI components
# → Serena: code organization
# → Playwright: E2E testing
2025-08-18 11:58:55 +02:00
```
2025-08-21 19:03:25 +02:00
## Troubleshooting
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Common Issues:**
- **No servers connected**: Check Node.js: `node --version` (need v16+)
- **Context7 fails**: Clear cache: `npm cache clean --force`
- **Magic/Morphllm errors**: Expected without API keys (paid services)
- **Server timeouts**: Restart Claude Code session
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Quick Fixes:**
2025-08-18 11:58:55 +02:00
```bash
2025-08-21 19:03:25 +02:00
# Reset connections
# Restart Claude Code session
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# Check dependencies
node --version # Should show v16+
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# Test without MCP
/sc:command --no-mcp
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# Check configuration
ls ~/.claude.json
2025-08-18 11:58:55 +02:00
```
2025-08-21 19:03:25 +02:00
**API Key Configuration:**
2025-08-18 11:58:55 +02:00
```bash
2025-08-21 19:03:25 +02:00
# For Magic server (required for UI generation)
2025-08-18 11:58:55 +02:00
export TWENTYFIRST_API_KEY="your_key_here"
2025-08-21 19:03:25 +02:00
# For Morphllm server (required for bulk transformations)
export MORPH_API_KEY="your_key_here"
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
# Add to shell profile for persistence
echo 'export TWENTYFIRST_API_KEY="your_key"' >> ~/.bashrc
echo 'export MORPH_API_KEY="your_key"' >> ~/.bashrc
2025-08-18 11:58:55 +02:00
```
2025-08-21 19:03:25 +02:00
**Environment Variable Usage:**
- ✅ `TWENTYFIRST_API_KEY` - Required for Magic MCP server functionality
- ✅ `MORPH_API_KEY` - Required for Morphllm MCP server functionality
- ❌ Other env vars in docs - Examples only, not used by framework
- 📝 Both are paid service API keys, framework works without them
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
## Server Combinations
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**No API Keys (Free)**:
- context7 + sequential-thinking + playwright + serena
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**1 API Key**:
- Add magic for professional UI development
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**2 API Keys**:
- Add morphllm-fast-apply for large-scale refactoring
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Common Workflows:**
- **Learning**: context7 + sequential-thinking
- **Web Development**: magic + context7 + playwright
- **Enterprise Refactoring**: serena + morphllm + sequential-thinking
- **Complex Analysis**: sequential-thinking + context7 + serena
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
## Integration
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**With SuperClaude Commands:**
- Analysis commands automatically use Sequential + Serena
- Implementation commands use Magic + Context7
- Testing commands use Playwright + Sequential
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**With Behavioral Modes:**
- Brainstorming Mode: Sequential for discovery
- Task Management: Serena for persistence
- Orchestration Mode: Optimal server selection
2025-08-18 11:58:55 +02:00
**Performance Control:**
2025-08-21 19:03:25 +02:00
- Automatic resource management based on system load
- Concurrency control: `--concurrency N` (1-15)
- Priority-based server selection under constraints
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
## Related Resources
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Essential Reading:**
- [Commands Guide ](commands.md ) - Commands that activate MCP servers
2025-08-22 19:18:44 +02:00
- [Quick Start Guide ](../Getting-Started/quick-start.md ) - MCP setup guide
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Advanced Usage:**
- [Behavioral Modes ](modes.md ) - Mode-MCP coordination
- [Agents Guide ](agents.md ) - Agent-MCP integration
- [Session Management ](session-management.md ) - Serena workflows
2025-08-18 11:58:55 +02:00
2025-08-21 19:03:25 +02:00
**Technical References:**
2025-08-18 11:58:55 +02:00
- [Examples Cookbook ](../Reference/examples-cookbook.md ) - MCP workflow patterns
2025-08-21 19:03:25 +02:00
- [Technical Architecture ](../Developer-Guide/technical-architecture.md ) - Integration details