MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

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)

ToolCategoryDescription
list_tablesdiscoveryList all tables in the current database or schema
describe_tablediscoveryGet column details, types, and indexes for a table
manage_schemamanagementCreate, alter, or drop tables and database objects
execute_queryqueryExecute 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