- Explore MCP Servers
- MCP-Server-Couchbase
Mcp Server Couchbase
What is Mcp Server Couchbase
MCP-Server-Couchbase is a Model Context Protocol (MCP) server that facilitates direct interaction between Large Language Models (LLMs) and Couchbase databases. It allows users to query buckets, perform CRUD operations, execute N1QL queries, and manage data using natural language.
Use cases
Use cases for MCP-Server-Couchbase include automating database queries through natural language, integrating LLMs with Couchbase for enhanced data interaction, and simplifying CRUD operations for developers and data analysts.
How to use
To use MCP-Server-Couchbase, first ensure you have Node.js 16 or higher and a running Couchbase instance on Capella. Clone the repository, install dependencies, configure your Couchbase credentials in a .env file, build the project, and integrate it with the Claude Desktop application. Finally, verify the connection by restarting Claude Desktop.
Key features
Key features of MCP-Server-Couchbase include the ability to execute N1QL queries, list available buckets, create and delete scopes within buckets, and manage data seamlessly through natural language interactions.
Where to use
MCP-Server-Couchbase can be utilized in various fields such as data management, application development, and AI-driven data analysis, particularly in environments where Couchbase is used as a database solution.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Server Couchbase
MCP-Server-Couchbase is a Model Context Protocol (MCP) server that facilitates direct interaction between Large Language Models (LLMs) and Couchbase databases. It allows users to query buckets, perform CRUD operations, execute N1QL queries, and manage data using natural language.
Use cases
Use cases for MCP-Server-Couchbase include automating database queries through natural language, integrating LLMs with Couchbase for enhanced data interaction, and simplifying CRUD operations for developers and data analysts.
How to use
To use MCP-Server-Couchbase, first ensure you have Node.js 16 or higher and a running Couchbase instance on Capella. Clone the repository, install dependencies, configure your Couchbase credentials in a .env file, build the project, and integrate it with the Claude Desktop application. Finally, verify the connection by restarting Claude Desktop.
Key features
Key features of MCP-Server-Couchbase include the ability to execute N1QL queries, list available buckets, create and delete scopes within buckets, and manage data seamlessly through natural language interactions.
Where to use
MCP-Server-Couchbase can be utilized in various fields such as data management, application development, and AI-driven data analysis, particularly in environments where Couchbase is used as a database solution.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
🗄️ Couchbase MCP Server for LLMs
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.
🚀 Quick Start
-
Prerequisites
- Node.js 16 or higher
- A running Couchbase instance on Capella
- Claude Desktop application
-
Installation
Couchbase MCP Server can be installed in two ways:
Option 1: Using NPX (Recommended)
The quickest way to get started is using NPX:
npx -y @couchbasedatabase/couchbase-mcpOption 2: Manual Installation
If you prefer to clone and run the project manually:
# Clone the repository git clone https://github.com/Aniket310101/MCP-Server-Couchbase.git cd MCP-Server-Couchbase # Install dependencies npm install # Build the project npm run build -
Claude Desktop Integration
Add this configuration to your Claude Desktop config file:
Windows:
%APPDATA%/Claude/claude_desktop_config.json
MacOS:~/Library/Application Support/Claude/claude_desktop_config.jsonOption 1: With Package Installation
{ "mcpServers": { "couchbase": { "command": "npx", "args": [ "-y", "@couchbasedatabase/couchbase-mcp" ], "env": { "COUCHBASE_URL": "<COUCHBASE CONNECTION STRING>", "COUCHBASE_BUCKET": "<BUCKET NAME>", "COUCHBASE_USERNAME": "<COUCHBASE USERNAME>", "COUCHBASE_PASSWORD": "<COUCHBASE PASSWORD>" } } } }Option 2: With Manual Installation
{ "mcpServers": { "couchbase": { "command": "node", "args": [ "path/to/MCP-Server-Couchbase/dist/index.js" ], "env": { "COUCHBASE_URL": "<COUCHBASE CONNECTION STRING>", "COUCHBASE_BUCKET": "<BUCKET NAME>", "COUCHBASE_USERNAME": "<COUCHBASE USERNAME>", "COUCHBASE_PASSWORD": "<COUCHBASE PASSWORD>" } } } } -
Verify Connection
- Restart Claude Desktop
- The Couchbase MCP server tools should now be available in your conversations
📝 Available Tools
Basic Operations
query: Execute N1QL querieslistBuckets: List available buckets
Scope Management
createScope: Create a new scope in a bucketdeleteScope: Delete an existing scopelistScopes: List all scopes in a bucket
Collection Management
createCollection: Create a new collection in a scopedropCollection: Delete a collection from a scope
Document Operations
createDocument: Create a new documentgetDocument: Retrieve a document by IDupdateDocument: Update an existing documentdeleteDocument: Delete a document by IDbulkCreateDocuments: Create multiple documents at once
Index Management
createIndex: Create a new index on specified fieldscreatePrimaryIndex: Create a primary index on a collectionlistIndexes: List all indexes in a bucketdropIndex: Drop an existing index
Each tool supports optional collection and scope parameters for targeting specific data containers.
🔒 Security Considerations
- Always use environment variables for sensitive credentials
- Consider running the server behind a reverse proxy for production use
- Implement appropriate access controls and authentication as needed
📚 Examples
Here are some example interactions with Claude using the MCP server:
-
List all buckets:
Could you show me all available buckets in the database? -
Create a scope and collection:
Create a new scope called "users" and a collection called "profiles" in it -
Query documents:
Find all users who signed up in the last 30 days -
Create a document:
Create a new user document with name "John Doe" and email "[email protected]"
🤝 Contribution
Contributions are welcome! Please feel free to submit a Pull Request.
🛡️ Security Assessment Badge (MseeP.ai)
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.











