Claude Desktop Integration
Claude Desktop supports MCP servers natively. mpak makes it easy to add servers from the registry.
Configuration File Location
Section titled “Configuration File Location”~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonBasic Setup
Section titled “Basic Setup”Add an MCP server from mpak:
{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo"] } }}Restart Claude Desktop to load the server.
Multiple Servers
Section titled “Multiple Servers”{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo"] }, "ipinfo": { "command": "mpak", "args": ["run", "@nimblebraininc/ipinfo"], "env": { "IPINFO_API_TOKEN": "your-token" } }, "postgres": { "command": "mpak", "args": ["run", "@owner/postgres-mcp"], "env": { "DATABASE_URL": "postgresql://localhost:5432/mydb" } } }}Passing Configuration
Section titled “Passing Configuration”For servers that require configuration (API keys, etc.), you have two options:
Option 1: Environment Variables in Config
Section titled “Option 1: Environment Variables in Config”Pass environment variables directly in the config file:
{ "mcpServers": { "ipinfo": { "command": "mpak", "args": ["run", "@nimblebraininc/ipinfo"], "env": { "IPINFO_API_TOKEN": "your-token-here" } } }}Option 2: mpak config (Recommended)
Section titled “Option 2: mpak config (Recommended)”Store secrets with mpak, keep your config file clean:
# Store config oncempak config set @nimblebraininc/ipinfo api_key=your-tokenThen use a simple config:
{ "mcpServers": { "ipinfo": { "command": "mpak", "args": ["run", "@nimblebraininc/ipinfo"] } }}mpak resolves stored config automatically when running.
Check the bundle’s documentation for required configuration keys.
Pin to a Specific Version
Section titled “Pin to a Specific Version”By default, mpak run uses the cached version (or downloads latest if not cached). To pin to a specific version:
{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo@1.0.0"] } }}Force Updates
Section titled “Force Updates”To update to the latest version on each launch (slower startup):
{ "mcpServers": { "echo": { "command": "mpak", "args": ["run", "@nimblebraininc/echo", "--update"] } }}Troubleshooting
Section titled “Troubleshooting”Server Not Appearing
Section titled “Server Not Appearing”- Check your JSON is valid (no trailing commas)
- Restart Claude Desktop completely
- Check
mpak run @package/nameworks in terminal
Command Not Found
Section titled “Command Not Found”Ensure mpak is installed globally and in your PATH:
npm install -g @nimblebrain/mpakwhich mpak # Should show the pathIf using a version manager (nvm, volta), you may need to specify the full path:
{ "mcpServers": { "echo": { "command": "/Users/you/.nvm/versions/node/v20.0.0/bin/mpak", "args": ["run", "@nimblebraininc/echo"] } }}View Logs
Section titled “View Logs”Check Claude Desktop logs for MCP server errors:
tail -f ~/Library/Logs/Claude/mcp*.log# Check %APPDATA%\Claude\logs\