mcp-builder

mcp-builder

3.4

A Python-based MCP server to install other MCP servers, providing a user-friendly and cross-platform installation and configuration solution.

MCP Builder is a Python-based server designed to facilitate the installation and configuration of Model Context Protocol (MCP) servers. It aims to provide a comprehensive, user-friendly, and cross-platform method for setting up MCP servers. The server supports installation from various sources, including package repositories like PyPI and npm, as well as local directories. It features automatic detection of the server type, whether Node.js or Python, and offers configuration management for environment variables and arguments. MCP Builder is compatible with Windows, macOS, and Linux, making it a versatile tool for developers working across different platforms. Future enhancements include support for more MCP clients and server types, as well as a recovery mechanism for failed installations.

Features

  • {'name': 'Package Repository Installation', 'description': 'Install MCP servers from PyPI or npm packages.'}
  • {'name': 'Local Installation', 'description': 'Install MCP servers from local directories.'}
  • {'name': 'Configuration Management', 'description': 'Configure environment variables and arguments for installed servers.'}
  • {'name': 'Automatic Detection', 'description': 'Automatically detect the type of MCP server (Node.js or Python).'}
  • {'name': 'Cross-Platform Support', 'description': 'Works on Windows, macOS, and Linux.'}

Usage with Different Platforms

Install from Source

bash
git clone https://github.com/xd3an/mcp-builder.git
cd mcp-builder
pip install -e .

Running Directly

bash
# Using the entry point
mcpbuilder

# Or as a module
python -m mcp_builder.server

Development Mode

bash
# Install MCP CLI tools
pip install "mcp[cli]"

# Run in development mode
mcp dev path/to/mcp_builder/server.py

# npx @modelcontextprotocol/inspector
npx @modelcontextprotocol/inspector python -m mcp_builder.server

MCP Client Integration


{
  "mcpServers": {
    "mcp-builder": {
      "command": "python",
      "args": [
        "-m",
        "mcp_builder.server"
      ]
    }
  }
}