Back to MCP Directory
Couchbase
Model Context Protocol moderate risk

Couchbase

The Couchbase MCP Server enables LLMs to interact with Couchbase clusters, offering tools for cluster management, schema discovery, data operations, query execution, and performance analysis, with configurable read-only modes for safety.

Connections & Capabilities

Connects To

GitHubDocker

Capabilities

readwriteexecadmin

Quickstart

Install

uvx couchbase-mcp-server --version

Config

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

Exposed MCP Tools (23)

safe
get_server_configuration_status

Retrieves the status of the MCP server.

Read-only operation with no side effects.

safe
test_cluster_connection

Tests the connection to the Couchbase cluster using provided credentials.

Read-only operation that only validates connectivity.

safe
get_cluster_health_and_services

Retrieves the health status and list of running services in the Couchbase cluster.

Read-only operation providing cluster information.

safe
get_buckets_in_cluster

Lists all buckets within the Couchbase cluster.

Read-only operation listing available buckets.

safe
get_scopes_in_bucket

Lists all scopes within a specified bucket.

Read-only operation listing scopes in a bucket.

safe
get_collections_in_scope

Lists all collections within a specified scope and bucket.

Read-only operation listing collections.

safe
get_scopes_and_collections_in_bucket

Lists all scopes and collections within a specified bucket.

Read-only operation listing scopes and collections.

safe
get_schema_for_collection

Retrieves the schema structure for a specified collection.

Read-only operation retrieving schema information.

safe
get_document_by_id

Retrieves a document by its ID from a specified scope and collection.

Read-only operation retrieving a single document.

high
upsert_document_by_id

Upserts (inserts or updates) a document by ID to a specified scope and collection.

Modifies data by inserting or updating a document; disabled by default in read-only mode.

high
insert_document_by_id

Inserts a new document by ID into a specified scope and collection (fails if the document already exists).

Modifies data by inserting a new document; disabled by default in read-only mode.

high
replace_document_by_id

Replaces an existing document by ID in a specified scope and collection (fails if the document does not exist).

Modifies data by replacing an existing document; disabled by default in read-only mode.

critical
delete_document_by_id

Deletes a document by ID from a specified scope and collection.

Destructive operation that permanently removes a document; disabled by default in read-only mode.

safe
list_indexes

Lists all indexes in the cluster with their definitions, optionally filtered by bucket, scope, collection, and index name.

Read-only operation listing index information.

safe
get_index_advisor_recommendations

Provides index recommendations from Couchbase Index Advisor for a given SQL++ query to optimize query performance.

Read-only operation providing index optimization suggestions.

moderate
run_sql_plus_plus_query

Executes a SQL++ query on a specified scope.

Can potentially modify data depending on the query; write operations are blocked in read-only mode.

safe
get_longest_running_queries

Retrieves the longest running queries by average service time.

Read-only operation for performance analysis.

safe
get_most_frequent_queries

Retrieves the most frequently executed queries.

Read-only operation for performance analysis.

safe
get_queries_with_largest_response_sizes

Retrieves queries with the largest response sizes.

Read-only operation for performance analysis.

safe
get_queries_with_large_result_count

Retrieves queries with the largest result counts.

Read-only operation for performance analysis.

safe
get_queries_using_primary_index

Retrieves queries that use a primary index.

Read-only operation for performance analysis.

safe
get_queries_not_using_covering_index

Retrieves queries that do not use a covering index.

Read-only operation for performance analysis.

safe
get_queries_not_selective

Retrieves queries that are not selective.

Read-only operation for performance analysis.

Safety Assessment

The Couchbase MCP Server is relatively safe in its default read-only configuration. Enabling write operations increases the risk, requiring careful consideration of the LLM's capabilities and access controls. Secure credential management and tool disabling are crucial for mitigating potential risks.

  • Default read-only mode prevents unintended data modification.
  • Option to disable specific tools to limit functionality.
  • mTLS authentication support enhances security.
  • Provides cluster health and configuration status tools.
  • Write operations are possible if read-only mode is disabled.
  • Improperly configured SQL++ queries could lead to data modification.
  • Access control relies on Couchbase cluster's RBAC.
  • Exposure of database credentials in environment variables if not properly managed.
Couchbase Review, Pricing & Alternatives (2026) | Flaex AI