Skip to main content
Glama

Couchbase MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CB_PASSWORDYesThe password for the username to connect
CB_USERNAMEYesThe username with access to the bucket to use to connect
MCP_TRANSPORTNoTransport mode for the MCP server (stdio or sse)
CB_BUCKET_NAMEYesThe name of the bucket that the server will access
CB_CONNECTION_STRINGYesThe connection string to the Couchbase cluster
READ_ONLY_QUERY_MODENoSetting to configure whether SQL++ queries that allow data to be modified are allowedtrue

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_server_configuration_status

Get the server status and configuration without establishing connections. This tool can be used to verify the server is running and check configuration.

test_connection

Test the connection to Couchbase cluster and bucket. Returns connection status and basic cluster information.

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.

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.

upsert_document_by_id

Insert or update a document by its ID. Returns True on success, False on failure.

delete_document_by_id

Delete a document by its ID. Returns True on success, False on failure.

get_schema_for_collection

Get the schema for a collection in the specified scope. Returns a dictionary with the schema returned by running INFER on the Couchbase collection.

run_sql_plus_plus_query

Run a SQL++ query on a scope and return the results as a list of JSON objects.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Couchbase-Ecosystem/mcp-server-couchbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server