🚀 Complete setup guide for Linux, macOS, and Windows
- Python 3.8 or higher (3.9+ recommended)
- pip (Python package installer)
- Git (for cloning and version control)
- Virtual environment tools (
venv,virtualenv, orconda) - Node.js (for MCP Inspector testing)
- Docker (for containerized deployment)
# Update package lists
sudo apt update
# Install Python 3.9+ and pip
sudo apt install python3.9 python3.9-pip python3.9-venv git
# Verify installation
python3 --version
pip3 --version
# Clone the MCP Setup Tool
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
# Create virtual environment
python3 -m venv mcp-env
source mcp-env/bin/activate
# Install the tool
pip install -e .
# Verify installation
mcp-setup --version# For CentOS/RHEL 8+
sudo dnf install python3.9 python3.9-pip python3.9-venv git
# For older versions, use yum
sudo yum install python3 python3-pip git
# Clone and install (same as Ubuntu)
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
python3 -m venv mcp-env
source mcp-env/bin/activate
pip install -e .# Install prerequisites
sudo pacman -S python python-pip git
# Clone and install
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
python -m venv mcp-env
source mcp-env/bin/activate
pip install -e .# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python and Git
brew install python@3.11 git
# Verify installation
python3 --version
pip3 --version
# Clone the repository
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
# Create virtual environment
python3 -m venv mcp-env
source mcp-env/bin/activate
# Install the tool
pip install -e .
# Verify installation
mcp-setup --version# 1. Download Python 3.11+ from https://www.python.org/downloads/macos/
# 2. Install the downloaded package
# 3. Open Terminal and verify:
python3 --version
# Install Git if not present
xcode-select --install
# Clone and install
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
python3 -m venv mcp-env
source mcp-env/bin/activate
pip install -e .# 1. Download Python 3.11+ from https://www.python.org/downloads/windows/
# 2. Run installer with "Add Python to PATH" checked
# 3. Open Command Prompt or PowerShell and verify:
python --version
pip --version
# Install Git from https://git-scm.com/download/win
# Or use winget:
winget install Git.Git
# Clone the repository
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
# Create virtual environment
python -m venv mcp-env
mcp-env\Scripts\activate
# Install the tool
pip install -e .
# Verify installation
mcp-setup --version# Install WSL2 and Ubuntu
wsl --install
# Follow Linux (Ubuntu) installation steps
sudo apt update
sudo apt install python3.9 python3.9-pip python3.9-venv git
# Clone and install
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
python3 -m venv mcp-env
source mcp-env/bin/activate
pip install -e .# Install Miniconda or Anaconda
# Download from https://docs.conda.io/en/latest/miniconda.html
# Create conda environment
conda create -n mcp-env python=3.11
conda activate mcp-env
# Clone and install
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
pip install -e .# Activate virtual environment
# Linux/macOS:
source mcp-env/bin/activate
# Windows:
mcp-env\Scripts\activate
# List available backends
mcp-setup list
# Create your first MCP server (interactive wizard)
mcp-setup wizard
# Or create directly
mcp-setup create my-db-server --backend database# Create a database MCP server
mcp-setup create my-postgres-server --backend database
# Navigate to the project
cd my-postgres-server
# Configure environment variables
cp .env.template .env
# Edit .env with your database credentials
# Install project dependencies
pip install -r requirements.txt
# Test the server
python server.py
# Test with MCP Inspector (requires Node.js)
npx @modelcontextprotocol/inspector python server.py# Find Claude Desktop config location
# Linux: ~/.config/Claude/claude_desktop_config.json
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Copy generated config
cp config/claude_desktop_config.json ~/.config/Claude/claude_desktop_config.json
# Or merge with existing config# Find Claude Desktop config location
# %APPDATA%\Claude\claude_desktop_config.json
# Copy generated config
copy config\claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json# Clone with development dependencies
git clone https://github.com/ModelContextKit/modelctx.git
cd mcp-setup-tools
# Create development environment
python -m venv dev-env
source dev-env/bin/activate # Linux/macOS
# dev-env\Scripts\activate # Windows
# Install with development dependencies
pip install -e ".[dev]"
# Install pre-commit hooks
pre-commit install
# Run tests
pytest
# Run linting
black .
ruff check .
mypy mcp_setup/# Run full test suite
pytest tests/ -v
# Test specific backend
pytest tests/test_database_backend.py
# Generate coverage report
pytest --cov=mcp_setup tests/
# Build wheel
python -m build
# Test installation from wheel
pip install dist/mcp_setup_tool-*.whl# Check Python version
python --version
# or
python3 --version
# If version is too old, install newer Python:
# Ubuntu/Debian: sudo apt install python3.11
# macOS: brew install python@3.11
# Windows: Download from python.org# Don't use sudo with pip in virtual environments
# Instead, ensure virtual environment is activated:
source mcp-env/bin/activate
# If you see permission errors, recreate virtual environment:
rm -rf mcp-env
python3 -m venv mcp-env
source mcp-env/bin/activate
pip install -e .# If 'python' command not found:
# 1. Reinstall Python with "Add to PATH" checked
# 2. Or add Python to PATH manually:
# Add: C:\Users\YourName\AppData\Local\Programs\Python\Python311
# Add: C:\Users\YourName\AppData\Local\Programs\Python\Python311\Scripts
# Verify PATH:
echo $env:PATH# If virtual environment activation fails:
# Linux/macOS - try different shells:
source mcp-env/bin/activate # bash/zsh
source mcp-env/bin/activate.csh # csh
source mcp-env/bin/activate.fish # fish
# Windows - try different terminals:
mcp-env\Scripts\activate.bat # Command Prompt
mcp-env\Scripts\Activate.ps1 # PowerShell# PostgreSQL connection test:
python -c "import psycopg2; print('PostgreSQL driver OK')"
# MySQL connection test:
python -c "import pymysql; print('MySQL driver OK')"
# SQLite test:
python -c "import sqlite3; print('SQLite OK')"
# If database drivers fail to install:
# Linux: sudo apt install libpq-dev python3-dev
# macOS: brew install postgresql
# Windows: Usually works out of the box# Show help for main command
mcp-setup --help
# Show help for specific commands
mcp-setup create --help
mcp-setup wizard --help
# Enable verbose output for debugging
mcp-setup create my-server --backend database --verbose- Distributions: Tested on Ubuntu 20.04+, Debian 11+, CentOS 8+, Fedora 35+
- Dependencies: May need
python3-devandlibpq-devfor PostgreSQL - Permissions: Never use
sudowith pip in virtual environments - Systemd: Can create systemd services for MCP servers
- Versions: Tested on macOS 11+ (Big Sur and newer)
- Architecture: Works on both Intel and Apple Silicon (M1/M2)
- Homebrew: Recommended for dependency management
- Xcode: May need Command Line Tools for some dependencies
- Versions: Tested on Windows 10 and Windows 11
- PowerShell vs CMD: Both work, PowerShell recommended
- WSL: Full Linux experience available via WSL2
- Antivirus: Some antivirus software may interfere with Python execution
- SSD recommended for development with many projects
- RAM: 4GB minimum, 8GB+ recommended for development
- CPU: Any modern processor sufficient
- Network: Required for package installation and database connections
After successful installation:
- Create your first MCP server with
mcp-setup wizard - Read the generated README.md in your project directory
- Configure environment variables in the
.envfile - Test with MCP Inspector to verify functionality
- Integrate with Claude Desktop using the generated config
- Explore advanced backends like API, filesystem, and web scraper
For more detailed documentation, see:
- 🐛 Bug Reports: GitHub Issues
- 💬 Discussions: GitHub Discussions
- 📚 Documentation: GitHub Wiki
- 📧 Support: Create an issue for help