An MCP server implementation of Couchbase that allows LLMs to directly interact with Couchbase clusters.
- Get a list of all the scopes and collections in the specified bucket
- Get the structure for a collection
- Get a document by ID from a specified scope and collection
- Upsert a document by ID to a specified scope and collection
- Delete a document by ID from a specified scope and collection
- Run a SQL++ query on a specified scope
- There is an option in the MCP server,
READ_ONLY_QUERY_MODEthat is set to true by default to disable running SQL++ queries that change the data or the underlying collection structure. Note that the documents can still be updated by ID.
- There is an option in the MCP server,
- Python 3.10 or higher.
- A running Couchbase cluster. The easiest way to get started is to use Capella free tier, which is fully managed version of Couchbase server. You can follow instructions to import one of the sample datasets or import your own.
- uv installed to run the server.
- An MCP client such as Claude Desktop installed to connect the server to Claude. The instructions are provided for Claude Desktop and Cursor. Other MCP clients could be used as well.
Clone the repository to your local machine.
git clone https://github.com/Couchbase-Ecosystem/mcp-server-couchbase.gitThis is the common configuration for the MCP clients such as Claude Desktop, Cursor, Windsurf Editor.