Tools
- reference
Reference of the tools the Couchbase MCP Server exposes, grouped by category.
The Couchbase MCP Server exposes several tools across multiple categories. The list of supported tools is constantly evolving so check the GitHub readme for the latest set of tools. Each tool is available to LLMs through the MCP protocol.
Cluster Setup & Health
Tools for checking server status and cluster connectivity.
| Tool | Description | |
|---|---|---|
|
Get 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 |
|
|
Check the cluster credentials by connecting to the cluster |
|
|
Get cluster health status and list of all running services |
Data Model & Schema Discovery
Tools for exploring buckets, scopes, collections, and document schemas.
Tools that modify structure are disabled by default when CB_MCP_READ_ONLY_MODE=true.
| Tool | Description | |
|---|---|---|
|
Get a list of all the buckets in the cluster |
|
|
Get a list of all the scopes in the specified bucket |
|
|
Get a list of all the collections in a specified scope and bucket |
|
|
Get a list of all the scopes and collections in the specified bucket |
|
|
Infer the document structure for a collection |
|
|
Create a new scope in a bucket |
|
|
Create a new collection in a scope |
|
|
Delete an existing scope |
|
|
Delete an existing collection |
Document KV Operations
Tools for reading and writing documents by ID.
Tools that modify data are disabled by default when CB_MCP_READ_ONLY_MODE=true.
| Tool | Description | |
|---|---|---|
|
Get a document by ID from a specified scope and collection |
|
|
Insert or update a document by ID |
|
|
Insert a new document by ID (fails if document exists) |
|
|
Replace an existing document by ID (fails if document does not exist) |
|
|
Delete a document by ID |
|
|
Retrieve one or more paths ( |
|
|
Mutate one or more paths in a document ( |
Query and Indexing
Tools for running SQL++ queries, listing indexes, and getting index recommendations.
Tools that create, build, or drop indexes are disabled by default when CB_MCP_READ_ONLY_MODE=true.
| Tool | Description | |
|---|---|---|
|
Run a SQL++ query on a specified scope |
|
|
Provides information about the execution plan for the statement. This includes operators such as scans, joins, and filters; it aids in performance tuning by showing index usage, cost estimates, and data access paths |
|
|
List all indexes in the cluster with their definitions, with optional filtering. Set |
|
|
Get index recommendations from Couchbase Index Advisor for a given SQL++ query |
|
|
Create a non-vector GSI index, deferred by default. Not applicable to vector indexes. |
|
|
Build a deferred index. Applies to all index types, including vector indexes. |
|
|
Drop an existing index. Applies to all index types, including vector indexes. |
Query Performance Analysis
Tools for identifying slow queries, missing indexes, and optimization opportunities.
These tools query system:completed_requests.
| Tool | Description | |
|---|---|---|
|
Get longest running queries by average service time |
|
|
Get most frequently executed queries |
|
|
Get queries that are not selective |
|
|
Get queries that do not use a covering index |
|
|
Get queries that use a primary index (potential performance concern) |
|
|
Get queries with the largest response sizes |
|
|
Get queries with the largest result counts |