Couchbase MCP Server

Interact with the data stored in Couchbase clusters using natural language.

Remote serverstreamable-httpPython

What is the Couchbase MCP Server?

Interact with the data stored in Couchbase clusters using natural language.

What you get

Couchbase MCP Server is a self-hosted MCP Server that allows AI agents to connect to and interact with data in Couchbase clusters, whether hosted on Capella or self-managed. It provides tools across categories including Cluster Health, Data Schema, Key-Value, Query, and Performance — with safety controls via read-only mode and fine-grained tool disabling. It supports both STDIO and Streamable HTTP transports.

Configuration and credentials

  • Python 3.10 or higher. - A running Couchbase cluster. The easiest way to get started is to use Capella free tier, which is fully managed version of Couchbase server. You can follow instructions to import one

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_server_configuration_statusGet the server status and configuration without connecting to the cluster — reports read-only mode, disabled/confirmation-required tools, OAuth settings, and the resolved logging configuration
test_cluster_connectionCheck the cluster credentials by connecting to the cluster
get_cluster_health_and_servicesGet cluster health status and list of all running services
get_buckets_in_clusterGet a list of all the buckets in the cluster
get_scopes_in_bucketGet a list of all the scopes in the specified bucket
get_collections_in_scopeGet a list of all the collections in a specified scope and bucket. Note that this tool requires the cluster to have Query service.
get_scopes_and_collections_in_bucketGet a list of all the scopes and collections in the specified bucket
get_schema_for_collectionGet the structure for a collection
get_document_by_idGet a document by ID from a specified scope and collection
upsert_document_by_idUpsert a document by ID to a specified scope and collection. **Disabled by default when CB_MCP_READ_ONLY_MODE=true.**
insert_document_by_idInsert a new document by ID (fails if document exists). **Disabled by default when CB_MCP_READ_ONLY_MODE=true.**
replace_document_by_idReplace an existing document by ID (fails if document doesn't exist). **Disabled by default when CB_MCP_READ_ONLY_MODE=true.**
delete_document_by_idDelete a document by ID from a specified scope and collection. **Disabled by default when CB_MCP_READ_ONLY_MODE=true.**
list_indexesList all indexes in the cluster with their definitions, with optional filtering by bucket, scope, collection and index name. Set return_raw_index_stats=true to return the unprocessed index information.

How to install the Couchbase MCP Server

{
  "mcpServers": {
    "couchbase": {
      "command": "uvx",
      "args": [
        "couchbase-mcp-server"
      ],
      "env": {
        "CB_CONNECTION_STRING": "couchbases://connection-string",
        "CB_USERNAME": "username",
        "CB_PASSWORD": "YOUR_CB_PASSWORD"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.10 or higher. - A running Couchbase cluster. The easiest way to get started is to use Capella free tier, which is fully managed version of Couchbase server. You can follow instructions to import one
VariableDescriptionRequired
CB_CONNECTION_STRINGDeclared in the maintainer’s client configuration.Check documentation
CB_USERNAMEDeclared in the maintainer’s client configuration.Yes
CB_PASSWORDDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Couchbase to get server configuration status.”
  • “Use Couchbase to test cluster connection.”
  • “Use Couchbase to get cluster health and services.”

Frequently asked questions

Interact with the data stored in Couchbase clusters using natural language. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.