By Couchbase-EcosystemCreated 16 days ago
starstarstarstarstar

Interact with data stored in Couchbase clusters using natural language.

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

CouchbaseLlm Data InteractionMcp Server

What is Couchbase MCP Server?

An MCP server implementation for Couchbase that allows Large Language Models (LLMs) to interact with Couchbase clusters using natural language. MCP stands for Model Context Protocol, enabling seamless integration between AI models and data systems.

How to use Couchbase MCP Server?

  1. Prerequisites: Install Python 3.10+, a running Couchbase cluster (such as Capella free tier), uv package manager, and an MCP client like Claude Desktop.
  2. Clone Repository: Git clone the repository to your local machine (git clone https://github.com/Couchbase-Ecosystem/mcp-server-couchbase.git).
  3. Configure Server: Add the server configuration to the MCP client (Claude Desktop, Cursor, Windsurf Editor, etc.).
  4. Run Server: Use uv run src/mcp_server.py with environment variables CB_CONNECTION_STRING, CB_USERNAME, CB_PASSWORD, CB_BUCKET_NAME, and optional READ_ONLY_QUERY_MODE (default: true).
  5. Interact with Data: Use natural language queries in the MCP client to interact with the Couchbase cluster.

Alternative Methods:

  • Use Docker: docker run -i -e CB_CONNECTION_STRING='' ... mcp/couchbase
  • Use SSE Server Mode: uv run src/mcp_server.py --transport=sse

Key Features

  • Data Interaction: List scopes/collections, get/set/delete documents, and run SQL++ queries.
  • Security: READ_ONLY_QUERY_MODE disables data-modifying queries by default.
  • Flexible Deployment: Run locally or via Docker.
  • MCP Client Support: Works with Claude Desktop, Cursor, Windsurf Editor, etc.
  • Managed Server Option: Use Smithery.ai for agentic applications.

Use Cases

  1. CRUD Operations: Query, update, or delete documents in Couchbase using natural language.
  2. Data Analysis: Run SQL++ queries on specified scopes for insights.
  3. AI Integration: Enable LLM-powered applications to interact with Couchbase data seamlessly.
  4. Business Intelligence: Retrieve structured data for reporting or dashboards.
  5. Automated Workflows: Use in scripts or bots to manage Couchbase data programmatically.

FAQ

  • What is MCP?

The Model Context Protocol (MCP) facilitates communication between AI models and databases using natural language.

  • Is this server officially supported by Couchbase?

No, this is a community-maintained project. For issues or contributions, use GitHub: mcp-server-couchbase/issues.

  • How to troubleshoot connection issues?

Check logs (mcp-server-couchbase.log), verify Couchbase credentials, and ensure the cluster is accessible. For MCP clients, refer to the respective logs (e.g., Claude Desktop: ~/Library/Logs/Claude).

  • Can I modify data with SQL++ queries?

By default, READ_ONLY_QUERY_MODE is set to true. Set it to false to allow write queries, but document upserts/deletes by ID are always permitted.

  • How to use this with Docker?

Build with docker build -t mcp/couchbase . and run with the required environment variables.