OceanBase MCP
by OceanBase
Distributed HTAP database for SQL queries and schema management via MCP
database Python Intermediate Self-hostable
β 50 stars π
Updated: 1mo ago
Description
MCP server for OceanBase, a distributed database that supports both transactional (OLTP) and analytical (OLAP) processing in a single system β known as HTAP (Hybrid Transactional/ Analytical Processing). This server enables AI assistants to execute SQL queries, explore table schemas, list tables, and manage database objects on OceanBase clusters. OceanBase is designed for mission-critical applications requiring high availability, horizontal scalability, and strong consistency. It is MySQL-compatible and supports multi-tenancy, making it suitable for large enterprises managing multiple workloads on shared infrastructure.
β Best for
Enterprise teams running mixed transactional and analytical workloads on a distributed database with high availability requirements
βοΈ Skip if
You need a lightweight local database or your workloads are small enough for a single-node setup
π‘ Use cases
- Executing SQL queries on distributed HTAP databases from AI assistants
- Exploring table structures and schema relationships in OceanBase clusters
- Managing database objects (tables, indexes, views) through natural language
- Running both transactional and analytical queries on a single database
π Pros
- β True HTAP β handles both OLTP and OLAP in one system without data replication
- β MySQL-compatible SQL dialect makes it familiar for LLMs to generate queries
- β Distributed architecture with strong consistency and high availability
- β Multi-tenant support for isolating workloads on shared infrastructure
π Cons
- β Requires an OceanBase cluster deployment, which has significant resource requirements
- β Smaller community outside of China compared to other distributed databases
- β Configuration complexity β multi-tenant setup adds operational overhead
π§ Exposed tools (4 tools)
| Tool | Category | Description |
|---|---|---|
| list_tables | discovery | List all tables in the current database or schema |
| describe_table | discovery | Get column details, types, and indexes for a table |
| manage_schema | management | Create, alter, or drop tables and database objects |
| execute_query | query | Execute a SQL query on the OceanBase database |
β‘ Installation
Prerequisites:
- β’ python v3.10+
- β’ OceanBase database credentials (host, port, user, password, tenant)
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
OceanBase is MySQL-compatible, so standard SQL works for most operations. Always specify the tenant when connecting. Use list_tables to discover available objects before querying. For analytical queries on large datasets, OceanBase's columnar storage engine kicks in automatically β no special syntax needed.
π Alternatives
Quick info
- Author
- OceanBase
- License
- Apache-2.0
- Runtime
- Python 3.10+
- Transport
- stdio
- Category
- database
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows