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.
What is Aniket310101 MCP Server Couchbase
*
๐๏ธ 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-mcp
Option 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.json
Option 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)
*
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
PostgreSQL MCP Server
A Model Context Protocol server that provides read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP ๆๅกๅจ๏ผ็จไบ็ฎก็ๆก้ขๅพ็ใๆฅ็่ฏฆๆ ใๅ็ผฉใ็งปๅจ็ญ๏ผๅฎๅ จ่ฎฉTraeๅฎ็ฐ๏ผ
Submit Your MCP Server
Share your MCP server with the community
Submit Now