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

README
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:

  1. 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
  1. 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
  1. Add service detection to add_remote_mcp.sh
  2. Create configuration templates
  3. Add authentication flow
  4. 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.

Author Information
Bart Majewski
www.codibly.comKrakow, Poland

4

Followers

7

Repositories

0

Gists

32

Total Contributions

Top Contributors

Threads