Couchbase MCP Server (TypeScript/Bun Version)

An MCP server implementation of Couchbase that allows LLMs to directly interact with Couchbase clusters.

Local serverstdio

What is the Couchbase MCP Server (TypeScript/Bun Version) MCP Server?

Couchbase MCP Server (TypeScript/Bun Version) is an MCP project maintained in the zx8086/mcp-server-couchbase repository. The maintainer describes its purpose as “An MCP server implementation of Couchbase that allows LLMs to directly interact with Couchbase clusters”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using bun. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares COUCHBASE_URL, COUCHBASE_USERNAME, COUCHBASE_PASSWORD, COUCHBASE_BUCKET, COUCHBASE_SCOPE, COUCHBASE_COLLECTION, LOG_LEVEL, DOCS_ENABLED, DOCS_BASE_DIR, DOCS_FILE_EXT, PWD, PATH. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

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_scopes_and_collectionsList all scopes and collections in the specified bucket
get_schema_for_collectionGet the structure and schema for a specific collection
get_document_by_idRetrieve a document by ID from a specified scope and collection
upsert_document_by_idCreate or update a document by ID in a specified scope and collection
delete_document_by_idRemove a document by ID from a specified scope and collection
run_sql_plus_plus_queryExecute SQL++ queries on a specified scope
get_detailed_indexesGet comprehensive information about database indexes
get_detailed_prepared_statementsView detailed information about prepared statements
get_system_vitalsMonitor system health metrics
get_system_nodesView information about cluster nodes
get_most_expensive_queriesIdentify queries with highest resource consumption
suggest_query_optimizationsGet recommendations for query performance improvements
analyze_document_structureAnalyze and understand document structure patterns
get_document_type_examplesView example documents for different types
get_prepared_statementsList all prepared statements
get_indexes_to_dropIdentify unused or redundant indexes
get_completed_requestsView completed query requests
get_system_indexesList all system indexes
get_primary_index_queriesIdentify queries using primary indexes
get_largest_result_count_queriesFind queries returning the most results
get_largest_result_size_queriesIdentify queries with largest result sizes
get_most_frequent_queriesView most commonly executed queries
get_longest_running_queriesIdentify queries with longest execution times
get_fatal_requestsView failed query requests
list_documentationList available documentation for the MCP server tools and features
read_documentationRead specific documentation entries
create_documentationCreate new documentation entries for tools and features
delete_documentationRemove documentation entries
sync_documentationSynchronize and update existing documentation
list_playbooksList available playbooks for database operations

How to install the Couchbase MCP Server (TypeScript/Bun Version) MCP Server

{
  "mcpServers": {
    "couchbase-capella-mcp": {
      "command": "bun",
      "args": [
        "/path/to/your/mcp-server-couchbase/dist/index.js",
        "--transport",
        "stdio"
      ],
      "env": {
        "COUCHBASE_URL": "couchbases://your-cluster-url",
        "COUCHBASE_USERNAME": "your-username",
        "COUCHBASE_PASSWORD": "YOUR_COUCHBASE_PASSWORD",
        "COUCHBASE_BUCKET": "your-bucket",
        "COUCHBASE_SCOPE": "your-scope",
        "COUCHBASE_COLLECTION": "your-collection",
        "LOG_LEVEL": "debug",
        "DOCS_ENABLED": "true",
        "DOCS_BASE_DIR": "/path/to/your/mcp-server-couchbase/docs",
        "DOCS_FILE_EXT": ".md",
        "PWD": "/path/to/your/mcp-server-couchbase",
        "PATH": "/Users/your-username/.bun/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      },
      "cwd": "/path/to/your/mcp-server-couchbase"
    }
  }
}

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

Configuration

VariableDescriptionRequired
COUCHBASE_URLDeclared in the maintainer’s client configuration.Check documentation
COUCHBASE_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
COUCHBASE_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
COUCHBASE_BUCKETDeclared in the maintainer’s client configuration.Check documentation
COUCHBASE_SCOPEDeclared in the maintainer’s client configuration.Check documentation
COUCHBASE_COLLECTIONDeclared in the maintainer’s client configuration.Check documentation
LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation
DOCS_ENABLEDDeclared in the maintainer’s client configuration.Check documentation
DOCS_BASE_DIRDeclared in the maintainer’s client configuration.Check documentation
DOCS_FILE_EXTDeclared in the maintainer’s client configuration.Check documentation
PWDDeclared in the maintainer’s client configuration.Check documentation
PATHDeclared in the maintainer’s client configuration.Check documentation