Redis

Redis

Access to Redis database operations.

6.6K

8

44 Tools

Signed
Built by Docker
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

Tools

NameDescription
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. This function sets up a Redis index for approximate nearest neighbor (ANN) search using the HNSW algorithm and float32 vector embeddings.
dbsizeGet the number of keys stored in the Redis database
deleteDelete a Redis key.
expireSet an expiration time for a Redis key.
getGet a Redis string value.
get_index_infoRetrieve schema and information about a specific Redis index using FT.INFO.
get_indexed_keys_numberRetrieve the number of indexed keys by the index
get_indexesList of indexes in the Redis database Returns: str: A JSON string containing the list of indexes or an error message.
get_vector_from_hashRetrieve a vector from a Redis hash and convert it back from binary blob.
hdelDelete a field from a Redis hash.
hexistsCheck if a field exists in a Redis hash.
hgetGet the value of a field in a Redis hash.
hgetallGet all fields and values from a Redis hash.
hsetSet a field in a hash stored at key with an optional expiration time.
infoGet Redis server information and statistics.
json_delDelete a JSON value from Redis at a given path.
json_getRetrieve a JSON value from Redis at a given path.
json_setSet a JSON value in Redis at a given path with an optional expiration time.
llenGet the length of a Redis list.
lpopRemove and return the first element from a Redis list.
lpushPush a value onto the left of a Redis list and optionally set an expiration time.
lrangeGet elements from a Redis list within a specific range. Returns: str: A JSON string containing the list of elements or an error message.
publishPublish a message to a Redis channel.
renameRenames a Redis key from old_key to new_key.
rpopRemove and return the last element from a Redis list.
rpushPush a value onto the right of a Redis list and optionally set an expiration time.
saddAdd a value to a Redis set with an optional expiration time.
scan_all_keysScan and return ALL keys matching a pattern using multiple SCAN iterations. This function automatically handles the SCAN cursor iteration to collect all matching keys. It's safer than KEYS * for large databases but will still collect all results in memory. ⚠️ WARNING: With very large datasets (millions of keys), this may consume significant memory. For large-scale operations, consider using scan_keys() with manual iteration instead.
scan_keysScan keys in the Redis database using the SCAN command (non-blocking, production-safe). ⚠️ IMPORTANT: This returns PARTIAL results from one iteration. Use scan_all_keys() to get ALL matching keys, or call this function multiple times with the returned cursor until cursor becomes 0. The SCAN command iterates through the keyspace in small chunks, making it safe to use on large databases without blocking other operations.
setSet a Redis string value with an optional expiration time.
set_vector_in_hashStore a vector as a field in a Redis hash.
smembersGet all members of a Redis set.
sremRemove a value from a Redis set.
subscribeSubscribe to a Redis channel.
typeReturns the string representation of the type of the value stored at key
unsubscribeUnsubscribe from a Redis channel.
vector_search_hashPerform a KNN vector similarity search using Redis 8 or later version on vectors stored in hash data structures.
xaddAdd an entry to a Redis stream with an optional expiration time.
xdelDelete an entry from a Redis stream.
xrangeRead entries from a Redis stream.
zaddAdd a member to a Redis sorted set with an optional expiration time.
zrangeRetrieve a range of members from a Redis sorted set.
zremRemove a member from a Redis sorted set.

Manual installation

You can install the MCP server using:

Installation for

Related servers