Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Databases - official Couchbase server

Couchbase MCP server

Self-hosted MCP server that connects AI agents to Couchbase clusters on Capella or self-managed, with tools for cluster health, schema discovery, key-value operations, SQL++ queries, indexing, full-text and vector search, and query performance analysis. It runs locally from couchbase-mcp-server (pypi); the notes below cover how it authenticates.

Last verified 15 tools3 sources

Install

VS Code

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

Generic

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

Tools

get_server_configuration_status
Get server status and configuration without connecting to the cluster
test_cluster_connection
Check the cluster credentials by connecting to the cluster
get_cluster_health_and_services
Get cluster health status and list of all running services
get_buckets_in_cluster
Get a list of all the buckets in the cluster
get_scopes_and_collections_in_bucket
Get a list of all the scopes and collections in the specified bucket
get_schema_for_collection
Get the structure for a collection
get_document_by_id
Get a document by ID from a specified scope and collection
upsert_document_by_id
Upsert a document by ID (disabled in read-only mode)
delete_document_by_id
Delete a document by ID (disabled in read-only mode)
run_sql_plus_plus_query
Run a SQL++ query on a specified scope
explain_sql_plus_plus_query
Generate and evaluate an EXPLAIN plan for a SQL++ query
list_indexes
List all indexes in the cluster with their definitions
get_index_advisor_recommendations
Get Index Advisor recommendations for a SQL++ query
run_search
Run an FTS query against a Search index, or fetch its execution plan
get_longest_running_queries
Query performance analysis: find the longest running queries

As documented on October 17, 2026. A running server reports its current list through tools/list.

Notes and caveats

  • Read-only mode is on by default (set CB_MCP_READ_ONLY_MODE=false to enable writes); individual tools can be disabled or require confirmation.
  • Cluster auth is Couchbase username/password or mTLS client certificates; Streamable HTTP deployments can add OAuth 2.1 (JWT/JWKS, provider-agnostic).
  • Several cluster/index tools are self-managed Couchbase Server 7.6+ only, not Capella.
  • The same package also ships an Operational Insights server mode (uvx couchbase-mcp-server operational-insights).
  • Enterprise support requires licensing Couchbase AI Data Plane.
  • Docs reference Claude Desktop, Cursor (one-click link using the generic config), Windsurf, VS Code and JetBrains; no Claude Code or Codex snippet.
  • Requires Python 3.10+ and uv.
  • Latest PyPI release 1.0.1.post1 on 2026-08-25.
  • Status recorded as ga based on v1.0 architecture docs and enterprise support offering, no preview label.

FAQ

What does the Couchbase MCP server do?

Self-hosted MCP server that connects AI agents to Couchbase clusters on Capella or self-managed, with tools for cluster health, schema discovery, key-value operations, SQL++ queries, indexing, full-text and vector search, and query performance analysis. The vendor documents 15 tools, including get_server_configuration_status, test_cluster_connection, get_cluster_health_and_services and get_buckets_in_cluster.

How do I add the Couchbase MCP server to VS Code?

Couchbase documents a VS Code config; copy it from the VS Code section of this page. Snippets for Generic are there too.

Does the Couchbase MCP server need authentication?

It uses a scheme other than OAuth or an API key, such as the session of the app or instance it runs in; the notes on this page describe it. Transport: stdio, Streamable HTTP, SSE. Status: GA, last checked October 17, 2026.

Sources

Last verified against 3 Couchbase pages, then re-checked independently.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.