Skip to content

Commit f776a3e

Browse files
committed
Indication to use ACLs, removed ping to Redis at startup
1 parent 6ac2f78 commit f776a3e

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The Redis MCP Server is a **natural language interface** designed for agentic ap
2121
- [Development Installation](#development-installation)
2222
- [With Docker](#with-docker)
2323
- [Configuration](#configuration)
24+
- [Redis ACL](#redis-acl)
2425
- [Configuration via command line arguments](#configuration-via-command-line-arguments)
2526
- [Configuration via Environment Variables](#configuration-via-environment-variables)
2627
- [Integrations](#integrations)
@@ -190,6 +191,16 @@ To use the official [Redis MCP Docker](https://hub.docker.com/r/mcp/redis) image
190191
The Redis MCP Server can be configured in two ways: via command line arguments or via environment variables.
191192
The precedence is: command line arguments > environment variables > default values.
192193

194+
### Redis ACL
195+
196+
You can configure Redis ACL to restrict the access to the Redis database. For example, to create a read-only user:
197+
198+
```
199+
127.0.0.1:6379> ACL SETUSER readonlyuser on >mypassword ~* +@read -@write
200+
```
201+
202+
Configure the user via command line arguments or environment variables.
203+
193204
### Configuration via command line arguments
194205

195206
When using the CLI interface, you can configure the server with command line arguments:

src/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ def cli(url, host, port, db, username, password,
7878

7979
set_redis_config_from_cli(config)
8080

81-
# Test the connection
82-
RedisConnectionManager.get_connection().ping()
83-
8481
# Start the server
8582
server = RedisMCPServer()
8683
server.run()

0 commit comments

Comments
 (0)