Connect AI assistants to Bytebase using the Model Context Protocol.Documentation Index
Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Configure external URL if you haven’t already.
- OAuth authentication is required on first connection. Ensure you have appropriate Bytebase permissions.
Setup
Navigate to Integration > MCP in your Bytebase console. Choose one of the following options:Option 1: JSON Configuration
Add this JSON to your MCP client configuration file:Option 2: CLI Commands
Alternatively, use the CLI command shown on the MCP integration page for your preferred tool (Claude Code, Codex, Copilot CLI, Gemini CLI, or VS Code).Authentication
To connect to Bytebase, you need to finish the authentication process via OAuth by logging into Bytebase and authorizing the AI to access your Bytebase account.
Usage
Once connected, try asking your AI assistant:- “List all projects in my Bytebase instance”
- “Show me the schema for database X”
- “Generate a migration script to add a users table”

