Skip to main content
Glama
sevoniva

OceanBase MCP

by sevoniva

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OB_HOSTYesHostname or IP of the OceanBase proxy or direct connect address.
OB_PORTNoPort number of the OceanBase proxy.2883
OB_USERYesUsername for the OceanBase connection, typically in format user@tenant#cluster.
NODE_ENVNoNode environment.production
OB_MCP_HOSTNoBind address for the HTTP server.127.0.0.1
OB_PASSWORDNoPassword for the OceanBase user. Either this or OB_PASSWORD_FILE must be set.
OB_PRODUCTIONNoSet to 'true' for production mode.false
OB_COMPATIBILITYNoCompatibility mode: 'mysql' or 'oracle'.mysql
OB_MCP_READ_ONLYNoMust be 'true' to start the server.true
OB_PASSWORD_FILENoPath to a file containing the password. Alternative to OB_PASSWORD.
OB_MCP_AUTH_TOKENNoBearer token for HTTP authentication.
OB_ALLOWED_SCHEMASNoComma-separated list of allowed schemas.
OB_MCP_ALLOWED_IPSNoComma-separated IPs or CIDR for source IP allowlist.
OB_ALLOW_SELECT_STARNoAllow SELECT * queries.false
OB_MCP_ALLOWED_HOSTSNoComma-separated allowed Host headers.
OB_MCP_AUTH_TOKEN_FILENoPath to a file containing the bearer token.
OB_ENFORCE_READ_ONLY_TXNoEnforce read-only transactions.true

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ob_list_profilesA

List configured OceanBase MCP profiles with redacted settings.

ob_config_diagnosticsB

Check profile, policy, TLS, HTTP, and production hardening settings.

ob_pingC

Verify the configured OceanBase connection.

ob_policy_explainB

Explain whether a SQL statement is allowed and which read-only or access-policy checks apply.

ob_queryC

Run a strictly read-only SQL statement against OceanBase.

ob_list_schemasC

List schemas/databases visible to the current OceanBase user, filtered by access policy.

ob_list_tablesB

List tables visible to the current OceanBase user, filtered by access policy.

ob_describe_tableC

Return column metadata for an allowed OceanBase table.

ob_explainC

Run EXPLAIN for a strictly read-only SQL statement.

ob_search_catalogC

Search schemas, tables, columns, and comments, filtered by access policy.

ob_get_table_schemaB

Return policy-filtered table columns and types for one table.

ob_get_indexesC

Return indexes for an allowed OceanBase table.

ob_get_constraintsC

Return constraints for an allowed OceanBase table.

ob_get_partitionsC

Return partition metadata for an allowed OceanBase table.

ob_sample_rowsB

Return a small, policy-filtered sample from an allowed table. Sensitive-looking fields are always masked.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
connectionDefault OceanBase MCP connection settings, excluding password and SSL material.
profilesConfigured OceanBase profiles with redacted connection settings.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sevoniva/oceanbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server