Couchbase MCP Server
Connect your LLM agents to Couchbase for live CRUD, queries, and schema exploration with seamless AI-driven workflows.

What does “Couchbase” MCP Server do?
The Couchbase MCP Server is an implementation of the Model Context Protocol (MCP) that enables Large Language Models (LLMs) and AI assistants to directly interact with data stored in Couchbase clusters. Acting as a middleware, this server allows seamless integration of Couchbase database operations into AI-powered development workflows. It supports tasks such as retrieving the structure of collections, accessing documents by ID, upserting or deleting documents, and executing SQL++ queries. By connecting LLMs to live Couchbase data, developers can automate database management, enhance productivity, and streamline complex data operations through natural language interfaces. The server can be configured for read-only or read-write modes and is compatible with various MCP clients like Claude Desktop, Cursor, and Windsurf.
List of Prompts
No information about prompt templates is provided in the repository.
List of Resources
No explicit resource definitions are documented in the repository files or README.
List of Tools
- Get a list of all scopes and collections: Retrieve metadata about the organization of a specified Couchbase bucket.
- Get the structure for a collection: Access structural information (schema) for a given collection.
- Get a document by ID: Fetch a document from a specified scope and collection using its unique ID.
- Upsert a document by ID: Insert or update a document in a specified scope and collection.
- Delete a document by ID: Remove a document from a specified scope and collection.
- Run a SQL++ query: Execute a read-only or (optionally) write-enabled SQL++ query against a specified scope. By default, queries that modify data are disabled for safety.
Use Cases of this MCP Server
- Database Management: Automate common database operations such as adding, updating, or deleting documents directly from AI interfaces, reducing manual overhead.
- Data Exploration: Allow developers and AI agents to quickly explore data structures, collections, and document content for analytics or debugging purposes.
- Interactive Querying: Enable natural language queries that are translated into SQL++ and executed on Couchbase, making data retrieval accessible to non-experts.
- Automated Reporting: Facilitate the generation of dynamic reports by querying and aggregating data through AI-driven workflows.
- Seamless Integration in Dev Workflows: Enhance productivity by integrating Couchbase data access into tools like Claude, Cursor, or Windsurf, streamlining context-aware coding and documentation tasks.
How to set it up
Windsurf
- Prerequisites: Ensure Python 3.10+ and uv are installed; have access to a Couchbase cluster.
- Clone the repository:
git clone https://github.com/Couchbase-Ecosystem/mcp-server-couchbase.git
- Edit the Windsurf MCP client configuration to include the Couchbase MCP server:
{ "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" } } } }
- Restart Windsurf to apply changes.
- Verify connectivity by running a test query.
Claude
- Prerequisites: Python 3.10+, uv, Couchbase cluster access, Claude Desktop installed.
- Clone the Couchbase MCP Server repository.
- Locate the configuration file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac:
- Add the server configuration as shown above to the
mcpServers
section. - Restart Claude Desktop.
- Test by querying Couchbase data through the Claude interface.
Cursor
- Ensure Python 3.10+, uv, and access to a Couchbase cluster.
- Clone the repo and install dependencies if required.
- Add the Couchbase MCP server to Cursor’s configuration:
{ "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" } } } }
- Restart Cursor.
- Verify by running a database operation.
Cline
- Meet prerequisites: Python 3.10+, uv, Couchbase cluster.
- Clone the repository locally.
- Add the following to Cline’s MCP configuration:
{ "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" } } } }
- Save changes and restart Cline.
- Confirm setup by performing a database action.
Securing API Keys:
All sensitive values (e.g., CB_PASSWORD
) are stored as environment variables in the configuration’s env
section.
Example:
"env": {
"CB_CONNECTION_STRING": "couchbases://connection-string",
"CB_USERNAME": "username",
"CB_PASSWORD": "password",
"CB_BUCKET_NAME": "bucket_name"
}
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{ “couchbase”: { “transport”: “streamable_http”, “url”: “https://yourmcpserver.example/pathtothemcp/url" } }
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “couchbase” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Couchbase server for LLM/AI-based Couchbase data interaction |
List of Prompts | ⛔ | No prompt templates documented |
List of Resources | ⛔ | No explicit MCP resource definitions |
List of Tools | ✅ | Full CRUD + query tools documented |
Securing API Keys | ✅ | Uses environment variables in config |
Sampling Support (less important in evaluation) | ⛔ | No evidence of sampling support |
Based on the above tables, the Couchbase MCP Server is well-documented for setup and tool exposure but lacks explicit prompt templates, resource definitions, and sampling/roots support documentation. Its utility for database tasks is clear, but it could be improved with more MCP-native features. I would rate this MCP server a 6/10 for general LLM and developer use.
MCP Score
Has a LICENSE | ✅ (Apache-2.0) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 9 |
Number of Stars | 10 |
Frequently asked questions
- What is the Couchbase MCP Server?
The Couchbase MCP Server is a middleware that lets AI agents and LLMs directly interact with Couchbase clusters for live database operations. It supports CRUD, schema exploration, and SQL++ queries through natural language interfaces.
- Which operations can I perform with Couchbase MCP?
You can retrieve metadata, explore collection structures, get, upsert, or delete documents by ID, and run SQL++ queries (read-only by default, with optional write support).
- How do I secure my Couchbase credentials?
API keys and credentials are stored as environment variables in the configuration (the 'env' section). Never hardcode sensitive values—use the configuration's environment variable fields for secure storage.
- Can I use Couchbase MCP with FlowHunt?
Yes! Add the MCP component to your FlowHunt flow, configure the Couchbase MCP server in the system MCP section, and your AI agents will have access to all database operations supported by the server.
- What are common use cases for this MCP Server?
Typical use cases include automating database management, exploring data structures, running interactive queries, generating automated reports, and integrating Couchbase data access into developer and AI workflows.
Add Couchbase to Your AI Workflows
Automate, query, and manage Couchbase data using natural language and AI agents. Boost productivity with FlowHunt’s Couchbase MCP integration.