We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528b76c commit 1c9c2ccCopy full SHA for 1c9c2cc
README.md
@@ -22,6 +22,24 @@ source .venv/bin/activate
22
uv sync
23
```
24
25
+
26
+## Configuration
27
28
+To configure the Redis Cloud API MCP Server, consider the following environment variables:
29
30
+| Name | Description | Default Value |
31
+|-------------------------|-----------------------------------------------------------|---------------|
32
+| `REDIS_HOST` | Redis IP or hostname | '127.0.0.1' |
33
+| `REDIS_PORT` | Redis port | 6379 |
34
+| `REDIS_USERNAME` | Default database username | 'default' |
35
+| `REDIS_PWD` | Default database password | '' |
36
+| `REDIS_SSL` | Enables or disables SSL/TLS | False |
37
+| `REDIS_CA_PATH` | CA certificate for verifying server | '' |
38
+| `REDIS_SSL_KEYFILE` | Client's private key file for client authentication | '' |
39
+| `REDIS_SSL_CERTFILE` | Client's certificate file for client authentication | '' |
40
+| `REDIS_CERT_REQS` | Whether the client should verify the server's certificate | '' |
41
+| `REDIS_CA_CERTS` | Path to the trusted CA certificates file | '' |
42
43
## Integration with Claude Desktop
44
You can configure Claude Desktop to use this MCP Server.
45
src/common/config.py
@@ -5,11 +5,11 @@
5
6
REDIS_CFG = {"host": os.getenv('REDIS_HOST', '127.0.0.1'),
7
"port": int(os.getenv('REDIS_PORT',6379)),
8
- "username": os.getenv('REDIS_USERNAME','default'),
+ "username": os.getenv('REDIS_USERNAME', None),
9
"password": os.getenv('REDIS_PWD',''),
10
"ssl": os.getenv('REDIS_SSL', False),
11
- "ssl_ca_path": os.getenv('REDIS_CA_PATH',''),
12
- "ssl_keyfile": os.getenv('REDIS_SSL_KEYFILE', ''),
13
- "ssl_certfile": os.getenv('REDIS_SSL_CERTFILE', ''),
14
- "ssl_cert_reqs": os.getenv('REDIS_CERT_REQS', ''),
15
- "ssl_ca_certs": os.getenv('REDIS_CA_CERTS', '')}
+ "ssl_ca_path": os.getenv('REDIS_SSL_CA_PATH', None),
+ "ssl_keyfile": os.getenv('REDIS_SSL_KEYFILE', None),
+ "ssl_certfile": os.getenv('REDIS_SSL_CERTFILE', None),
+ "ssl_cert_reqs": os.getenv('REDIS_SSL_CERT_REQS', 'required'),
+ "ssl_ca_certs": os.getenv('REDIS_SSL_CA_CERTS', None)}
src/common/connection.py
@@ -20,6 +20,10 @@ def get_connection(cls, decode_responses=True) -> Redis:
20
password=REDIS_CFG["password"],
21
ssl=REDIS_CFG["ssl"],
ssl_ca_path=REDIS_CFG["ssl_ca_path"],
+ ssl_keyfile=REDIS_CFG["ssl_keyfile"],
+ ssl_certfile=REDIS_CFG["ssl_certfile"],
+ ssl_cert_reqs=REDIS_CFG["ssl_cert_reqs"],
+ ssl_ca_certs=REDIS_CFG["ssl_ca_certs"],
decode_responses=decode_responses,
max_connections=10,
lib_name=f"redis-py(mcp-server_v{__version__})"
0 commit comments