About redis/mcp-redis
redis/mcp-redis is an MCP server published by redis in the Data category: the official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently. Conduid read 54 tools from its source: client_list, create_vector_index_hash, dbsize, delete, expire, get and 48 more. No package is published for it, so it installs from a source checkout.
The repository has 645 stars and 127 forks, is licensed MIT, and its last commit was on 29 Nov 2026. The latest release is 0.5.1 (5 Aug 2026). It follows 0.5.0 (16 Mar 2026), and the 5 most recent releases go back to 0.3.6 (7 Nov 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data.
Install
git clone https://github.com/redis/mcp-redisTools (54)
client_listGet a list of connected clients to the Redis server.create_vector_index_hashCreate a Redis 8 vector similarity index using HNSW on a Redis hash.| Parameter | Type | Description |
|---|---|---|
| dim | integer | The dimensionality of the vectors stored under the vector_field. |
| distance_metric | string | The distance function to use (e.g., 'COSINE', 'L2', 'IP'). |
| index_name | string | The name of the Redis index to create. Unless specifically required, use the default name for the index. |
| prefix | string | The key prefix used to identify documents to index (e.g., 'doc:'). Unless specifically required, use the default prefix. |
| vector_field | string | The name of the vector field to be indexed for similarity search. Unless specifically required, use the default field name |
dbsizeGet the number of keys stored in the Redis databasedeleteDelete a Redis key.| Parameter | Type | Description |
|---|---|---|
| key * | string | The key to delete. |
expireSet an expiration time for a Redis key.| Parameter | Type | Description |
|---|---|---|
| expire_seconds * | integer | Time in seconds after which the key should expire. |
| name * | string | The Redis key. |
getGet a Redis string value.| Parameter | Type | Description |
|---|---|---|
| key * | string | The key to retrieve. |
get_index_infoRetrieve schema and information about a specific Redis index using FT.INFO.| Parameter | Type | Description |
|---|---|---|
| index_name * | string | The name of the index to retrieve information about. |
get_indexed_keys_numberRetrieve the number of indexed keys by the index| Parameter | Type | Description |
|---|---|---|
| index_name * | string | The name of the index to retrieve information about. |
get_indexesList of indexes in the Redis databaseget_vector_from_hashRetrieve a vector from a Redis hash and convert it back from binary blob.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis hash key. |
| vector_field | string | The field name inside the hash. Unless specifically required, use the default field name |
hdelDelete a field from a Redis hash.| Parameter | Type | Description |
|---|---|---|
| key * | string | The field name inside the hash. |
| name * | string | The Redis hash key. |
hexistsCheck if a field exists in a Redis hash.| Parameter | Type | Description |
|---|---|---|
| key * | string | The field name inside the hash. |
| name * | string | The Redis hash key. |
hgetGet the value of a field in a Redis hash.| Parameter | Type | Description |
|---|---|---|
| key * | string | The field name inside the hash. |
| name * | string | The Redis hash key. |
hgetallGet all fields and values from a Redis hash.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis hash key. |
hsetSet a field in a hash stored at key with an optional expiration time.| Parameter | Type | Description |
|---|---|---|
| expire_seconds | integer | Optional; time in seconds after which the key should expire. |
| key * | string | The field name inside the hash. |
| name * | string | The Redis hash key. |
| value * | any | The value to set. |
hybrid_searchPerform a hybrid search combining a Redis filter expression with KNN vector similarity.| Parameter | Type | Description |
|---|---|---|
| filter_expression | string | Redis filter expression to restrict candidates before KNN ranking. Defaults to '*' (no filter). |
| index_name | string | Name of the Redis index (default: 'vector_index'). |
| k | integer | Number of nearest neighbors to return. |
| query_vector * | array | List of floats to use as the query vector. |
| return_fields | array | Additional fields to include in results (optional). |
| vector_field | string | Name of the indexed vector field (default: 'vector'). |
infoGet Redis server information and statistics.| Parameter | Type | Description |
|---|---|---|
| section | string | The section of the info command (default, memory, cpu, etc.). |
json_delDelete a JSON value from Redis at a given path.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis key where the JSON document is stored. |
| path | string | The JSON path to delete (default: root '$'). |
json_getRetrieve a JSON value from Redis at a given path.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis key where the JSON document is stored. |
| path | string | The JSON path to retrieve (default: root '$'). |
json_setSet a JSON value in Redis at a given path with an optional expiration time.| Parameter | Type | Description |
|---|---|---|
| expire_seconds | integer | Optional; time in seconds after which the key should expire. |
| name * | string | The Redis key where the JSON document is stored. |
| path * | string | The JSON path where the value should be set. |
| value * | string | The JSON value to store (as JSON string, or will be auto-converted). |
llenGet the length of a Redis list.| Parameter | Type | Description |
|---|---|---|
| name * | string |
lpopRemove and return the first element from a Redis list.| Parameter | Type | Description |
|---|---|---|
| name * | string |
lpushPush one or more values onto the left of a Redis list and optionally set an expiration time.| Parameter | Type | Description |
|---|---|---|
| expire | integer | Optional expiration time in seconds |
| name * | string | The name of the list |
| value * | any | A single value, or a list of values pushed in one LPUSH call. Values are inserted one after another at the head, so [a, b, c] results in the list starting with c, b, a. |
lrangeGet elements from a Redis list within a specific range.| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| start * | integer | |
| stop * | integer |
lremRemove elements from a Redis list.| Parameter | Type | Description |
|---|---|---|
| count * | integer | Number of elements to remove (0 = all, positive = from head, negative = from tail) |
| element * | any | The element value to remove |
| name * | string | The name of the list |
psubscribeSubscribe to Redis channels using a pattern.| Parameter | Type | Description |
|---|---|---|
| pattern * | string | The Redis channel pattern to subscribe to. |
publishPublish a message to a Redis channel.| Parameter | Type | Description |
|---|---|---|
| channel * | string | The Redis channel to publish to. |
| message * | string | The message to send. |
read_messagesRead pending pub/sub messages for an existing subscription.| Parameter | Type | Description |
|---|---|---|
| max_messages | integer | Maximum number of messages to return in one call. |
| subscription_id * | string | The ID returned by subscribe() or psubscribe(). |
| timeout_ms | integer | Time to wait for messages in milliseconds. Use 0 for non-blocking. |
renameRenames a Redis key from old_key to new_key.| Parameter | Type | Description |
|---|---|---|
| new_key * | string | The new name to assign to the key. |
| old_key * | string | The current name of the Redis key to rename. |
rpopRemove and return the last element from a Redis list.| Parameter | Type | Description |
|---|---|---|
| name * | string |
rpushPush one or more values onto the right of a Redis list and optionally set an expiration time.| Parameter | Type | Description |
|---|---|---|
| expire | integer | Optional expiration time in seconds |
| name * | string | The name of the list |
| value * | any | A single value, or a list of values pushed in one RPUSH call |
saddAdd a value to a Redis set with an optional expiration time.| Parameter | Type | Description |
|---|---|---|
| expire_seconds | integer | Optional; time in seconds after which the set should expire. |
| name * | string | The Redis set key. |
| value * | string | The value to add to the set. |
scan_all_keysScan and return ALL keys matching a pattern using multiple SCAN iterations.| Parameter | Type | Description |
|---|---|---|
| batch_size | integer | Number of keys to scan per iteration (default 100). |
| pattern | string | Pattern to match keys against (default is "*" for all keys). |
scan_keysScan keys in the Redis database using the SCAN command (non-blocking, production-safe).| Parameter | Type | Description |
|---|---|---|
| count | integer | Hint for the number of keys to return per iteration (default 100). Redis may return more or fewer keys than this hint. |
| cursor | integer | The cursor position to start scanning from (0 to start from beginning). To continue scanning, use the cursor value returned from previous call. |
| pattern | string | Pattern to match keys against (default is "*" for all keys). Common patterns: "user:*", "cache:*", "*:123", etc. |
search_redis_documentsSearch Redis documentation and knowledge base to learn about Redis concepts and use cases.| Parameter | Type | Description |
|---|---|---|
| question * | string | The question about Redis concepts, data structures, features, or use cases |
setSet a Redis string value with an optional expiration time.| Parameter | Type | Description |
|---|---|---|
| expiration | integer | Expiration time in seconds. |
| key * | string | The key to set. |
| value * | any | The value to store. |
set_vector_in_hashStore a vector as a field in a Redis hash.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis hash key. |
| vector * | array | The vector (list of numbers) to store in the hash. |
| vector_field | string | The field name inside the hash. Unless specifically required, use the default field name |
smembersGet all members of a Redis set.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis set key. |
sremRemove a value from a Redis set.| Parameter | Type | Description |
|---|---|---|
| name * | string | The Redis set key. |
| value * | string | The value to remove from the set. |
subscribeSubscribe to a Redis channel and return a reusable subscription handle.| Parameter | Type | Description |
|---|---|---|
| channel * | string | The Redis channel to subscribe to. |
typeReturns the type of the value stored at key and the key's remaining time to live.| Parameter | Type | Description |
|---|---|---|
| key * | string | The key to check. |
unsubscribeUnsubscribe and close an existing pub/sub subscription.| Parameter | Type | Description |
|---|---|---|
| subscription_id * | string | The ID returned by subscribe() or psubscribe(). |
vector_search_hashPerform a KNN vector similarity search using Redis 8 or later version on vectors stored in hash data structures.| Parameter | Type | Description |
|---|---|---|
| index_name | string | Name of the Redis index. Unless specifically specified, use the default index name. |
| k | integer | Number of nearest neighbors to return. |
| query_vector * | array | List of floats to use as the query vector. |
| return_fields | array | List of fields to return (optional). |
| vector_field | string | Name of the indexed vector field. Unless specifically required, use the default field name |
xackAcknowledge entries that were processed by a consumer group.| Parameter | Type | Description |
|---|---|---|
| entry_ids * | array | Entry IDs to acknowledge. |
| group_name * | string | The consumer group name. |
| key * | string | The stream key. |
xaddAdd an entry to a Redis stream with an optional expiration time.| Parameter | Type | Description |
|---|---|---|
| expiration | integer | Expiration time in seconds. |
| fields * | object | The fields and values for the stream entry. |
| key * | string | The stream key. |
xdelDelete an entry from a Redis stream.| Parameter | Type | Description |
|---|---|---|
| entry_id * | string | The ID of the entry to delete. |
| key * | string | The stream key. |
xgroup_createCreate a consumer group for a Redis stream.| Parameter | Type | Description |
|---|---|---|
| group_name * | string | The consumer group name. |
| key * | string | The stream key. |
| mkstream | boolean | Create the stream if it does not exist. |
| start_id | string | Stream ID from which the group starts consuming. |
xgroup_destroyDestroy a consumer group for a Redis stream.| Parameter | Type | Description |
|---|---|---|
| group_name * | string | The consumer group name. |
| key * | string | The stream key. |
xinfo_groupsList the consumer groups of a Redis stream. This only reads the stream.| Parameter | Type | Description |
|---|---|---|
| key * | string | The stream key. |
xrangeRead entries from a Redis stream.| Parameter | Type | Description |
|---|---|---|
| count | integer | Number of entries to retrieve. |
| key * | string | The stream key. |
xreadgroupRead entries from a Redis stream using a consumer group.| Parameter | Type | Description |
|---|---|---|
| block_ms | integer | Maximum time to block waiting for entries. Use None for a non-blocking read. 0 is rejected because Redis treats BLOCK 0 as an indefinite wait. |
| consumer_name * | string | The consumer name. |
| count | integer | Maximum number of entries to retrieve. |
| group_name * | string | The consumer group name. |
| key * | string | The stream key. |
| stream_id | string | Stream ID to read from. Use ">" for new messages. |
zaddAdd a member to a Redis sorted set with an optional expiration time.| Parameter | Type | Description |
|---|---|---|
| expiration | integer | Expiration time in seconds. |
| key * | string | The sorted set key. |
| member * | string | The member to add. |
| score * | number | The score of the member. |
zrangeRetrieve a range of members from a Redis sorted set.| Parameter | Type | Description |
|---|---|---|
| end * | integer | The ending index. |
| key * | string | The sorted set key. |
| start * | integer | The starting index. |
| with_scores | boolean | Whether to include scores in the result. |
zremRemove a member from a Redis sorted set.| Parameter | Type | Description |
|---|---|---|
| key * | string | The sorted set key. |
| member * | string | The member to remove. |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 23 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 1 callsrc/tools/misc.py:249
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 23 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.2K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README