|
1 | 1 | # Redis MCP Server
|
| 2 | +[](https://opensource.org/licenses/MIT) |
| 3 | +[](https://www.python.org/downloads/) |
2 | 4 | [](https://smithery.ai/server/@redis/mcp-redis)
|
3 | 5 |
|
| 6 | + |
4 | 7 | <a href="https://glama.ai/mcp/servers/@redis/mcp-redis">
|
5 | 8 | <img width="380" height="200" src="https://glama.ai/mcp/servers/@redis/mcp-redis/badge" alt="Redis Server MCP server" />
|
6 | 9 | </a>
|
@@ -57,19 +60,58 @@ uv sync
|
57 | 60 |
|
58 | 61 | To configure this Redis MCP Server, consider the following environment variables:
|
59 | 62 |
|
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 | + |
73 | 115 |
|
74 | 116 | ## Integration with OpenAI Agents SDK
|
75 | 117 |
|
|
0 commit comments