MCP -Couchbase
A Model Context Protocol (MCP) server that enables LLMs to interact directly with Couchbase databases. Query buckets, execute N1QL queries, and manage data seamlessly through natural language.
claude mcp add --transport stdio aniket310101-mcp-server-couchbase npx -y @couchbasedatabase/couchbase-mcp \ --env COUCHBASE_URL="<COUCHBASE CONNECTION STRING>" \ --env COUCHBASE_BUCKET="<BUCKET NAME>" \ --env COUCHBASE_PASSWORD="<COUCHBASE PASSWORD>" \ --env COUCHBASE_USERNAME="<COUCHBASE USERNAME>"
How to use
This MCP server exposes tools that let an LLM interact with a Couchbase database. Once the server is running (via npx or a manual install), Claude Desktop connections can access a set of capabilities for querying buckets, managing scopes and collections, performing CRUD operations on documents, and handling indexes. The available tools include: query for running N1QL queries, listBuckets to enumerate buckets, createScope and deleteScope to manage scopes, listScopes to inspect scopes, createCollection and dropCollection to manage collections, createDocument, getDocument, updateDocument, deleteDocument, and bulkCreateDocuments for batch inserts, and createIndex, createPrimaryIndex, listIndexes, and dropIndex for index management. Each tool accepts optional collection and scope parameters to target the correct container, and credentials are provided via environment variables to keep secrets out of the prompts.
How to install
Prerequisites:
- Node.js 16 or higher
- npm (comes with Node.js)
- A running Couchbase instance (Capella) with a bucket ready for use
- Claude Desktop (for integration)
Option A — Using NPX (Recommended):
- Install and run the MCP server directly from the npm package registry:
npx -y @couchbasedatabase/couchbase-mcp
Option B — Manual Installation (Clone and run locally):
- Clone the repository and install dependencies:
# Clone the repository
git clone https://github.com/Aniket310101/MCP-Server-Couchbase.git
cd MCP-Server-Couchbase
# Install dependencies
npm install
# Build if required by the project
npm run build
- Run the server (typical local run):
node dist/index.js
Claude Desktop integration requires configuring the MCP server in Claude’s config, as shown in the examples below (NPX-based or manual installation).
Additional notes
Tips and considerations:
- Always supply credentials via environment variables rather than embedding them in prompts or code.
- When using NPX, the package will be fetched on demand; ensure network access to npm registry.
- If using the manual installation flow, ensure the build outputs to the path specified in your config (e.g., dist/index.js).
- For production, consider placing the MCP server behind a reverse proxy and enabling authentication.
- If you encounter connectivity issues, verify COUCHBASE_URL, BUCKET, USERNAME, and PASSWORD are correct and that network access to the Capella cluster is allowed.
- The toolset supports optional collection and scope parameters; always specify them when targeting specific data containers to avoid unintended operations.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud