Skip to main content
Glama

Couchbase MCP Server for LLMs

by Aniket310101

🗄️ 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

  1. Prerequisites
    • Node.js 16 or higher
    • A running Couchbase instance on Capella
    • Claude Desktop application
  2. InstallationCouchbase MCP Server can be installed in two ways: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
  3. 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

    { "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>" } } } }
  4. Verify Connection
    • Restart Claude Desktop
    • The Couchbase MCP server tools should now be available in your conversations

📝 Available Tools

Basic Operations

  • query: Execute N1QL queries
  • listBuckets: List available buckets

Scope Management

  • createScope: Create a new scope in a bucket
  • deleteScope: Delete an existing scope
  • listScopes: List all scopes in a bucket

Collection Management

  • createCollection: Create a new collection in a scope
  • dropCollection: Delete a collection from a scope

Document Operations

  • createDocument: Create a new document
  • getDocument: Retrieve a document by ID
  • updateDocument: Update an existing document
  • deleteDocument: Delete a document by ID
  • bulkCreateDocuments: Create multiple documents at once

Index Management

  • createIndex: Create a new index on specified fields
  • createPrimaryIndex: Create a primary index on a collection
  • listIndexes: List all indexes in a bucket
  • dropIndex: 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:

  1. List all buckets:
    Could you show me all available buckets in the database?
  2. Create a scope and collection:
    Create a new scope called "users" and a collection called "profiles" in it
  3. Query documents:
    Find all users who signed up in the last 30 days
  4. Create a document:
    Create a new user document with name "John Doe" and email "john@example.com"

🤝 Contribution

Contributions are welcome! Please feel free to submit a Pull Request.

🛡️ Security Assessment Badge (MseeP.ai)

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Model Context Protocol server that enables large language models to interact directly with Couchbase databases through natural language, supporting operations like querying buckets, performing CRUD operations, and executing N1QL queries.

  1. 🚀 Quick Start
    1. 📝 Available Tools
      1. Basic Operations
      2. Scope Management
      3. Collection Management
      4. Document Operations
      5. Index Management
    2. 🔒 Security Considerations
      1. 📚 Examples
        1. 🤝 Contribution
          1. 🛡️ Security Assessment Badge (MseeP.ai)

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A 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 -
              TypeScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A 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 -
              • Apple
            • -
              security
              A
              license
              -
              quality
              A 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 -
              1
              JavaScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A 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 -
              1
              4
              JavaScript
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aniket310101/MCP-Server-Couchbase'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server