Skip to main content

Redis Database Service MCP Integration

Provides a natural language interaction interface for Redis databases via the MCP protocol, supporting AI agents in efficiently managing and searching Redis data.

Go to CloudBase Platform to run MCP Server


Environment Variables

  • REDIS_HOST - Redis database server address (default: localhost)
  • REDIS_PORT - Redis database port number (default: 6379)
  • REDIS_USERNAME - Redis username (optional)
  • REDIS_PWD - Redis password (optional)
  • REDIS_SSL - Whether to enable SSL/TLS (default: false)
  • REDIS_CA_PATH - SSL certificate path (required when SSL is enabled)
  • REDIS_CLUSTER_MODE - Whether cluster mode is enabled (default: false)

🗺️ Feature List

String Operations

Tool IdentifierFunction DescriptionCore Parameters
string_setSet a string value (with expiration support)key (key name), value (value), optional expiration (expiration time-seconds)
string_getGet the string valuekey (key name)

Hash Operations

Tool IdentifierFunction DescriptionCore Parameters
hash_setSet a hash field valuekey (hash key), field (field name), value (field value)
hash_getGet the value of a specified hash fieldkey (hash key), field (field name)
hash_get_allGet all fields and values of a hashkey (hash key)
hash_deleteDelete the specified hash fieldkey (hash key), field (field name)

List Operations

Tool IdentifierFunction DescriptionCore Parameters
list_pushAdd elements to a listkey (list key), values (array of values), optional direction (left/right)
list_popPop an element from a listkey (list key), optional direction (left/right)
list_rangeGet a range of elements from a listkey (list key), start (start index), stop (end index)

Collection Operations

Tool IdentifierFunction DescriptionCore Parameters
set_addAdd members to a setkey (set key), members (array of members to add)
set_removeRemove members from a setkey (set key), members (array of members to remove)
set_membersGet all members of a setkey (set key)
set_is_memberCheck if a member is in a setkey (set key), member (member)

Sorted Set Operations

Tool IdentifierFunction DescriptionCore Parameters
sorted_set_addAdd members to a sorted setkey (set key), members (array of objects containing score and member)
sorted_set_rangeGet sorted set members by index rangekey (set key), start (start index), stop (end index), optional with_scores
sorted_set_range_by_scoreGet sorted set members by score rangekey (set key), min (minimum score), max (maximum score), optional with_scores
sorted_set_removeRemove members from a sorted setkey (sorted set key), members (array of members to remove)

Stream Operations

Tool IdentifierFunction DescriptionCore Parameters
stream_addAdd an entry to a streamkey (stream key), fields (object of field-value pairs), optional id (entry ID)
stream_readRead entries from a streamstreams (object of stream keys and starting IDs), optional count (number of entries to read)
stream_deleteDelete entries from a streamkey (stream key), ids (array of entry IDs to delete)

Pub/Sub Operations

Tool IdentifierFunction DescriptionCore Parameters
publishPublish a message to a channelchannel (channel name), message (message content)

JSON Operations

Tool IdentifierFunction DescriptionCore Parameters
json_setSet a JSON documentkey (key name), path (JSON path), value (JSON value)
json_getGet a JSON document or path valuekey (key name), optional path (JSON path)
json_deleteDelete the specified path in a JSON documentkey (key name), path (JSON path)

General Operations

Tool IdentifierFunction DescriptionCore Parameters
key_deleteDelete keyskeys (array of keys to delete)
key_existsCheck if a key existskey (key name)
key_expireSet key expiration timekey (key name), seconds (expiration time-seconds)
scan_keysScan Redis keys matching a patternpattern (matching pattern), optional count (number of keys returned per iteration)

Repository URL

https://github.com/redis/mcp-redis


🔌 Usage


CloudBase MCP Console