🗄️ 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
- InstallationCouchbase MCP Server can be installed in two ways:
Option 1: Using NPX (Recommended)
The quickest way to get started is using NPX:Option 2: Manual Installation
If you prefer to clone and run the project manually: - Claude Desktop IntegrationAdd 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
Option 2: With Manual Installation
- 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:
- Create a scope and collection:
- Query documents:
- Create a document:
🤝 Contribution
Contributions are welcome! Please feel free to submit a Pull Request.
🛡️ Security Assessment Badge (MseeP.ai)
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
자연어를 통해 대규모 언어 모델이 Couchbase 데이터베이스와 직접 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜 서버로, 버킷 쿼리, CRUD 작업 수행, N1QL 쿼리 실행과 같은 작업을 지원합니다.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.Last updated -MIT License
MCP TapData Serverofficial
-securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -- -securityAlicense-qualityA server that enables natural language interactions with Couchbase databases through the Model Context Protocol, allowing users to perform SQL++ queries on Couchbase Capella clusters using conversational commands.Last updated -1MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables large language models like Claude to perform comprehensive interactions with Firebase Firestore databases, supporting full CRUD operations, complex queries, and advanced features like transactions and TTL management.Last updated -54MIT License