- 拓展/: MCP配置向导、PowerShell工具、mcp-auto-loader 纳入版本管理 - guide.html: badges 从模糊 "90+" 改为精确 "92 Skills | 18 Agents | 34 Hooks"
6.5 KiB
6.5 KiB
MCP Configuration Wizard
Universal MCP configuration tool for Claude Code - works on any system, any user.
🎯 Features
- Auto-Detection: Automatically detects your system, existing configs, and environment
- Interactive Wizard: Step-by-step guided setup
- Cross-Platform: Works on Windows, macOS, and Linux
- Safe Installation: Backup existing configs before changes
- Export/Import: Share configurations between machines
- 19 MCP Services: Pre-configured popular services
📦 Quick Start
1. Install Dependencies
npm install
2. Detect Your System
npm run detect
This will scan your system and detect:
- Claude Code installation
- Existing MCP configurations
- Environment variables
- Installed npm packages
3. Run Configuration Wizard
npm start
Choose from 4 modes:
- Quick Setup - Install recommended services (no API keys needed)
- Custom Setup - Choose specific services
- Import - Load configuration from file
- Export - Save current config for another machine
4. Apply Configuration
npm run apply
This will:
- Install MCP configuration to
~/.claude.json - Generate environment variable scripts
- Create installation guide
5. Restart Claude Code
Close and reopen Claude Code to load the new MCP services.
🔧 Configuration Modes
Quick Setup (Recommended for beginners)
Installs 6 essential services that work without API keys:
- playwright - Browser automation
- chrome-devtools - Chrome DevTools integration
- context7 - Programming documentation
- deep-research - Research assistant
- sequential-thinking - Reasoning engine
- scrapling - Web scraping
Custom Setup (For advanced users)
Choose from 19 services across categories:
- Automation: playwright, chrome-devtools, browserbase
- Development: github, vercel, firebase
- Communication: slack
- Productivity: linear, notion
- Documentation: context7
- Research: deep-research
- Web: scrapling, firecrawl
- Database: supabase
- Monitoring: sentry
- Infrastructure: cloudflare
Import/Export
Export your configuration to share with another machine:
npm start
# Select option 4
Import a configuration file:
npm start
# Select option 3
# Enter path to config file
📋 Available Services
No API Key Required (9 services)
| Service | Description | Category |
|---|---|---|
| playwright | Browser automation testing | Automation |
| chrome-devtools | Chrome DevTools integration | Automation |
| context7 | Programming documentation | Documentation |
| deep-research | Deep research assistant | Research |
| sequential-thinking | Sequential reasoning | Reasoning |
| scrapling | Web scraping tool | Web |
| figma | Figma design integration | Design |
API Key Required (10 services)
| Service | Description | Setup Link |
|---|---|---|
| github | GitHub repository integration | Get Token |
| slack | Slack team collaboration | Create App |
| linear | Linear project management | API Settings |
| browserbase | Cloud browser service | Dashboard |
| cloudflare | Cloudflare CDN management | API Tokens |
| firecrawl | Intelligent web crawler | Sign Up |
| supabase | Supabase database | API Settings |
| sentry | Error monitoring | Auth Tokens |
| notion | Notion knowledge base | Integrations |
| vercel | Vercel deployment | Tokens |
| firebase | Firebase backend | Service Accounts |
🔐 Environment Variables
The wizard generates scripts to set environment variables:
Windows (PowerShell):
.\apply-env.ps1
Unix/Mac (Bash/Zsh):
source ./apply-env.sh
Or set them manually from generated-env.json.
📁 Generated Files
After running the wizard, you'll get:
detection-result.json- System detection resultsgenerated-claude.json- MCP configuration for Claude Codegenerated-env.json- Environment variables (JSON format)apply-env.ps1- PowerShell script (Windows)apply-env.sh- Shell script (Unix/Mac)INSTALL.md- Installation guide
🚀 Usage Examples
Example 1: First-time setup on new machine
npm install
npm run detect
npm start
# Choose option 1 (Quick Setup)
npm run apply
# Restart Claude Code
Example 2: Add GitHub integration
npm start
# Choose option 2 (Custom Setup)
# Enter: github
# Enter your GitHub token
npm run apply
# Restart Claude Code
Example 3: Export config for another machine
npm start
# Choose option 4 (Export)
# Copy mcp-config-export.json to other machine
On the other machine:
npm install
npm start
# Choose option 3 (Import)
# Enter path to mcp-config-export.json
npm run apply
🛠️ Manual Installation
If automatic installation fails:
- Copy content from
generated-claude.json - Paste into
~/.claude.json(create if doesn't exist) - Set environment variables from
generated-env.json - Restart Claude Code
⚠️ Troubleshooting
"Cannot find module 'inquirer'"
npm install
"Permission denied" on Unix/Mac
chmod +x apply-env.sh
PowerShell execution policy error
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
MCP services not loading
- Check
~/.claude.jsonexists and hasmcpServerssection - Verify environment variables are set:
echo $GITHUB_PERSONAL_ACCESS_TOKEN - Restart Claude Code completely
- Check Claude Code logs for errors
📖 Documentation
🤝 Contributing
Contributions welcome! To add a new MCP service:
- Add service definition to
MCP_SERVICESinwizard.js - Include package name, description, category, and required env vars
- Test with
npm start - Submit PR
📄 License
MIT
🔗 Links
Version: 1.0.0
Last Updated: 2026-04-04
Maintained by: Bookworm Team