Skip to content

Commit 9c212ed

Browse files
committed
sse usage documented
1 parent 4b15535 commit 9c212ed

File tree

1 file changed

+55
-13
lines changed

1 file changed

+55
-13
lines changed

README.md

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Redis MCP Server
2+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3+
[![Python Version](https://img.shields.io/badge/python-3.13%2B-blue)](https://www.python.org/downloads/)
24
[![smithery badge](https://smithery.ai/badge/@redis/mcp-redis)](https://smithery.ai/server/@redis/mcp-redis)
35

6+
47
<a href="https://glama.ai/mcp/servers/@redis/mcp-redis">
58
<img width="380" height="200" src="https://glama.ai/mcp/servers/@redis/mcp-redis/badge" alt="Redis Server MCP server" />
69
</a>
@@ -57,19 +60,58 @@ uv sync
5760

5861
To configure this Redis MCP Server, consider the following environment variables:
5962

60-
| Name | Description | Default Value |
61-
|-------------------------|-----------------------------------------------------------|---------------|
62-
| `REDIS_HOST` | Redis IP or hostname | `"127.0.0.1"` |
63-
| `REDIS_PORT` | Redis port | `6379` |
64-
| `REDIS_USERNAME` | Default database username | `"default"` |
65-
| `REDIS_PWD` | Default database password | "" |
66-
| `REDIS_SSL` | Enables or disables SSL/TLS | `False` |
67-
| `REDIS_CA_PATH` | CA certificate for verifying server | None |
68-
| `REDIS_SSL_KEYFILE` | Client's private key file for client authentication | None |
69-
| `REDIS_SSL_CERTFILE` | Client's certificate file for client authentication | None |
70-
| `REDIS_CERT_REQS` | Whether the client should verify the server's certificate | `"required"` |
71-
| `REDIS_CA_CERTS` | Path to the trusted CA certificates file | None |
72-
| `REDIS_CLUSTER_MODE` | Enable Redis Cluster mode | `False` |
63+
| Name | Description | Default Value |
64+
|----------------------|-----------------------------------------------------------|---------------|
65+
| `REDIS_HOST` | Redis IP or hostname | `"127.0.0.1"` |
66+
| `REDIS_PORT` | Redis port | `6379` |
67+
| `REDIS_USERNAME` | Default database username | `"default"` |
68+
| `REDIS_PWD` | Default database password | "" |
69+
| `REDIS_SSL` | Enables or disables SSL/TLS | `False` |
70+
| `REDIS_CA_PATH` | CA certificate for verifying server | None |
71+
| `REDIS_SSL_KEYFILE` | Client's private key file for client authentication | None |
72+
| `REDIS_SSL_CERTFILE` | Client's certificate file for client authentication | None |
73+
| `REDIS_CERT_REQS` | Whether the client should verify the server's certificate | `"required"` |
74+
| `REDIS_CA_CERTS` | Path to the trusted CA certificates file | None |
75+
| `REDIS_CLUSTER_MODE` | Enable Redis Cluster mode | `False` |
76+
| `MCP_TRANSPORT` | Use the `stdio` or `sse` transport | `stdio` |
77+
78+
79+
## Transports
80+
81+
This MCP server can be configured to handle requests locally, running as a process and communicating with the MCP client via `stdin` and `stdout`.
82+
This is the default configuration. The `sse` transport is also configurable so the server is available over the network.
83+
Configure the `MCP_TRANSPORT` variable accordingly.
84+
85+
```commandline
86+
export MCP_TRANSPORT="sse"
87+
```
88+
89+
Then start the server.
90+
91+
```commandline
92+
uv run src/main.py
93+
```
94+
95+
Test the server:
96+
97+
```commandline
98+
curl -i http://127.0.0.1:8000/sse
99+
HTTP/1.1 200 OK
100+
```
101+
102+
Integrate with your favorite tool or client. The VS Code configuration for GitHub Copilot is:
103+
104+
```commandline
105+
"mcp": {
106+
"servers": {
107+
"redis-mcp": {
108+
"type": "sse",
109+
"url": "http://127.0.0.1:8000/sse"
110+
},
111+
}
112+
},
113+
```
114+
73115

74116
## Integration with OpenAI Agents SDK
75117

0 commit comments

Comments
 (0)