Oceanbase MCP Server

Read-only MCP gateway and local developer assistant for OceanBase.

Local serverstdio

What is the Oceanbase MCP server?

Read-only MCP gateway and local developer assistant for OceanBase. Exposed over MCP by the oceanbase mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

OceanBase MCP is a strictly read-only MCP server for OceanBase. It lets OpenCode and other MCP clients inspect schemas, metadata, query plans, ER relationships, and limited sample data without exposing write capability.

Adding it to your client

The server ships on npm as @sevoniva/oceanbase-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Its toolset

Everything the assistant can do here goes through one of these:

  • Area — 中文
  • Metadata — 表结构、DDL、索引、约束、分区、统计信息和 Oracle 对象元数据。
  • Deployment — stdio、本地 OpenCode、HTTP、Docker、Kubernetes、systemd 和 Nginx 示例。
  • Workflow — 中文
  • Topic — 中文
  • Tools工具列表
  • OpenCode接入 OpenCode
  • CLICLI
  • Configuration配置说明
  • Architecture架构说明
  • Security安全基线
  • Examples示例索引

Configuration

You will need one environment variable: OB_CONFIG_PATH. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Oceanbase.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the oceanbase mcp server does with a few real requests.

When to reach for it

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Oceanbase's toolset — Area, Metadata, Deployment and 11 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
Area中文
Metadata表结构、DDL、索引、约束、分区、统计信息和 Oracle 对象元数据。
Deploymentstdio、本地 OpenCode、HTTP、Docker、Kubernetes、systemd 和 Nginx 示例。
Workflow中文
Topic中文
Tools[工具列表](docs/zh-CN/tools.md)
OpenCode[接入 OpenCode](docs/zh-CN/opencode.md)
CLI[CLI](docs/zh-CN/cli.md)
Configuration[配置说明](docs/zh-CN/configuration.md)
Architecture[架构说明](docs/zh-CN/architecture.md)
Security[安全基线](docs/zh-CN/security.md)
Examples[示例索引](examples/README.zh-CN.md)
Version中文
v0.3.0建立只读 MCP 网关、OceanBase MySQL/Oracle 连接、基础 SQL 策略、表元数据和脱敏样例数据。

How to install the Oceanbase MCP server

{
  "mcpServers": {
    "oceanbase-1": {
      "command": "npx",
      "args": ["-y", "@sevoniva/oceanbase-mcp"],
      "env": {
        "OB_CONFIG_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
OB_CONFIG_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Oceanbase to Area.
  • Use Oceanbase to Metadata.
  • Use Oceanbase to Deployment.

Frequently asked questions

It connects Oceanbase to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Area, Metadata, Deployment, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Oceanbase directly.