Labsco
Aniket310101 logo

Couchbase

โ˜… 7

from Aniket310101

Interact with Couchbase databases using natural language. Perform CRUD operations, query buckets, and execute N1QL queries.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

๐Ÿ—„๏ธ 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.

๐Ÿ“ 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)

MseeP.ai Security Assessment Badge