claude-code-mcp-guide
Complete guide for integrating MCP (Model Context Protocol) servers with Claude Code. Includes HTTP bridge for cloud services and templates for local Docker-based MCPs.
GitHub Stars
0
User Rating
Not Rated
Forks
0
Issues
0
Views
3
Favorites
0
Claude Code MCP Guide
Connect Claude Code to any remote MCP (Model Context Protocol) server with one simple command. Choose between direct HTTP connections or a universal bridge - all configured automatically with our setup wizard.
๐ฏ What This Does
This tool makes connecting Claude Code to remote MCP servers incredibly easy. Just run one script, answer a few questions, and you're connected! The setup wizard handles all the complexity - Python environments, credential management, security configurations, and protocol setup.
โก Super Quick Start - One Command Setup
# Clone and run - that's it!
git clone https://github.com/majkonautic/claude-code-mcp-guide.git
cd claude-code-mcp-guide
./add_remote_mcp.sh
The setup wizard will:
- โ Create Python virtual environment automatically
- โ Install all required dependencies
- โ Let you choose your connection method (HTTP or Bridge)
- โ Guide you through credential setup with clear prompts
- โ
Configure security and
.gitignore
automatically - โ Test your connection to ensure it works
- โ Set up multiple MCP servers in one session
In 2-3 minutes, you'll have a working MCP connection!
๐ Choose Your Connection Method
The setup wizard offers two approaches - pick what works best for you:
Option 1: Direct HTTP Connection (.mcp.json)
Perfect for: Simple setups, single-user scenarios, direct server access
What it does: Connects directly to MCP servers using JSON configuration
{
"mcpServers": {
"airtable": {
"type": "http",
"url": "https://your-mcp-server.com/",
"headers": {
"x-api-key": "your-server-key",
"x-airtable-api-key": "your-airtable-key"
}
}
}
}
Benefits:
- โ Fastest setup - Direct connection
- โ Simple configuration - Just JSON headers
- โ Minimal overhead - No bridge processes
- โ Standard approach - Uses Claude Code's native HTTP support
Option 2: Universal Bridge (Advanced)
Perfect for: Production environments, team setups, secure credential handling
What it does: Uses a Python bridge to securely manage credentials and connect to shared MCP servers
# Bridge configuration (.env)
MCP_URL=https://your-team-mcp-server.com/
MCP_API_KEY=shared-server-auth-key
AIRTABLE_API_KEY=your-personal-airtable-key
baseId=your-personal-base-id
Benefits:
- โ Multi-user support - Many users, one server
- โ Secure by design - Credentials never stored on server
- โ Production ready - Scalable Docker architecture
- โ Universal compatibility - Works with any MCP server
๐๏ธ Universal Bridge Architecture (Advanced Users)
When you choose the bridge option, you get a sophisticated architecture:
โโโโโโโโโโโโโโโโโโโ HTTP Headers โโโโโโโโโโโโโโโโโโโ Spawn Process โโโโโโโโโโโโโโโโโโโ
โ Claude Code โ โโโโโโโโโโโโโโโโโโ> โ MCP Server โ โโโโโโโโโโโโโโโโโ> โ airtable-mcp- โ
โ + Bridge โ (User API Keys) โ (Docker) โ (With User Creds) โ server โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
Why this is powerful:
- Server-side: Docker container handles MCP protocol, only stores server auth
- Client-side: Bridge passes your personal credentials securely per request
- Security: Your API keys never stored permanently on the server
- Scalability: One server supports unlimited users with their own data
๐ Prerequisites
- macOS, Linux, or WSL on Windows
- Python 3.6 or higher
- Claude Code CLI (
npm install -g @anthropic-ai/claude-code
)
That's it! The setup script handles everything else.
๐ Detailed Setup Process
Step 1: Run the Magic Script
git clone https://github.com/majkonautic/claude-code-mcp-guide.git
cd claude-code-mcp-guide
./add_remote_mcp.sh
Step 2: Choose Your Adventure
The wizard will ask:
๐ Choose connection method:
1) Direct HTTP (.mcp.json) - Simple, fast setup
2) Universal Bridge - Advanced, secure, multi-user
3) Both - Maximum flexibility
Your choice [1-3]:
Step 3: Service Selection
๐ Which MCP service would you like to configure?
1) Airtable
2) AWS
3) Supabase
4) Custom MCP server
5) I'll configure manually later
Your choice [1-5]:
Step 4: Automatic Configuration
The script automatically:
- Creates Python virtual environment in
.venv/
- Installs
python-dotenv
for credential management - Sets up the appropriate configuration files
- Updates
.gitignore
to protect your credentials - Tests the connection to ensure it works
Step 5: Add More Services (Optional)
โ
Airtable MCP configured successfully!
๐ Would you like to add another MCP server? [y/N]:
Keep adding services until you have everything you need!
๐ What Gets Created
After running the setup script:
your-project/
โโโ .venv/ # Python environment (auto-created)
โ โโโ bin/python3 # Python interpreter
โ โโโ lib/python*/site-packages/python-dotenv # Dependencies
โโโ .mcp.json # HTTP configurations (if chosen)
โโโ .claude/
โ โโโ mcp/
โ โโโ mcp-http-bridge.py # Universal bridge (auto-downloaded)
โ โโโ airtable/
โ โ โโโ .env # Your Airtable credentials
โ โโโ aws/
โ โโโ .env # Your AWS credentials
โโโ .gitignore # Auto-updated for security
Everything is automatic - no manual file creation needed!
๐ ๏ธ Why Our Setup Script is Game-Changing
Before This Tool
Setting up remote MCP connections required:
- Manual Python environment setup
- Understanding MCP protocol details
- Writing bridge scripts from scratch
- Configuring authentication properly
- Setting up security measures
- Debugging connection issues
Result: Hours of work, lots of frustration
After This Tool
./add_remote_mcp.sh
# Answer 3-4 questions
# Done in 2 minutes!
The script handles:
- โ Environment setup - Python venv, dependencies, paths
- โ Protocol complexity - JSON-RPC, authentication, headers
- โ Security best practices - Gitignore, credential isolation
- โ Testing & validation - Ensures everything works before finishing
- โ Multiple services - Add as many MCP servers as you need
- โ Error handling - Clear messages if something goes wrong
Real User Experience
Sarah (Marketing Manager):
$ ./add_remote_mcp.sh
# Chooses Airtable, enters API key
# 2 minutes later: "List all my marketing campaigns"
โ
Works perfectly!
Dev Team (10 developers):
# Each developer runs:
$ ./add_remote_mcp.sh
# Chooses bridge mode, enters team server URL
# Everyone connected to shared infrastructure in minutes
โ
Entire team productive immediately!
๐ค Using Your MCP Connection
Once setup is complete, just ask Claude naturally:
# Airtable
"List all tables in my Airtable base"
"Show me records from the Marketing Campaigns table"
"Create a new campaign with test data"
# AWS
"List my S3 buckets"
"Show EC2 instances in us-east-1"
# Supabase
"Query my users table"
"Show database schema"
Claude automatically uses the right MCP server based on your request!
๐ง Advanced Configuration
Supporting Your Own MCP Server
The setup script supports custom servers:
$ ./add_remote_mcp.sh
# Choose "Custom MCP server"
# Enter your server URL and authentication
โ
Connected to your proprietary MCP service!
Team Deployment (Bridge Mode)
For teams using the bridge architecture:
- Deploy universal MCP server (one time):
# Your DevOps team deploys this once
docker run -d -p 8080:8080 \
-e AIRTABLE_MCP_KEY=team-server-key \
your-company/universal-mcp-server
- Team members connect (individual):
# Each team member runs
./add_remote_mcp.sh
# Chooses bridge mode
# Enters: https://mcp.company.com/, personal API keys
โ
Everyone connected with their own data access!
Multiple Environments
Run the script multiple times for different environments:
# Development environment
./add_remote_mcp.sh # Points to dev MCP servers
# Production environment
./add_remote_mcp.sh # Points to prod MCP servers
๐ Security Built-In
The setup script automatically implements security best practices:
Credential Protection
- โ Auto-gitignore - Sensitive files never committed
- โ
Environment isolation - Credentials in separate
.env
files - โ Minimal permissions - Only required access granted
Bridge Mode Security (Advanced)
- โ Per-request authentication - Credentials passed securely per call
- โ No server storage - Your API keys never stored on shared server
- โ User isolation - Each user's data access completely separate
Network Security
- โ HTTPS enforcement - All connections encrypted
- โ API key validation - Server authentication required
- โ Header security - Proper authentication header handling
๐ Scaling and Production
Single User (HTTP Mode)
Perfect for individual use:
- Direct connection to MCP servers
- Simple JSON configuration
- Fast and lightweight
Team/Enterprise (Bridge Mode)
Designed for scale:
- Shared MCP server infrastructure
- Individual user credential management
- Monitoring and logging capabilities
- Multi-region deployment support
๐ ๏ธ Troubleshooting Made Easy
The setup script includes built-in testing:
$ ./add_remote_mcp.sh
# ... configuration steps ...
๐งช Testing connection...
โ
Successfully connected to Airtable MCP!
โ
Retrieved 12 available tools
โ
Configuration saved
๐ Setup complete! Try: claude "list my airtable tables"
If something goes wrong, you'll get clear error messages:
โ Connection failed: Invalid API key
๐ก Check your Airtable Personal Access Token
๐ Visit: https://airtable.com/create/tokens
Common Issues Auto-Resolved
- โ Python environment - Auto-created and configured
- โ Missing dependencies - Auto-installed
- โ Permission errors - Clear instructions provided
- โ Network issues - Connection testing with helpful error messages
- โ Credential format - Validation and format checking
๐ฏ Why This Approach Works
For Individual Users
- Zero complexity - One command setup
- Immediate productivity - Working MCP in minutes
- Flexible options - Choose simple or advanced based on needs
For Teams
- Standardized setup - Everyone uses the same proven process
- Secure by default - Best practices built-in
- Scalable architecture - Grows from 1 to 1000+ users
For Developers
- Open source - Customize and extend as needed
- Well documented - Clear architecture and examples
- Production ready - Battle-tested patterns and security
๐ค Contributing
The setup script is designed to be extended:
Adding New Services
- Add service detection to
add_remote_mcp.sh
- Create configuration templates
- Add authentication flow
- Test with the validation system
Improving the Experience
- Better error messages
- Additional validation checks
- More deployment options
- Enhanced security features
๐ License
MIT License - see LICENSE file for details
๐ Acknowledgments
- Built for the Claude Code community
- Thanks to @bartoszmajewski for architecture design and extensive testing
- Inspired by the need for simple, secure MCP connections
- One command setup makes MCP accessible to everyone
Ready to get started? Just run: ./add_remote_mcp.sh
Need help? The script includes built-in troubleshooting and clear error messages.
Building for a team? The bridge architecture scales from 1 to 1000+ users seamlessly.
4
Followers
7
Repositories
0
Gists
32
Total Contributions