Couchbase MCP Server

A Couchbase MCP server for LLMs

Local serverstdio

What is the Couchbase MCP server?

A Couchbase MCP server for LLMs. The couchbase mcp server wraps that behind the Model Context Protocol, so an assistant can use it rather than through you.

What it actually does

A Model Context Protocol (MCP) server that enables LLMs to interact directly with Couchbase databases on Capella clusters. Query buckets, perform CRUD operations, execute N1QL queries, and manage data seamlessly through natural language.

Adding it to your client

@couchbasedatabase/couchbase-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need 4 environment variables: COUCHBASE_URL, COUCHBASE_BUCKET, COUCHBASE_USERNAME, COUCHBASE_PASSWORD. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by aniket31; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the couchbase mcp server does with a few real requests.

How to install the Couchbase MCP server

{
  "mcpServers": {
    "couchbase-1": {
      "command": "npx",
      "args": ["-y", "@couchbasedatabase/couchbase-mcp"],
      "env": {
        "COUCHBASE_URL": "your-value",
        "COUCHBASE_BUCKET": "your-value",
        "COUCHBASE_USERNAME": "your-value",
        "COUCHBASE_PASSWORD": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
COUCHBASE_URLEndpoint or connection string the server talks to.Yes
COUCHBASE_BUCKETConfiguration value read at startup.Optional
COUCHBASE_USERNAMEConfiguration value read at startup.Optional
COUCHBASE_PASSWORDConfiguration value read at startup.Optional

Frequently asked questions

It connects Couchbase to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Couchbase directly.