L

Labby

by dinglebear.ai · ai.dinglebear/labby

Labby is a Rust-based MCP gateway that connects and aggregates multiple upstream MCP servers, with authentication, Code Mode (JavaScript snippets), and an operator web UI.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ai-dinglebear-labby": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/labby"
      ],
      "env": {
        "LABBY_VERSION": "v1.3.0",
        "LABBY_REPO": "dinglebear-ai/labby",
        "LABBY_LOG": "labby=info,labby_apis=warn",
        "LABBY_LOG_DIR": "<VALUE>",
        "LABBY_AUTH_MODE": "bearer",
        "LABBY_LOG_COLOR": "<VALUE>",
        "LABBY_LOG_FORMAT": "<VALUE>",
        "LABBY_PUBLIC_URL": "<VALUE>",
        "LABBY_ADMIN_ENABLED": "<VALUE>",
        "LABBY_MCP_HTTP_HOST": "127.0.0.1",
        "LABBY_MCP_HTTP_PORT": "8765",
        "LABBY_MCP_TRANSPORT": "http",
        "LABBY_MCP_HTTP_TOKEN": "<VALUE>",
        "LABBY_WEB_ASSETS_DIR": "<VALUE>",
        "LABBY_ACTOR_KEY_SECRET": "<VALUE>",
        "LABBY_AUTH_ADMIN_EMAIL": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_ID": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_SECRET": "<VALUE>",
        "LABBY_OAUTH_ENCRYPTION_KEY": "<VALUE>",
        "LABBY_WEB_UI_AUTH_DISABLED": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "ai-dinglebear-labby": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/labby"
      ],
      "env": {
        "LABBY_VERSION": "v1.3.0",
        "LABBY_REPO": "dinglebear-ai/labby",
        "LABBY_LOG": "labby=info,labby_apis=warn",
        "LABBY_LOG_DIR": "<VALUE>",
        "LABBY_AUTH_MODE": "bearer",
        "LABBY_LOG_COLOR": "<VALUE>",
        "LABBY_LOG_FORMAT": "<VALUE>",
        "LABBY_PUBLIC_URL": "<VALUE>",
        "LABBY_ADMIN_ENABLED": "<VALUE>",
        "LABBY_MCP_HTTP_HOST": "127.0.0.1",
        "LABBY_MCP_HTTP_PORT": "8765",
        "LABBY_MCP_TRANSPORT": "http",
        "LABBY_MCP_HTTP_TOKEN": "<VALUE>",
        "LABBY_WEB_ASSETS_DIR": "<VALUE>",
        "LABBY_ACTOR_KEY_SECRET": "<VALUE>",
        "LABBY_AUTH_ADMIN_EMAIL": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_ID": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_SECRET": "<VALUE>",
        "LABBY_OAUTH_ENCRYPTION_KEY": "<VALUE>",
        "LABBY_WEB_UI_AUTH_DISABLED": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "ai-dinglebear-labby": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/labby"
      ],
      "env": {
        "LABBY_VERSION": "v1.3.0",
        "LABBY_REPO": "dinglebear-ai/labby",
        "LABBY_LOG": "labby=info,labby_apis=warn",
        "LABBY_LOG_DIR": "<VALUE>",
        "LABBY_AUTH_MODE": "bearer",
        "LABBY_LOG_COLOR": "<VALUE>",
        "LABBY_LOG_FORMAT": "<VALUE>",
        "LABBY_PUBLIC_URL": "<VALUE>",
        "LABBY_ADMIN_ENABLED": "<VALUE>",
        "LABBY_MCP_HTTP_HOST": "127.0.0.1",
        "LABBY_MCP_HTTP_PORT": "8765",
        "LABBY_MCP_TRANSPORT": "http",
        "LABBY_MCP_HTTP_TOKEN": "<VALUE>",
        "LABBY_WEB_ASSETS_DIR": "<VALUE>",
        "LABBY_ACTOR_KEY_SECRET": "<VALUE>",
        "LABBY_AUTH_ADMIN_EMAIL": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_ID": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_SECRET": "<VALUE>",
        "LABBY_OAUTH_ENCRYPTION_KEY": "<VALUE>",
        "LABBY_WEB_UI_AUTH_DISABLED": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "ai-dinglebear-labby": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/labby"
      ],
      "env": {
        "LABBY_VERSION": "v1.3.0",
        "LABBY_REPO": "dinglebear-ai/labby",
        "LABBY_LOG": "labby=info,labby_apis=warn",
        "LABBY_LOG_DIR": "<VALUE>",
        "LABBY_AUTH_MODE": "bearer",
        "LABBY_LOG_COLOR": "<VALUE>",
        "LABBY_LOG_FORMAT": "<VALUE>",
        "LABBY_PUBLIC_URL": "<VALUE>",
        "LABBY_ADMIN_ENABLED": "<VALUE>",
        "LABBY_MCP_HTTP_HOST": "127.0.0.1",
        "LABBY_MCP_HTTP_PORT": "8765",
        "LABBY_MCP_TRANSPORT": "http",
        "LABBY_MCP_HTTP_TOKEN": "<VALUE>",
        "LABBY_WEB_ASSETS_DIR": "<VALUE>",
        "LABBY_ACTOR_KEY_SECRET": "<VALUE>",
        "LABBY_AUTH_ADMIN_EMAIL": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_ID": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_SECRET": "<VALUE>",
        "LABBY_OAUTH_ENCRYPTION_KEY": "<VALUE>",
        "LABBY_WEB_UI_AUTH_DISABLED": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ai-dinglebear-labby": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/labby"
      ],
      "env": {
        "LABBY_VERSION": "v1.3.0",
        "LABBY_REPO": "dinglebear-ai/labby",
        "LABBY_LOG": "labby=info,labby_apis=warn",
        "LABBY_LOG_DIR": "<VALUE>",
        "LABBY_AUTH_MODE": "bearer",
        "LABBY_LOG_COLOR": "<VALUE>",
        "LABBY_LOG_FORMAT": "<VALUE>",
        "LABBY_PUBLIC_URL": "<VALUE>",
        "LABBY_ADMIN_ENABLED": "<VALUE>",
        "LABBY_MCP_HTTP_HOST": "127.0.0.1",
        "LABBY_MCP_HTTP_PORT": "8765",
        "LABBY_MCP_TRANSPORT": "http",
        "LABBY_MCP_HTTP_TOKEN": "<VALUE>",
        "LABBY_WEB_ASSETS_DIR": "<VALUE>",
        "LABBY_ACTOR_KEY_SECRET": "<VALUE>",
        "LABBY_AUTH_ADMIN_EMAIL": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_ID": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_SECRET": "<VALUE>",
        "LABBY_OAUTH_ENCRYPTION_KEY": "<VALUE>",
        "LABBY_WEB_UI_AUTH_DISABLED": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "ai-dinglebear-labby": {
      "command": "npx",
      "args": [
        "-y",
        "@dinglebear/labby"
      ],
      "env": {
        "LABBY_VERSION": "v1.3.0",
        "LABBY_REPO": "dinglebear-ai/labby",
        "LABBY_LOG": "labby=info,labby_apis=warn",
        "LABBY_LOG_DIR": "<VALUE>",
        "LABBY_AUTH_MODE": "bearer",
        "LABBY_LOG_COLOR": "<VALUE>",
        "LABBY_LOG_FORMAT": "<VALUE>",
        "LABBY_PUBLIC_URL": "<VALUE>",
        "LABBY_ADMIN_ENABLED": "<VALUE>",
        "LABBY_MCP_HTTP_HOST": "127.0.0.1",
        "LABBY_MCP_HTTP_PORT": "8765",
        "LABBY_MCP_TRANSPORT": "http",
        "LABBY_MCP_HTTP_TOKEN": "<VALUE>",
        "LABBY_WEB_ASSETS_DIR": "<VALUE>",
        "LABBY_ACTOR_KEY_SECRET": "<VALUE>",
        "LABBY_AUTH_ADMIN_EMAIL": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_ID": "<VALUE>",
        "LABBY_GOOGLE_CLIENT_SECRET": "<VALUE>",
        "LABBY_OAUTH_ENCRYPTION_KEY": "<VALUE>",
        "LABBY_WEB_UI_AUTH_DISABLED": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
LABBY_VERSION No Optional GitHub release tag override for the downloaded Labby binary.
LABBY_REPO No Optional GitHub owner/repo override for release asset downloads. Default: dinglebear-ai/labby
LABBY_LOG No Tracing filter. Default: labby=info,labby_apis=warn
LABBY_LOG_DIR No Optional rolling JSON file log directory.
LABBY_AUTH_MODE No Authentication mode: 'bearer' or 'oauth'. Default is 'bearer'. Default: bearer
LABBY_LOG_COLOR No Non-TTY color policy.
LABBY_LOG_FORMAT No Text or json format for logging.
LABBY_PUBLIC_URL No Public base URL for OAuth metadata, issuer/audience, callbacks, and allowed-host derivation.
LABBY_ADMIN_ENABLED No Runtime opt-in for the lab_admin tool.
LABBY_MCP_HTTP_HOST No Host to bind the HTTP server. Default is '127.0.0.1'. Default: 127.0.0.1
LABBY_MCP_HTTP_PORT No Port to bind the HTTP server. Default is '8765'. Default: 8765
LABBY_MCP_TRANSPORT No Transport type for the MCP server. Default is 'http'. Default: http
LABBY_MCP_HTTP_TOKEN No Static bearer token for protected admin/API/MCP routes. If not provided, a random token is generated and stored in ~/.labby/.env.
LABBY_WEB_ASSETS_DIR No Override static Labby export directory.
LABBY_ACTOR_KEY_SECRET No Stable secret for redacted actor correlation in logs.
LABBY_AUTH_ADMIN_EMAIL No Bootstrap admin email. Required in OAuth mode.
LABBY_GOOGLE_CLIENT_ID No Google OAuth client ID. Required when LABBY_AUTH_MODE=oauth.
LABBY_GOOGLE_CLIENT_SECRET No Google OAuth client secret. Required when LABBY_AUTH_MODE=oauth.
LABBY_OAUTH_ENCRYPTION_KEY No Base64 32-byte key required for encrypted upstream OAuth credentials. Rotation requires reauthorizing affected upstreams.
LABBY_WEB_UI_AUTH_DISABLED No Development-only browser auth bypass.

Similar servers