Couchbase is a distributed document database with a powerful search engine and in-built operational and analytical capabilities.
1.5K
2
11 Tools
Version 4.43 or later needs to be installed to add the server automatically
Use cases
About
Couchbase is a distributed document database with a powerful search engine and in-built operational and analytical capabilities.
Attribute | Details |
---|---|
Docker Image | mcp/couchbase |
Author | Couchbase-Ecosystem |
Repository | https://github.com/Couchbase-Ecosystem/mcp-server-couchbase |
Dockerfile | https://github.com/Couchbase-Ecosystem/mcp-server-couchbase/blob/main/Dockerfile |
Docker Image built by | Docker Inc. |
Docker Scout Health Score | |
Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/couchbase --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
Licence | Apache License 2.0 |
Tools provided by this Server | Short Description |
---|---|
delete_document_by_id | Delete a document by its ID. |
get_buckets_in_cluster | Get the names of all the accessible buckets in the cluster. |
get_collections_in_scope | Get the names of all collections in the given scope and bucket. |
get_document_by_id | Get a document by its ID from the specified scope and collection. |
get_schema_for_collection | Get the schema for a collection in the specified scope. |
get_scopes_and_collections_in_bucket | Get the names of all scopes and collections in the bucket. |
get_scopes_in_bucket | Get the names of all scopes in the given bucket. |
get_server_configuration_status | Get the server status and configuration without establishing connection. |
run_sql_plus_plus_query | Run a SQL++ query on a scope and return the results as a list of JSON objects. |
test_cluster_connection | Test the connection to Couchbase cluster and optionally to a bucket. |
upsert_document_by_id | Insert or update a document by its ID. |
delete_document_by_id
Delete a document by its ID. Returns True on success, False on failure.
Parameters | Type | Description |
---|---|---|
bucket_name | string | |
collection_name | string | |
document_id | string | |
scope_name | string |
get_buckets_in_cluster
Get the names of all the accessible buckets in the cluster.
get_collections_in_scope
Get the names of all collections in the given scope and bucket.
Parameters | Type | Description |
---|---|---|
bucket_name | string | |
scope_name | string |
get_document_by_id
Get a document by its ID from the specified scope and collection. If the document is not found, it will raise an exception.
Parameters | Type | Description |
---|---|---|
bucket_name | string | |
collection_name | string | |
document_id | string | |
scope_name | string |
get_schema_for_collection
Get the schema for a collection in the specified scope. Returns a dictionary with the collection name and the schema returned by running INFER query on the Couchbase collection.
Parameters | Type | Description |
---|---|---|
bucket_name | string | |
collection_name | string | |
scope_name | string |
get_scopes_and_collections_in_bucket
Get the names of all scopes and collections in the bucket. Returns a dictionary with scope names as keys and lists of collection names as values.
Parameters | Type | Description |
---|---|---|
bucket_name | string |
get_scopes_in_bucket
Get the names of all scopes in the given bucket.
Parameters | Type | Description |
---|---|---|
bucket_name | string |
get_server_configuration_status
Get the server status and configuration without establishing connection. This tool can be used to verify if the server is running and check the configuration.
run_sql_plus_plus_query
Run a SQL++ query on a scope and return the results as a list of JSON objects.
Parameters | Type | Description |
---|---|---|
bucket_name | string | |
query | string | |
scope_name | string |
test_cluster_connection
Test the connection to Couchbase cluster and optionally to a bucket. This tool verifies the connection to the Couchbase cluster and bucket by establishing the connection if it is not already established. If bucket name is not provided, it will not try to connect to the bucket specified in the MCP server settings. Returns connection status and basic cluster information.
Parameters | Type | Description |
---|---|---|
bucket_name | string optional |
upsert_document_by_id
Insert or update a document by its ID. Returns True on success, False on failure.
Parameters | Type | Description |
---|---|---|
bucket_name | string | |
collection_name | string | |
document_content | object | |
document_id | string | |
scope_name | string |
{
"mcpServers": {
"couchbase": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"CB_CONNECTION_STRING",
"-e",
"CB_USERNAME",
"-e",
"CB_BUCKET_NAME",
"-e",
"CB_MCP_READ_ONLY_QUERY_MODE",
"-e",
"CB_PASSWORD",
"mcp/couchbase"
],
"env": {
"CB_CONNECTION_STRING": "couchbases://cb.example.com",
"CB_USERNAME": "Administrator",
"CB_BUCKET_NAME": "my-bucket",
"CB_MCP_READ_ONLY_QUERY_MODE": "true",
"CB_PASSWORD": "<CB_PASSWORD>"
}
}
}
}
Manual installation
You can install the MCP server using:
Installation for