Bytebase

v0.1.1
io.github.bytebase/bytebase-mcp Checked 1 day ago Published 2 days ago

Query, inspect, and change databases through Bytebase's governed workflow with audit logging.

Values you need

VariableWhat it is
BYTEBASE_URLrequired External URL of your Bytebase instance (e.g. https://bytebase.example.com). The package connects to <BYTEBASE_URL>/mcp and signs you in with the instance's OAuth.
BYTEBASE_MCP_HOMEoptional Directory for the OAuth sign-ins (default: ~/.bytebase-mcp)
BYTEBASE_MCP_CALLBACK_PORToptional Loopback port that receives the OAuth redirect during sign-in (default: 51789)
BYTEBASE_MCP_NO_BROWSERoptional Set to 1 to print the sign-in URL instead of opening a browser

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add bytebase-mcp -e 'BYTEBASE_URL=<BYTEBASE_URL>' -- npx -y @bytebase/bytebase-mcp@0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "bytebase-mcp": {
      "args": [
        "-y",
        "@bytebase/bytebase-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "BYTEBASE_URL": "<BYTEBASE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "bytebase-mcp": {
      "args": [
        "-y",
        "@bytebase/bytebase-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "BYTEBASE_URL": "<BYTEBASE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BYTEBASE_URL",
      "id": "bytebase-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "bytebase-mcp": {
      "args": [
        "-y",
        "@bytebase/bytebase-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "BYTEBASE_URL": "${input:bytebase-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.bytebase-mcp]
command = "npx"
args = ["-y", "@bytebase/bytebase-mcp@0.1.1"]
env = { "BYTEBASE_URL" = "<BYTEBASE_URL>" }

For AI agents

  1. Ask the user for: BYTEBASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: administer_workspace, call_api, decide_issue, get_gitops_workflow, get_schema, grant_masking_exemption, propose_database_change, query_database, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json