buildmcp
Complete toolkit for managing MCP (Model Context Protocol) server configurations
Build template-based configs, manage servers interactively, and automate deployments - all from one unified toolset.
🚀 Quick Start
# Install from PyPI
uv pip install buildmcp
# Choose your tool:
buildmcp --dry-run # Template builder
metamcp # Interactive TUI
metamcp-cli server:list # Command-line interface
🛠️ Tool Suite
buildmcp - Configuration Builder
Template-based MCP server configuration builder with environment variable substitution and checksums.
Best for: Building configs from templates, deploying to multiple targets, managing environment-specific configs
# Preview build
uv run buildmcp --dry-run
# Deploy to targets
uv run buildmcp
# Print specific profile config (no write)
uv run buildmcp --profile default
# Force write (skip checksums)
uv run buildmcp --force
Features:
- ✅ Template composition system
- ✅ Environment variable substitution (
${VAR_NAME}) - ✅ SHA-256 checksum change detection
- ✅ Lock file tracking
- ✅ Multiple deployment targets
- ✅ Profile-based configurations
Meta∞MCP TUI - Interactive Terminal Interface
Full-featured terminal UI for browsing and managing MCP servers and namespaces.
Best for: Visual exploration, interactive management, namespace organization, tool status management
# Launch TUI
export METAMCP_SESSION_TOKEN="your-token"
uv run metamcp
Features:
- ✅ Server browsing and management
- ✅ Namespace exploration with tools view
- ✅ Interactive status toggling
- ✅ Bulk import interface
- ✅ Real-time updates
- ✅ Keyboard-driven navigation
Keyboard Shortcuts:
q- Quitr- Refreshc- Created- Deletei- Imports- Toggle server statust- Toggle tool status
metamcp-cli - Command-Line Interface
Scriptable CLI for all MetaMCP operations with full JSON input support.
Best for: Automation, CI/CD pipelines, shell scripts, batch operations
# List servers
metamcp-cli server:list
# Create from JSON (stdin)
echo '{"name": "test", "type": "STDIO", "command": "npx"}' | \
metamcp-cli server:create --stdin
# Bulk import
cat servers.json | metamcp-cli server:bulk-import --stdin
# Update namespace tools
metamcp-cli namespace:update-tool-status \
--namespace-uuid "..." \
--tool-uuid "..." \
--server-uuid "..." \
--status "ACTIVE"
Features:
- ✅ All server operations (list, create, delete, import)
- ✅ Namespace management (list, get, tools, status)
- ✅ JSON input (file, stdin, pipe)
- ✅ Rich table output
- ✅ Scriptable and pipeable
- ✅ Error handling with exit codes
📋 Features Comparison
| Feature | buildmcp | TUI | CLI |
|---|---|---|---|
| Template system | ✅ | ❌ | ❌ |
| Environment substitution | ✅ | ❌ | ❌ |
| Server management | ❌ | ✅ | ✅ |
| Namespace management | ❌ | ✅ | ✅ |
| Tool status control | ❌ | ✅ | ✅ |
| Visual interface | ❌ | ✅ | ❌ |
| JSON input/output | ✅ | ✅ | ✅ |
| Automation friendly | ✅ | ❌ | ✅ |
| Real-time updates | ❌ | ✅ | ❌ |
| Bulk operations | ✅ | ✅ | ✅ |
📚 Documentation
- QUICKSTART.md - Get started in 5 minutes
- USAGE.md - Complete usage guide with workflows
- docs/metamcp.md - Meta∞MCP TUI guide
- docs/metamcp-cli.md - CLI reference
- CLAUDE.md - Project context for Claude
- MCP_FORMAT_SPECIFICATION.md - MCP format details
🏗️ Installation
Requirements
- Python 3.12+
- uv package manager
Install from PyPI
# Install with pip
pip install buildmcp
# Or with uv (recommended)
uv pip install buildmcp
# Verify installation
buildmcp --help
metamcp --help
metamcp-cli --help
Install from Source
# Clone repository
git clone https://github.com/starbased-co/buildmcp.git
cd buildmcp
# Install dependencies
uv sync
# Verify installation
uv run buildmcp --help
uv run metamcp --help
uv run metamcp-cli --help
Development Install
# Install in editable mode
uv pip install -e .
# Run tests
uv run pytest
# Run with verbose
uv run buildmcp --verbose --dry-run
🎯 Common Workflows
Workflow 1: Template-Based Deployment
# 1. Edit templates
vim ~/.config/nix/config/claude/mcp.json
# 2. Preview specific profile
uv run buildmcp --profile default
# 3. Preview all (dry-run)
uv run buildmcp --dry-run
# 4. Deploy
uv run buildmcp
# 5. Verify
cat ~/.claude/mcp.json
Workflow 2: Import to MetaMCP
# Import existing Claude config
cat ~/.claude/mcp.json | \
jq '.mcpServers' | \
metamcp-cli server:bulk-import --stdin
# Browse in TUI
uv run metamcp
Workflow 3: Namespace Management
# List namespaces
metamcp-cli namespace:list
# Get tools
metamcp-cli namespace:tools --uuid "ns-abc123..."
# Toggle tool status in TUI
uv run metamcp
# → Navigate to namespace → Tools → Press 't'
Workflow 4: Automated Provisioning
#!/bin/bash
# Create servers from list
for name in $(cat servers.txt); do
echo "{\"name\": \"$name\", \"type\": \"STDIO\"}" | \
metamcp-cli server:create --stdin
done
🔧 Configuration
buildmcp Config
Location: ~/.config/nix/config/claude/mcp.json (or custom with --mcp-json)
{
"mcpServers": {
"base-server": {
"command": "npx",
"args": ["-y", "@scope/package"]
}
},
"templates": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
},
"profiles": {
"default": ["github"],
"minimal": []
},
"targets": {
"default": "~/.claude/mcp.json",
"custom": {
"read": "cat ~/custom-mcp.json",
"write": "cat > ~/custom-mcp.json"
}
}
}
Meta∞MCP Authentication
# Set session token (from browser DevTools)
export METAMCP_SESSION_TOKEN="your-session-token"
# Or use cookie file
echo "your-token" > ~/.metamcp
chmod 600 ~/.metamcp
uv run metamcp --cookie-file ~/.metamcp
metamcp-cli --cookie-file ~/.metamcp server:list
📖 CLI Reference
buildmcp
buildmcp [OPTIONS]
Options:
--mcp-json PATH Config file (default: ~/.claude/mcp.json)
--verbose Show detailed output
--dry-run Preview without writing
--profile NAME Print built config for profile to stdout
--force Ignore checksums, redeploy all
--no-check-env Skip env var validation
metamcp (TUI)
metamcp [OPTIONS]
Options:
--base-url URL MetaMCP server URL (default: http://localhost:12008)
--cookie-file PATH Session token file
Keyboard:
q Quit
r Refresh
c Create
d Delete
i Import
s Toggle server status (in namespace view)
t Toggle tool status (in namespace view)
metamcp-cli
metamcp-cli <command-group>:<action> [OPTIONS]
Server Commands:
server:list List all servers
server:create [--name N --type T] Create server
server:delete --uuid UUID Delete server
server:bulk-import [-f FILE] Bulk import
Namespace Commands:
namespace:list List namespaces
namespace:get --uuid UUID Get details
namespace:tools --uuid UUID List tools
namespace:update-tool-status Update tool
namespace:update-server-status Update server
Options:
-f, --file PATH JSON file input
--stdin Read from stdin
🧪 Testing
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=src/buildmcp
# Run specific test
uv run pytest tests/test_builder.py
🔗 Integrations
Claude Code
# Deploy to Claude Code
uv run buildmcp
# Restart Claude Code to load config
MCPNest
Deploy to mcpnest.dev using mcpnest-cli:
# Add mcpnest target
{
"targets": {
"mcpnest": {
"read": "mcpnest config read",
"write": "mcpnest config write"
}
},
"profiles": {
"mcpnest": ["linkup", "sequential-thinking"]
}
}
# Deploy
uv run buildmcp
Shell Scripts
# Use in scripts
SERVERS=$(metamcp-cli server:list --format json)
echo "$SERVERS" | jq '.[] | select(.type == "STDIO")'
🐛 Troubleshooting
Authentication Issues
# Error: HTTP 401 Unauthorized
# → Get fresh token from browser DevTools
export METAMCP_SESSION_TOKEN="new-token"
Connection Issues
# Cannot connect to server
# → Check server is running
curl http://localhost:12008/api/health
# → Use correct URL
uv run metamcp --base-url http://your-server:12008
Build Issues
# Missing environment variables
# → Set the variable
export GITHUB_TOKEN="your-token"
# → Or skip validation
uv run buildmcp --no-check-env
🤝 Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Add tests for new features
- Ensure tests pass:
uv run pytest - Submit a pull request
📄 License
MIT License - see LICENSE file
🔗 Links
- Repository: github.com/starbased-co/buildmcp
- Issues: github.com/starbased-co/buildmcp/issues
- MCPNest: mcpnest.dev
- MCP Protocol: modelcontextprotocol.io
Made with ❤️ by starbased
Metadata
Release files for buildmcp 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| buildmcp-0.2.1.tar.gz | 69.9 kB | Without provenance | Details for buildmcp-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| buildmcp-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for buildmcp-0.2.1-py3-none-any.whl |
Total release size: 82.0 kB
Release files / buildmcp-0.2.1.tar.gz
| Download URL | buildmcp-0.2.1.tar.gz |
|---|---|
| Size | 69.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
842d27f5fa895d55a7c1d112f04a84972d6c99d357552d4ab3e499680988343a
|
|
BLAKE2b-256 checksum How to use checksums |
72d84489c76f1a4a91f384ac9126c95ba277b457361f38e613bbe32552af549c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / buildmcp-0.2.1-py3-none-any.whl
| Download URL | buildmcp-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8942467bffa2b5cb6061b1588d89e60097d9736ad26f8cdd1849fa2ab0cadef6
|
|
BLAKE2b-256 checksum How to use checksums |
5ab9852c22d5fbb755b65495f1b1433c49c95f3acea00eb0952fc4ff878241cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for buildmcp 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.