You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update environment variable for HOST & PORT, Add version cli command (#40)
* Update environment variable names for HOST & PORT
- Changed environment variable from FASTMCP_PORT to MCP_PORT in server, Dockerfile and README.md.
* Add version information to the MCP server
- Implemented version option in mcp_server.py for the couchbase-mcp-server package.
- Added a command to check the server version in README.md.
* Refactor transport handling in MCP server
- Updated environment variable names for transport and query mode to include new prefixes while marking old ones as deprecated.
- Introduced a mapping from user-friendly transport names to SDK transport names for improved compatibility.
- Adjusted the server configuration to utilize the new transport mapping when running the server.
* Update README.md to reflect new environment variable naming conventions
- Changed `READ_ONLY_QUERY_MODE` to `CB_MCP_READ_ONLY_QUERY_MODE` for consistency.
- Updated `MCP_TRANSPORT`, `MCP_HOST`, and `MCP_PORT` to `CB_MCP_TRANSPORT`, `CB_MCP_HOST`, and `CB_MCP_PORT` respectively.
* Update environment variable names in Dockerfile for consistency with recent changes
- Changed `READ_ONLY_QUERY_MODE`, `MCP_TRANSPORT`, and `MCP_PORT` to `CB_MCP_READ_ONLY_QUERY_MODE`, `CB_MCP_TRANSPORT`, and `CB_MCP_PORT` respectively to align with updated naming conventions.
* Update README.md to reflect new environment variable naming conventions and fix typos
- Changed `READ_ONLY_QUERY_MODE` to `CB_MCP_READ_ONLY_QUERY_MODE` for consistency with recent updates.
- Corrected the description of `CB_MCP_PORT` to specify its applicability in HTTP transport modes as `http` and `sse`.
Copy file name to clipboardExpand all lines: README.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
An [MCP](https://modelcontextprotocol.io/) server implementation of Couchbase that allows LLMs to directly interact with Couchbase clusters.
4
4
5
-
[](https://opensource.org/licenses/Apache-2.0)[](https://www.python.org/downloads/)[](https://pypi.org/project/couchbase-mcp-server/)[](https://mseep.ai/app/13fce476-0e74-4b1e-ab82-1df2a3204809)[](https://smithery.ai/server/@Couchbase-Ecosystem/mcp-server-couchbase)
5
+
[](https://opensource.org/licenses/Apache-2.0)[](https://www.python.org/downloads/)[](https://pypi.org/project/couchbase-mcp-server/)[](https://mseep.ai/app/13fce476-0e74-4b1e-ab82-1df2a3204809)
<imgwidth="380"height="200"src="https://glama.ai/mcp/servers/@Couchbase-Ecosystem/mcp-server-couchbase/badge"alt="Couchbase Server MCP server" />
@@ -16,7 +16,7 @@ An [MCP](https://modelcontextprotocol.io/) server implementation of Couchbase th
16
16
- Upsert a document by ID to a specified scope and collection
17
17
- Delete a document by ID from a specified scope and collection
18
18
- Run a [SQL++ query](https://www.couchbase.com/sqlplusplus/) on a specified scope
19
-
- There is an option in the MCP server, `READ_ONLY_QUERY_MODE` that is set to true by default to disable running SQL++ queries that change the data or the underlying collection structure. Note that the documents can still be updated by ID.
19
+
- There is an option in the MCP server, `CB_MCP_READ_ONLY_QUERY_MODE` that is set to true by default to disable running SQL++ queries that change the data or the underlying collection structure. Note that the documents can still be updated by ID.
20
20
- Get the status of the MCP server
21
21
- Check the cluster credentials by connecting to the cluster
22
22
@@ -100,16 +100,22 @@ This is the common configuration for the MCP clients such as Claude Desktop, Cur
100
100
101
101
The server can be configured using environment variables or command line arguments:
|`CB_CONNECTION_STRING`|`--connection-string`| Connection string to the Couchbase cluster |**Required**|
106
+
|`CB_USERNAME`|`--username`| Username with bucket access |**Required**|
107
+
|`CB_PASSWORD`|`--password`| Password for authentication |**Required**|
108
+
|`CB_BUCKET_NAME`|`--bucket-name`| Name of the bucket to access |**Required**|
109
+
|`CB_MCP_READ_ONLY_QUERY_MODE`|`--read-only-query-mode`| Prevent data modification queries |`true`|
110
+
|`CB_MCP_TRANSPORT`|`--transport`| Transport mode: `stdio`, `http`, `sse`|`stdio`|
111
+
|`CB_MCP_HOST`|`--host`| Host for HTTP/SSE transport modes |`127.0.0.1`|
112
+
|`CB_MCP_PORT`|`--port`| Port for HTTP/SSE transport modes |`8000`|
113
+
114
+
You can also check the version of the server using:
115
+
116
+
```bash
117
+
uvx couchbase-mcp-server --version
118
+
```
113
119
114
120
#### Client Specific Configuration
115
121
@@ -189,13 +195,13 @@ For more details about MCP integration with Windsurf Editor, refer to the offici
189
195
## Streamable HTTP Transport Mode
190
196
191
197
The MCP Server can be run in [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http) transport mode which allows multiple clients to connect to the same server instance via HTTP.
192
-
Check if your [MCP client](https://modelcontextprotocol.io/clients) supports streamable-http transport before attempting to connect to MCP server in this mode.
198
+
Check if your [MCP client](https://modelcontextprotocol.io/clients) supports streamablehttp transport before attempting to connect to MCP server in this mode.
193
199
194
200
> Note: This mode does not include authorization support.
195
201
196
202
### Usage
197
203
198
-
By default, the MCP server will run on port 8000 but this can be configured using the `--port` or `FASTMCP_PORT` environment variable.
204
+
By default, the MCP server will run on port 8000 but this can be configured using the `--port` or `CB_MCP_PORT` environment variable.
@@ -208,22 +214,22 @@ The server will be available on http://localhost:8000/mcp. This can be used in M
208
214
```json
209
215
{
210
216
"mcpServers": {
211
-
"couchbase-streamable-http": {
217
+
"couchbase-http": {
212
218
"url": "http://localhost:8000/mcp"
213
219
}
214
220
}
215
221
}
216
222
```
217
223
218
-
## SSE Transport Mode (Deprecated)
224
+
## SSE Transport Mode
219
225
220
226
There is an option to run the MCP server in [Server-Sent Events (SSE)](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse) transport mode.
221
227
222
228
> Note: SSE mode has been [deprecated](https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse-deprecated) by MCP. We have support for [Streamable HTTP](#streamable-http-transport-mode).
223
229
224
230
### Usage
225
231
226
-
By default, the MCP server will run on port 8000 but this can be configured using the `--port` or `FASTMCP_PORT` environment variable.
232
+
By default, the MCP server will run on port 8000 but this can be configured using the `--port` or `CB_MCP_PORT` environment variable.
0 commit comments