MCP Server Couchbase
io.github.couchbase/mcp-server-couchbase
v1.1.0Updated Nov 2, 2026stdio · Dockerstdio · PyPI
Couchbase MCP servers: Operational and Operational Insights clusters.
Install
Replace 4 placeholders with your own values.
Run in your terminal. Replace 4 placeholders.
claude mcp add mcp-server-couchbase -- uvx couchbase-mcp-server==1.1.0 operational --password '<your-password>' --embedding-model-api-key '<your-embedding-model-api-key>' --embedding-model-aws-access-key-id '<your-embedding-model-aws-access-key-id>' --embedding-model-aws-secret-access-key '<your-embedding-model-aws-secret-access-key>'Configuration
110 settings.
subcommandArgument· requiredRuns the operational Couchbase cluster MCP server. Fixed; not user-configurable.CB_PASSWORDEnv var· optional· secretCouchbase database password. Required for basic authentication.CB_MCP_EMBEDDING_MODEL_API_KEYEnv var· optional· secretAPI key for the configured embedding provider. Not used by bedrock (uses the AWS credential chain / CB_MCP_EMBEDDING_MODEL_AWS_* instead).CB_MCP_EMBEDDING_MODEL_AWS_ACCESS_KEY_IDEnv var· optional· secretAWS access key ID, bedrock provider only. Omit to use the default AWS credential chain.CB_MCP_EMBEDDING_MODEL_AWS_SECRET_ACCESS_KEYEnv var· optional· secretAWS secret access key, bedrock provider only.--passwordArgument· optional· secretCouchbase database password. Required for basic authentication.
Show 104 moreShow fewer
--embedding-model-api-keyArgument· optional· secretAPI key for the configured embedding provider. Not used by bedrock (uses the AWS credential chain / --embedding-model-aws-* instead).--embedding-model-aws-access-key-idArgument· optional· secretAWS access key ID, bedrock provider only. Omit to use the default AWS credential chain.--embedding-model-aws-secret-access-keyArgument· optional· secretAWS secret access key, bedrock provider only.CB_OPERATIONAL_INSIGHTS_PASSWORDEnv var· optional· secretOperational Insights database password. Required for basic authentication.CB_OPERATIONAL_INSIGHTS_CLIENT_CERT_PASSWORDEnv var· optional· secretDecryption password for the client key or PKCS#12 bundle, if it is encrypted. Omit if the file is unencrypted.--client-cert-passwordArgument· optional· secretDecryption password for the client key or PKCS#12 bundle, if it is encrypted. Omit if the file is unencrypted.CB_CONNECTION_STRINGEnv var· optionalCouchbase connection string. Required for connecting to the cluster.CB_USERNAMEEnv var· optionalCouchbase database username. Required for basic authentication.CB_CA_CERT_PATHEnv var· optionalCouchbase CA certificate path. Required for TLS authentication in non Capella clusters.CB_CLIENT_CERT_PATHEnv var· optionalCouchbase client certificate path. Required for mTLS authentication.CB_CLIENT_KEY_PATHEnv var· optionalCouchbase client key path. Required for mTLS authentication.CB_MCP_READ_ONLY_MODEEnv var· optionalCouchbase read only mode. Set to true to disable write operations: KV document, scope/collection and index write tools are not loaded, and SQL++ queries that modify data are blocked. Set to false to allow them. Default is true.CB_MCP_TRANSPORTEnv var· optionalTransport mode for the server (stdio, http or sse). Default is stdio. OAuth is only honored with http.CB_MCP_HOSTEnv var· optionalHost to run the MCP server on (default: 127.0.0.1). Used only for HTTP and SSE transport modes.CB_MCP_PORTEnv var· optionalPort to run the MCP server on (default: 8000). Used only for HTTP and SSE transport modes.CB_MCP_WORKERSEnv var· optionalNumber of server worker processes (default: 1). Values above 1 use more CPU cores, require the http transport, run in stateless HTTP mode, and cannot be combined with CB_MCP_CONFIRMATION_REQUIRED_TOOLS. Each worker writes log files named with the host and process id.CB_MCP_STATELESS_HTTPEnv var· optionalHandle each HTTP request without per-session state (default: true when workers > 1, otherwise false). Only honored with the http transport; cannot be combined with CB_MCP_CONFIRMATION_REQUIRED_TOOLS.CB_MCP_DISABLED_TOOLSEnv var· optionalTools to disable. Accepts comma-separated tool names (e.g., 'tool_1,tool_2') or a file path containing one tool name per line.CB_MCP_CONFIRMATION_REQUIRED_TOOLSEnv var· optionalComma-separated tool names that require user confirmation before execution. Also accepts a file path containing one tool name per line. Requires the MCP client to support elicitation.CB_MCP_LOG_LEVELEnv var· optionalLogging level for the MCP server. One of off, debug, info, warning, error. Use 'off' to disable logging entirely. Invalid values fall back to info. Default is info.CB_MCP_LOG_SINKSEnv var· optionalComma-separated list of log destinations. Allowed values: stderr, file. Include 'file' to write per-level log files; include 'stderr' to write to the console. Default is stderr.CB_MCP_LOG_FILEEnv var· optionalBase path for the per-level log files. One rotating file is written per level (e.g. mcp_server.info.log, mcp_server.error.log). Only used when 'file' is in CB_MCP_LOG_SINKS. Default is mcp_server.log.CB_MCP_LOG_ROTATION_MAX_SIZE_MBEnv var· optionalGlobal maximum size in MB per-level log file before it rotates, inherited by every level unless overridden by a per-level CB_MCP_LOG_<LEVEL>_ROTATION_MAX_SIZE_MB. A value of 0 is invalid and falls back to the default (1 MB) with a startup warning. Default is 1 (1 MB).CB_MCP_LOG_MAX_BYTESEnv var· optional[DEPRECATED] Global rotation size in bytes; use CB_MCP_LOG_ROTATION_MAX_SIZE_MB (MB) instead. Still honored for backward compatibility but ignored when CB_MCP_LOG_ROTATION_MAX_SIZE_MB is also set. A value of 0 is invalid and falls back to the default with a startup warning.CB_MCP_LOG_ERROR_ROTATION_MAX_SIZE_MBEnv var· optionalRotation size in MB for the ERROR log file. Overrides CB_MCP_LOG_ROTATION_MAX_SIZE_MB for ERROR; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.CB_MCP_LOG_WARNING_ROTATION_MAX_SIZE_MBEnv var· optionalRotation size in MB for the WARNING log file. Overrides CB_MCP_LOG_ROTATION_MAX_SIZE_MB for WARNING; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.CB_MCP_LOG_INFO_ROTATION_MAX_SIZE_MBEnv var· optionalRotation size in MB for the INFO log file. Overrides CB_MCP_LOG_ROTATION_MAX_SIZE_MB for INFO; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.CB_MCP_LOG_DEBUG_ROTATION_MAX_SIZE_MBEnv var· optionalRotation size in MB for the DEBUG log file. Overrides CB_MCP_LOG_ROTATION_MAX_SIZE_MB for DEBUG; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.CB_MCP_LOG_RETENTION_BACKUP_COUNTEnv var· optionalNumber of rotated backup files kept per-level log file, excluding the live file. Applies to every level unless overridden per level. Set to 0 to keep only the live file (still capped by the rotation size). Default is 1.CB_MCP_LOG_ERROR_RETENTION_BACKUP_COUNTEnv var· optionalRotated backups kept for the ERROR log file. Overrides CB_MCP_LOG_RETENTION_BACKUP_COUNT for ERROR; inherits it when unset.CB_MCP_LOG_WARNING_RETENTION_BACKUP_COUNTEnv var· optionalRotated backups kept for the WARNING log file. Overrides CB_MCP_LOG_RETENTION_BACKUP_COUNT for WARNING; inherits it when unset.CB_MCP_LOG_INFO_RETENTION_BACKUP_COUNTEnv var· optionalRotated backups kept for the INFO log file. Overrides CB_MCP_LOG_RETENTION_BACKUP_COUNT for INFO; inherits it when unset.CB_MCP_LOG_DEBUG_RETENTION_BACKUP_COUNTEnv var· optionalRotated backups kept for the DEBUG log file. Overrides CB_MCP_LOG_RETENTION_BACKUP_COUNT for DEBUG; inherits it when unset.CB_MCP_OAUTH_JWT_JWKS_URIEnv var· optionalJWKS endpoint of the identity provider used to verify bearer JWT signatures. Required to enable OAuth, along with CB_MCP_OAUTH_JWT_ISSUER and CB_MCP_OAUTH_JWT_AUDIENCE. Only honored when CB_MCP_TRANSPORT=http.CB_MCP_OAUTH_JWT_ISSUEREnv var· optionalExpected JWT 'iss' claim value. Also advertised as the authorization server in Protected Resource Metadata when CB_MCP_OAUTH_MCP_BASE_URL is set. Required to enable OAuth.CB_MCP_OAUTH_JWT_AUDIENCEEnv var· optionalExpected JWT 'aud' claim value. Required to enable OAuth.CB_MCP_OAUTH_JWT_ALGORITHMEnv var· optionalJWT signing algorithm. One of RS256/384/512, ES256/384/512, PS256/384/512. Default is RS256.CB_MCP_OAUTH_MCP_BASE_URLEnv var· optionalPublic base URL of this MCP server. When set, the server publishes RFC 9728 Protected Resource Metadata at <base_url>/.well-known/oauth-protected-resource/mcp so PRM-aware clients can discover the authorization server. Optional.CB_MCP_OAUTH_SCOPE_READ_LABELEnv var· optionalOverride the OAuth scope label the server treats as 'read' access; advertised in PRM and matched against the token's scope/scp claim. Use when your IdP cannot emit the canonical form. Default is couchbase-mcp:read.CB_MCP_OAUTH_SCOPE_WRITE_LABELEnv var· optionalOverride the OAuth scope label the server treats as 'write' access; same semantics as CB_MCP_OAUTH_SCOPE_READ_LABEL. Default is couchbase-mcp:write.CB_MCP_AUDIT_LOG_ENABLEDEnv var· optionalEnable audit logging. Audit output is a separate sink from the CB_MCP_LOG_* operational logs, with a stable schema, its own retention, and events that cannot be filtered out. Default is false.CB_MCP_AUDIT_LOG_SINKSEnv var· optionalComma-separated audit destinations: console, file, or both. 'console' writes to stderr, never stdout, because stdout carries the JSON-RPC protocol under the stdio transport. Default is console.CB_MCP_EMBEDDING_MODEL_PROVIDEREnv var· optionalEmbedding provider for run_vector_query / run_vector_search: one of capella, openai, cohere, voyage, bedrock. Unset disables both tools' embedding step until configured.CB_MCP_AUDIT_LOG_FILE_PATHEnv var· optionalPath to the audit log file, required when 'file' is in CB_MCP_AUDIT_LOG_SINKS. Each server process writes its own file with the host and process id inserted before the extension (audit.log becomes audit.myhost.1234.log), because a stdio deployment runs one process per client. If the path is missing the server still starts, with the file sink dropped and an error recorded.CB_MCP_AUDIT_LOG_ROTATION_MAX_SIZE_MBEnv var· optionalMaximum size in MB the live audit file may reach before it rotates. 0 turns size-based rotation off. Default is 10 MB.CB_MCP_AUDIT_LOG_ROTATION_INTERVALEnv var· optionalAge the live audit file may reach before it rotates, as <value><unit> where the unit is 'd' (24 hours) or 'w' (7 days) - for example 1d, 30d, 1w, 8w. 0 turns interval-based rotation off. Size and interval are independent: whichever falls due first rotates the file. Default is 1d.CB_MCP_EMBEDDING_MODELEnv var· optionalModel name/ID for the configured embedding provider.CB_MCP_AUDIT_LOG_RETENTION_MAX_BACKUPSEnv var· optionalNumber of rotated audit files retained, excluding the live file. Rotated files are gzipped and named with the UTC rotation time. Set to 0 to keep no backups: the live file is truncated at each rotation. Default is 10.CB_MCP_AUDIT_LOG_TOOL_ARGSEnv var· optionalRecord tool argument values in the audit log. Off by default: there is no redaction in this release, so enabling this writes arguments verbatim, including the full document bodies passed to document-write tools. Review the audit file's retention and access controls before enabling it.CB_MCP_AUDIT_LOG_DISABLED_EVENTSEnv var· optionalAudit events to suppress, as comma-separated numeric event ids (for example '61490,61492'), or a path to a file with one id per line. Ids are listed in the audit descriptor shipped with the package. Only filterable events can be suppressed: write and security events are always recorded, and an attempt to disable one is refused with a warning.CB_MCP_EMBEDDING_MODEL_ENDPOINTEnv var· optionalBase URL override for the configured embedding provider (e.g. an OpenAI-compatible local server, or a Capella Model Service deployment's own URL). Required when CB_MCP_EMBEDDING_MODEL_PROVIDER=capella.CB_MCP_EMBEDDING_MODEL_AWS_REGIONEnv var· optionalAWS region, bedrock provider only. Falls back to the AWS SDK's own region resolution if unset.--connection-stringArgument· optionalCouchbase connection string. Required for connecting to the cluster.--usernameArgument· optionalCouchbase database username. Required for basic authentication.--ca-cert-pathArgument· optionalCouchbase CA certificate path. Required for TLS authentication in non Capella clusters.--client-cert-pathArgument· optionalCouchbase client certificate path. Required for mTLS authentication.--client-key-pathArgument· optionalCouchbase client key path. Required for mTLS authentication.--read-only-modeArgument· optionalCouchbase read only mode. Set to true to disable write operations: KV document, scope/collection and index write tools are not loaded, and SQL++ queries that modify data are blocked. Set to false to allow them. Default is true.--transportArgument· optionalTransport mode for the server (stdio, http or sse). Default is stdio. OAuth is only honored with http.--hostArgument· optionalHost to run the MCP server on (default: 127.0.0.1). Used only for HTTP and SSE transport modes.--portArgument· optionalPort to run the MCP server on (default: 8000). Used only for HTTP and SSE transport modes.--workersArgument· optionalNumber of server worker processes (default: 1). Values above 1 use more CPU cores, require the http transport, run in stateless HTTP mode, and cannot be combined with --confirmation-required-tools. Each worker writes log files named with the host and process id.--stateless-httpArgument· optionalHandle each HTTP request without per-session state (default: true when workers > 1, otherwise false). Only honored with the http transport; cannot be combined with --confirmation-required-tools.--disabled-toolsArgument· optionalTools to disable. Accepts comma-separated tool names (e.g., 'tool_1,tool_2') or a file path containing one tool name per line.--confirmation-required-toolsArgument· optionalComma-separated tool names that require user confirmation before execution. Also accepts a file path containing one tool name per line. Requires the MCP client to support elicitation.--log-levelArgument· optionalLogging level for the MCP server. One of off, debug, info, warning, error. Use 'off' to disable logging entirely. Invalid values fall back to info. Default is info.--log-sinksArgument· optionalComma-separated list of log destinations. Allowed values: stderr, file. Include 'file' to write per-level log files; include 'stderr' to write to the console. Default is stderr.--log-fileArgument· optionalBase path for the per-level log files. One rotating file is written per level (e.g. mcp_server.info.log, mcp_server.error.log). Only used when 'file' is in --log-sinks. Default is mcp_server.log.--log-rotation-max-size-mbArgument· optionalGlobal maximum size in MB per-level log file before it rotates, inherited by every level unless overridden by a per-level --log-<level>-rotation-max-size-mb. A value of 0 is invalid and falls back to the default (1 MB) with a startup warning. Default is 1 (1 MB).--log-max-bytesArgument· optional[DEPRECATED] Global rotation size in bytes; use --log-rotation-max-size-mb (MB) instead. Still honored for backward compatibility but ignored when --log-rotation-max-size-mb is also set. A value of 0 is invalid and falls back to the default with a startup warning.--log-error-rotation-max-size-mbArgument· optionalRotation size in MB for the ERROR log file. Overrides --log-rotation-max-size-mb for ERROR; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.--log-warning-rotation-max-size-mbArgument· optionalRotation size in MB for the WARNING log file. Overrides --log-rotation-max-size-mb for WARNING; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.--log-info-rotation-max-size-mbArgument· optionalRotation size in MB for the INFO log file. Overrides --log-rotation-max-size-mb for INFO; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.--log-debug-rotation-max-size-mbArgument· optionalRotation size in MB for the DEBUG log file. Overrides --log-rotation-max-size-mb for DEBUG; inherits it when unset. 0 is invalid and falls back to the inherited global with a startup warning.--log-retention-backup-countArgument· optionalNumber of rotated backup files kept per-level log file, excluding the live file. Applies to every level unless overridden per level. Set to 0 to keep only the live file (still capped by the rotation size). Default is 1.--log-error-retention-backup-countArgument· optionalRotated backups kept for the ERROR log file. Overrides --log-retention-backup-count for ERROR; inherits it when unset.--log-warning-retention-backup-countArgument· optionalRotated backups kept for the WARNING log file. Overrides --log-retention-backup-count for WARNING; inherits it when unset.--log-info-retention-backup-countArgument· optionalRotated backups kept for the INFO log file. Overrides --log-retention-backup-count for INFO; inherits it when unset.--log-debug-retention-backup-countArgument· optionalRotated backups kept for the DEBUG log file. Overrides --log-retention-backup-count for DEBUG; inherits it when unset.--oauth-jwks-uriArgument· optionalJWKS endpoint of the identity provider used to verify bearer JWT signatures. Required to enable OAuth, along with --oauth-issuer and --oauth-audience. Only honored when --transport=http.--oauth-issuerArgument· optionalExpected JWT 'iss' claim value. Also advertised as the authorization server in Protected Resource Metadata when --oauth-mcp-base-url is set. Required to enable OAuth.--oauth-audienceArgument· optionalExpected JWT 'aud' claim value. Required to enable OAuth.--oauth-algorithmArgument· optionalJWT signing algorithm. One of RS256/384/512, ES256/384/512, PS256/384/512. Default is RS256.--oauth-mcp-base-urlArgument· optionalPublic base URL of this MCP server. When set, the server publishes RFC 9728 Protected Resource Metadata at <base_url>/.well-known/oauth-protected-resource/mcp so PRM-aware clients can discover the authorization server. Optional.--oauth-scope-read-labelArgument· optionalOverride the OAuth scope label the server treats as 'read' access; advertised in PRM and matched against the token's scope/scp claim. Use when your IdP cannot emit the canonical form. Default is couchbase-mcp:read.--oauth-scope-write-labelArgument· optionalOverride the OAuth scope label the server treats as 'write' access; same semantics as --oauth-scope-read-label. Default is couchbase-mcp:write.--embedding-model-providerArgument· optionalEmbedding provider for run_vector_query / run_vector_search: one of capella, openai, cohere, voyage, bedrock. Unset disables both tools' embedding step until configured.--embedding-modelArgument· optionalModel name/ID for the configured embedding provider.--embedding-model-endpointArgument· optionalBase URL override for the configured embedding provider (e.g. an OpenAI-compatible local server, or a Capella Model Service deployment's own URL). Required when --embedding-model-provider=capella.--embedding-model-aws-regionArgument· optionalAWS region, bedrock provider only. Falls back to the AWS SDK's own region resolution if unset.--audit-log-enabledArgument· optionalEnable audit logging. Audit output is a separate sink from the CB_MCP_LOG_* operational logs, with a stable schema, its own retention, and events that cannot be filtered out. Default is false.--audit-log-sinksArgument· optionalComma-separated audit destinations: console, file, or both. 'console' writes to stderr, never stdout, because stdout carries the JSON-RPC protocol under the stdio transport. Default is console.--audit-log-file-pathArgument· optionalPath to the audit log file, required when 'file' is in CB_MCP_AUDIT_LOG_SINKS. Each server process writes its own file with the host and process id inserted before the extension (audit.log becomes audit.myhost.1234.log), because a stdio deployment runs one process per client. If the path is missing the server still starts, with the file sink dropped and an error recorded.--audit-log-rotation-max-size-mbArgument· optionalMaximum size in MB the live audit file may reach before it rotates. 0 turns size-based rotation off. Default is 10 MB.--audit-log-rotation-intervalArgument· optionalAge the live audit file may reach before it rotates, as <value><unit> where the unit is 'd' (24 hours) or 'w' (7 days) - for example 1d, 30d, 1w, 8w. 0 turns interval-based rotation off. Size and interval are independent: whichever falls due first rotates the file. Default is 1d.--audit-log-retention-max-backupsArgument· optionalNumber of rotated audit files retained, excluding the live file. Rotated files are gzipped and named with the UTC rotation time. Set to 0 to keep no backups: the live file is truncated at each rotation. Default is 10.--audit-log-tool-argsArgument· optionalRecord tool argument values in the audit log. Off by default: there is no redaction in this release, so enabling this writes arguments verbatim, including the full document bodies passed to document-write tools. Review the audit file's retention and access controls before enabling it.--audit-log-disabled-eventsArgument· optionalAudit events to suppress, as comma-separated numeric event ids (for example '61490,61492'), or a path to a file with one id per line. Ids are listed in the audit descriptor shipped with the package. Only filterable events can be suppressed: write and security events are always recorded, and an attempt to disable one is refused with a warning.CB_OPERATIONAL_INSIGHTS_CONNECTION_STRINGEnv var· optionalOperational Insights (Enterprise Analytics) endpoint URL, e.g. http://localhost:8095 (local) or https://<host>:18095 (Capella). An HTTP(S) URL, not a couchbase:// connection string.CB_OPERATIONAL_INSIGHTS_USERNAMEEnv var· optionalOperational Insights database username. Required for basic authentication.CB_OPERATIONAL_INSIGHTS_CA_CERT_PATHEnv var· optionalOperational Insights CA certificate (trust store) path, used to verify the server certificate over https://.CB_OPERATIONAL_INSIGHTS_CLIENT_CERT_PATHEnv var· optionalClient certificate path for mTLS: a PEM certificate (paired with the client key path) or a PKCS#12 bundle (.p12/.pfx). Requires an https:// connection string. When set, username/password are ignored.CB_OPERATIONAL_INSIGHTS_CLIENT_KEY_PATHEnv var· optionalClient private key path (PEM) for mTLS. Leave unset when the client certificate is a PKCS#12 bundle that already contains the key.CB_MCP_OPERATIONAL_INSIGHTS_ASYNC_QUERY_RESULT_TIMEOUTEnv var· optionalTimeout in seconds for each async query request (start, status, fetch, discard, cancel). For a fetch it covers the whole download, so a result that takes longer than this to read fails. Positive integer, maximum 600; larger values are clamped to 600 with a warning, and any other invalid value is logged as a warning and the default is used. Default is 30.Default:30
Links
Listed in the official MCP Registry since Nov 2, 2026. Mirrored daily; last checked Nov 26, 2026.