This release is a pre-release and may not be stable for production use.
Couchbase Guru MCP Server
An MCP server that lets LLMs search the Couchbase documentation from your MCP client. It exposes a single tool, ask_couchbase_docs, which forwards your question to a hosted retrieval-augmented (RAG) documentation agent and returns an answer with source links.
No Couchbase cluster or credentials required. The server talks only to the documentation agent backend, not to your data.
Tool
| Tool Name | Description |
|---|---|
ask_couchbase_docs |
Answer a question about any Couchbase product, feature, SDK, service, tutorial, or example by searching the official documentation. Returns a natural-language answer followed by the documentation source URLs. |
Ask complete, self-contained questions — the backend has no conversation history, so include the product, version, and language where relevant (e.g. "How do I create a primary index with the Python SDK in Couchbase Server 7.6?").
Prerequisites
- Python 3.10 or higher.
- uv installed to run the server.
- An MCP client such as Claude Desktop, Cursor, or VS Code.
Configuration
The server can be run from the prebuilt PyPI package or from source with uv. It works with zero configuration — the public documentation agent is used by default.
Running from PyPI
{
"mcpServers": {
"couchbase-guru": {
"command": "uvx",
"args": ["couchbase-guru"]
}
}
}
If you already have other MCP servers configured, add this entry to the existing
mcpServersobject.
Running from Source
Clone the repository:
git clone https://github.com/Couchbase-Ecosystem/couchbase-guru.git
Then point your MCP client at it:
{
"mcpServers": {
"couchbase-guru": {
"command": "uv",
"args": [
"--directory",
"path/to/cloned/repo/couchbase-guru/",
"run",
"src/mcp_server.py"
]
}
}
}
path/to/cloned/repo/couchbase-guru/should be the path to the cloned repository on your machine. Don't forget the trailing slash.
Options
All options are optional and can be set via CLI argument or environment variable:
| CLI Argument | Environment Variable | Description | Default |
|---|---|---|---|
--transport |
CB_MCP_TRANSPORT |
Transport mode: stdio or http |
stdio |
--host |
CB_MCP_HOST |
Host for HTTP transport mode | 127.0.0.1 |
--port |
CB_MCP_PORT |
Port for HTTP transport mode | 8000 |
--agent-base-url |
CB_AGENT_BASE_URL |
Base URL of the documentation agent backend. Set this to run against your own self-hosted agent; if unset, the public agent is used. | Public agent |
--agent-ip-salt |
CB_AGENT_IP_SALT |
Secret salt used to pseudonymize client IPs (HTTP transport). Set a shared value for consistent hashing across multiple instances; a local salt is generated when unset. | Auto-generated |
Check the installed version with:
uvx couchbase-guru --version
Self-hosting the documentation agent
By default the server uses a shared, public documentation agent, so most users need no setup. If you run your own agent backend, point the server at it:
uvx couchbase-guru --agent-base-url https://your-agent.example.com
Rate limiting & privacy
The public agent applies fair-use rate limits. To support this, the server sends a pseudonymous device identifier to the backend (in the User-Agent header):
- stdio: a random id generated once and stored in a per-user file on your machine.
- HTTP: a salted, one-way hash of the connecting IP — the raw address is never sent.
No question content or personal data is persisted by the MCP server itself. If you prefer not to share a rate-limit signal, self-host the agent (see above).
Client-specific configuration
Claude Desktop
- Edit the configuration file (see the MCP quickstart guide):
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the configuration to the
mcpServerssection. - Restart Claude Desktop.
Logs: ~/Library/Logs/Claude (macOS) or %APPDATA%\Claude\Logs (Windows).
Cursor
- In Cursor, go to Cursor Settings > Tools & Integrations > MCP Tools.
- Add the configuration manually, or use the one-click Install in Cursor link.
- Save, then refresh to confirm the server is enabled.
Logs: in the bottom panel, click Output and select Cursor MCP from the dropdown.
Windsurf Editor
- Open Command Palette > Windsurf MCP Configuration Panel (or Settings > Advanced > Cascade > Model Context Protocol (MCP) Servers).
- Click Add Server > Add custom server and add the configuration.
- Save, then refresh to confirm the server is enabled.
See the Windsurf MCP documentation for details.
VS Code
-
Create
.vscode/mcp.jsonin your workspace (or run MCP: Open User Configuration for a global config). -
VS Code uses
serversas the top-level key (notmcpServers):{ "servers": { "couchbase-guru": { "command": "uvx", "args": ["couchbase-guru"] } } }
-
Once saved, use the inline action list to
Start/Stop/manage the server.
See the VS Code MCP docs for details.
JetBrains IDEs
- Install the AI Assistant or Junie plugin.
- Navigate to Settings > Tools > AI Assistant or Junie > MCP Server.
- Click "+", add the configuration, and click Save, then Apply.
Logs: Help > Show Log in Finder (Explorer) > mcp > couchbase-guru.
Streamable HTTP transport mode
The server can run in Streamable HTTP mode so multiple clients can connect to one instance. Check that your MCP client supports this transport first.
uvx couchbase-guru --transport=http --port=8000
The server will be available at http://localhost:8000/mcp:
{
"mcpServers": {
"couchbase-guru-http": {
"url": "http://localhost:8000/mcp"
}
}
}
This mode does not include authorization support.
Docker
Build the image:
docker build -t couchbase-guru .
Run it (stdio by default; no credentials needed):
{
"mcpServers": {
"couchbase-guru-docker": {
"command": "docker",
"args": ["run", "--rm", "-i", "couchbase-guru"]
}
}
}
For HTTP transport, publish the port and set the transport:
docker run --rm -i \
-e CB_MCP_TRANSPORT=http \
-e CB_MCP_HOST=0.0.0.0 \
-e CB_MCP_PORT=8000 \
-p 8000:8000 \
couchbase-guru
Risks associated with LLMs
- The use of large language models and similar technology involves risks, including the potential for inaccurate or harmful outputs.
- Couchbase does not review or evaluate the quality or accuracy of such outputs, and such outputs may not reflect Couchbase's views.
- You are solely responsible for determining whether to use large language models and related technology, and for complying with any applicable license terms, terms of use, and your organization's policies.
Troubleshooting
- Confirm that
uv/uvxis installed and on yourPATH. You may need to provide an absolute path touv/uvxin thecommandfield. - If a search times out, the documentation backend may be busy — retry in a moment.
- To rule out the public backend, run against your own agent with
--agent-base-url. - If running from source after updating the repo, run
uv syncto refresh dependencies. - Check your MCP client's logs (locations above) for errors.
Testing
Unit tests run offline (the backend is mocked):
uv sync --extra dev
uv run pytest tests/
Integration tests exercise the tool end-to-end against a live agent backend and are opt-in:
CB_MCP_RUN_INTEGRATION=1 uv run pytest tests/test_docs_tools.py
By default they use the public agent; set CB_AGENT_BASE_URL to target a different backend.
👩💻 Contributing
Contributions are welcome! To report a bug, request a feature, or contribute improvements, open a GitHub issue.
See CONTRIBUTING.md for developer setup (environment with uv, linting/formatting with Ruff, pre-commit hooks, and project structure).
# Clone and set up
git clone https://github.com/Couchbase-Ecosystem/couchbase-guru.git
cd couchbase-guru
# Install with development dependencies
uv sync --extra dev
# Install pre-commit hooks
uv run pre-commit install
📢 Support Policy
We appreciate your interest in this project! It is Couchbase community-maintained, which means it is not officially supported by our support team. Our engineers monitor and maintain this repo and will try to resolve issues on a best-effort basis. Please keep all inquiries within GitHub.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file couchbase_guru-0.1.0rc1.tar.gz.
File metadata
- Download URL: couchbase_guru-0.1.0rc1.tar.gz
- Upload date:
- Size: 159.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
510410d75f77616c571d663fd7a194d5d67fd64d2394299667c03594dba87efe
|
|
| MD5 |
a3fe5a4d58a76e4fa4f9bc8ab4bada3b
|
|
| BLAKE2b-256 |
67f47bad0abf71a64128aa5b27669707c6bb6ea3e2b862143972f73880a9970a
|
Provenance
The following attestation bundles were made for couchbase_guru-0.1.0rc1.tar.gz:
Publisher:
release.yml on Couchbase-Ecosystem/couchbase-guru
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
couchbase_guru-0.1.0rc1.tar.gz -
Subject digest:
510410d75f77616c571d663fd7a194d5d67fd64d2394299667c03594dba87efe - Sigstore transparency entry: 2618777791
- Sigstore integration time:
-
Permalink:
Couchbase-Ecosystem/couchbase-guru@28f494e84199ee3b021337f67821ec1e2acde8b0 -
Branch / Tag:
refs/tags/v0.1.0rc1 - Owner: https://github.com/Couchbase-Ecosystem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@28f494e84199ee3b021337f67821ec1e2acde8b0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file couchbase_guru-0.1.0rc1-py3-none-any.whl.
File metadata
- Download URL: couchbase_guru-0.1.0rc1-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e3115409deebdab2f17579ea34c99eadd9f5dec7d5dc320d96803fc100e145
|
|
| MD5 |
356c06dd4c7c7c6a332ffb02c254177f
|
|
| BLAKE2b-256 |
ee549ea5442f95b191b2ce45bb5070b6e7b14d284500b28425e6939a1c59837e
|
Provenance
The following attestation bundles were made for couchbase_guru-0.1.0rc1-py3-none-any.whl:
Publisher:
release.yml on Couchbase-Ecosystem/couchbase-guru
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
couchbase_guru-0.1.0rc1-py3-none-any.whl -
Subject digest:
22e3115409deebdab2f17579ea34c99eadd9f5dec7d5dc320d96803fc100e145 - Sigstore transparency entry: 2618777796
- Sigstore integration time:
-
Permalink:
Couchbase-Ecosystem/couchbase-guru@28f494e84199ee3b021337f67821ec1e2acde8b0 -
Branch / Tag:
refs/tags/v0.1.0rc1 - Owner: https://github.com/Couchbase-Ecosystem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@28f494e84199ee3b021337f67821ec1e2acde8b0 -
Trigger Event:
push
-
Statement type: