Cover image
Try Now
2025-04-02

Ein Modellkontext -Protokollserver (MCP), mit dem LLMs direkt mit Couchbase -Datenbanken interagieren können. Abfragen von Buckets, N1QL -Abfragen ausführen und Daten nahtlos durch natürliche Sprache verwalten.

3 years

Works with Finder

1

Github Watches

0

Github Forks

5

Github Stars

🗄️ 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. 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
    
  3. 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>"
          }
        }
      }
    }
    
  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.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

  • HiveNexus
  • Ein KI-Chat-Bot für kleine und mittelgroße Teams, die Modelle wie Deepseek, Open AI, Claude und Gemini unterstützt. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 claude 、 Gemini 等模型。

  • ravitemer
  • Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)

  • patruff
  • Brücke zwischen Ollama und MCP -Servern und ermöglicht es lokalen LLMs, Modellkontextprotokoll -Tools zu verwenden

    Reviews

    1 (1)
    Avatar
    user_a4qJ2q0i
    2025-04-16

    As a dedicated user of MCP applications, I must say that MCP-Server-Couchbase by Aniket310101 is a remarkable addition. It offers seamless integration with Couchbase, enhancing server efficiency and performance. Whether you're handling large datasets or complex queries, this tool delivers reliability and speed. For anyone looking to optimize their database management, this is a must-try. Check it out on GitHub!