Couchbase MCP Server
Couchbase-Ecosystem
README
Couchbase MCP Server
An MCP server implementation of Couchbase that allows LLMs to directly interact with Couchbase clusters.
Features
- Get a list of all the scopes and collections in the specified bucket in a Couchbase cluster
- Get the structure for a collection in a Couchbase cluster
- Run a SQL++ query against data in Couchbase cluster bucket
Prerequisites
- 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.
Configuration
Clone the repository to your local machine.
git clone https://github.com/Couchbase-Ecosystem/mcp-server-couchbase.git
Claude Desktop
Follow the steps below to use Couchbase MCP server with Claude Desktop MCP client
-
The MCP server can now be added to Claude Desktop by editing the configuration file. More detailed instructions can be found on the MCP quickstart guide.
- On Mac, the configuration file is located at
~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows, the configuration file is located at
%APPDATA%\Claude\claude_desktop_config.json
Open the configuration file and add the following configuration to the
mcpServers
section:{ "mcpServers": { "couchbase": { "command": "uv", "args": [ "--directory", "path/to/cloned/repo/mcp-server-couchbase/", "run", "src/mcp_server.py" ], "env": { "CB_CONNECTION_STRING": "couchbases://connection-string", "CB_USERNAME": "username", "CB_PASSWORD": "password", "CB_BUCKET_NAME": "bucket_name" } } } }
The server can be configured using environment variables. The following variables are supported:
CB_CONNECTION_STRING
: The connection string to the Couchbase clusterCB_USERNAME
: The username with access to the bucket to use to connectCB_PASSWORD
: The password for the username to connectCB_BUCKET_NAME
: The name of the bucket that the server will accesspath/to/cloned/repo/mcp-server-couchbase/
should be the path to the cloned repository on your local machine. Don't forget the trailing slash at the end!
- On Mac, the configuration file is located at
-
Restart Claude Desktop to apply the changes.
-
You can now use the server in Claude Desktop to run queries on the Couchbase cluster using natural language.
Claude Desktop Logs
The logs for Claude Desktop can be found in the following locations:
- MacOS: ~/Library/Logs/Claude
- Windows: %APPDATA%\Claude\Logs
The logs can be used to diagnose connection issues or other problems with your MCP server configuration. For more details, refer to the official documentation.
Cursor
Follow steps below to use Couchbase MCP server with Cursor:
-
Install Cursor on your machine.
-
In Cursor, go to Cursor > Cursor Settings > MCP > Add a new global MCP server. Also, checkout the docs on setting up MCP server configuration from Cursor.
-
Specify the same configuration as above. You may need to add the server configuration under a parent key of mcpServers like this below.
{
"mcpServers": {
"couchbase": {
"command": "uv",
"args": [
"--directory",
"path/to/cloned/repo/mcp-server-couchbase/",
"run",
"src/mcp_server.py"
],
"env": {
"CB_CONNECTION_STRING": "couchbases://connection-string",
"CB_USERNAME": "username",
"CB_PASSWORD": "password",
"CB_BUCKET_NAME": "bucket_name"
}
}
}
}
The server can be configured using environment variables. The following variables are supported:
CB_CONNECTION_STRING
: The connection string to the Couchbase clusterCB_USERNAME
: The username with access to the bucket to use to connectCB_PASSWORD
: The password for the username to connectCB_BUCKET_NAME
: The name of the bucket that the server will accesspath/to/cloned/repo/mcp-server-couchbase/
should be the path to the cloned repository on your local machine. Don't forget the trailing slash at the end!
-
Save the configuration.
-
You will see couchbase as an added server in MCP list. Refresh to see if server is enabled.
-
You can now use the Couchbase MCP server in Cursor to query your Couchbase cluster using natural language.
For more details about MCP integration with Cursor, refer to the official Cursor MCP documentation.
Cursor Logs
In the bottom panel of Cursor, click on "Output" and select "Cursor MCP" from the dropdown menu to view server logs. This can help diagnose connection issues or other problems with your MCP server configuration.
Troubleshooting Tips
- Ensure the path to your MCP server repository is correct in the configuration.
- Verify that your Couchbase connection string, database username, password and bucket name are correct.
- If using Couchbase Capella, ensure that the cluster is accessible from the machine where the MCP server is running.
- Check that the database user has proper permissions to access the specified bucket.
- Confirm that the uv package manager is properly installed and accessible. You may need to provide absolute path to uv in the
command
field in the configuration. - Check the logs for any errors or warnings that may indicate issues with the MCP server. The server logs are under the name,
mcp-server-couchbase.log
.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.