Bytebase
v0.1.1Query, inspect, and change databases through Bytebase's governed workflow with audit logging.
Values you need
| Variable | What it is | |
|---|---|---|
BYTEBASE_URL | required | 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_HOME | optional | Directory for the OAuth sign-ins (default: ~/.bytebase-mcp) |
BYTEBASE_MCP_CALLBACK_PORT | optional | Loopback port that receives the OAuth redirect during sign-in (default: 51789) |
BYTEBASE_MCP_NO_BROWSER | optional | 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.1Add 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
- Ask the user for: BYTEBASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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