Redis MCP Server for Cloudflare Workers - Upstash REST API
Test Redis tools directly in your browser. Select a tool and provide inputs to see the results.
Create a free account to test Redis tools interactively. No credit card required.
redis_randomkeyReturn a random key from the database.
redis_msetnxSet multiple keys to multiple values, only if none of the keys exist.
redis_sremRemove one or more members from a set.
redis_smembersGet all members in a set.
redis_scardGet the number of members in a set.
redis_sismemberCheck if a member exists in a set.
redis_zrevrankGet the rank (position) of a member in a sorted set (highest score = 0).
redis_json_objkeysGet the keys of a JSON object.
redis_json_objlenGet the number of keys in a JSON object.
redis_hdelDelete one or more hash fields.
redis_json_numincrbyIncrement a JSON number value.
redis_hexistsCheck if a hash field exists.
redis_hkeysGet all field names in a hash.
redis_hvalsGet all values in a hash.
redis_hlenGet the number of fields in a hash.
redis_getbitGet the bit value at offset in the string value stored at key.
redis_hincrbyfloatIncrement the floating point value of a hash field by the given amount.
redis_hstrlenGet the length of the value of a hash field.
redis_hincrbyIncrement the integer value of a hash field by the given amount.
redis_hmsetSet multiple hash fields to multiple values (deprecated, use HSET).
redis_hmgetGet the values of multiple hash fields.
redis_hgetallGet all fields and values in a hash.
redis_setbitSet or clear the bit at offset in the string value stored at key.
redis_bitcountCount the number of set bits (population counting) in a string.
redis_bitposFind the position of the first bit set to 0 or 1 in a string.
redis_bitopPerform bitwise operations between strings.
redis_geoaddAdd geospatial items (longitude, latitude, name) to a sorted set.
redis_geodistGet the distance between two members in a geospatial index.
redis_geohashGet the geohash strings of members in a geospatial index.
redis_geoposGet the positions (longitude, latitude) of members in a geospatial index.
redis_geosearchSearch for members within a geographic area.
redis_geosearchstoreSearch for members within a geographic area and store the results.
redis_hgetGet the value of a hash field.
redis_hsetSet one or more hash fields to their values.
redis_hsetnxSet the value of a hash field only if it does not exist.
redis_hscanIncrementally iterate over hash fields and values.
redis_hrandfieldGet one or more random fields from a hash.
redis_pfaddAdd elements to a HyperLogLog data structure.
redis_pfcountGet the approximated cardinality (unique elements) of a HyperLogLog.
redis_pfmergeMerge multiple HyperLogLog values into a single one.
redis_json_setSet a JSON value at a path.
redis_json_getGet the JSON value at one or more paths.
redis_json_mgetGet a JSON value from multiple keys at a path.
redis_json_delDelete a JSON value at a path.
redis_json_typeGet the type of a JSON value at a path.
redis_json_strlenGet the length of a JSON string value.
redis_json_strappendAppend a string to a JSON string value.
redis_json_arrlenGet the length of a JSON array.
redis_json_arrindexFind the index of a value in a JSON array.
redis_json_arrinsertInsert values into a JSON array at a given index.
redis_json_arrappendAppend values to a JSON array.
redis_json_arrpopPop an element from a JSON array.
redis_json_arrtrimTrim a JSON array to a specified range.
redis_json_nummultbyMultiply a JSON number value.
redis_json_toggleToggle a JSON boolean value.
redis_json_clearClear all values in a JSON array or object.
redis_json_mergeMerge a JSON value into the document at a path.
redis_delDelete one or more keys.
redis_unlinkDelete one or more keys asynchronously (non-blocking).
redis_existsCheck if one or more keys exist. Returns the count of existing keys.
redis_expireSet a timeout on a key (in seconds). After the timeout, the key will be deleted.
redis_expireatSet the expiration of a key to a Unix timestamp (in seconds).
redis_pexpireSet a timeout on a key (in milliseconds).
redis_pexpireatSet the expiration of a key to a Unix timestamp (in milliseconds).
redis_ttlGet the time to live for a key in seconds. Returns -1 if no expiry, -2 if key does not exist.
redis_pttlGet the time to live for a key in milliseconds.
redis_expiretimeGet the expiration Unix timestamp of a key in seconds.
redis_pexpiretimeGet the expiration Unix timestamp of a key in milliseconds.
redis_persistRemove the expiration from a key.
redis_keysFind all keys matching a pattern. Warning: may be slow for large databases.
redis_saddAdd one or more members to a set.
redis_scanIncrementally iterate over keys. Safer than KEYS for production.
redis_renameRename a key.
redis_renamenxRename a key only if the new key does not exist.
redis_typeGet the data type of the value stored at a key.
redis_copyCopy the value at a key to another key.
redis_touchAlters the last access time of one or more keys.
redis_dumpSerialize the value stored at a key.
redis_restoreCreate a key from a serialized value.
redis_objectInspect the internals of Redis Objects.
redis_lpushPrepend one or more elements to a list. Creates the list if it does not exist.
redis_rpushAppend one or more elements to a list. Creates the list if it does not exist.
redis_lpopRemove and return the first element(s) from a list.
redis_rpopRemove and return the last element(s) from a list.
redis_llenGet the length of a list.
redis_lindexGet an element from a list by its index.
redis_lrangeGet a range of elements from a list.
redis_lsetSet the value of an element in a list by its index.
redis_lremRemove elements from a list. Count > 0: remove from head; count < 0: remove from tail; count = 0: remove all.
redis_ltrimTrim a list to the specified range.
redis_linsertInsert an element before or after another element in a list.
redis_lmoveAtomically pop an element from one list and push it to another.
redis_lposReturn the index of matching elements in a list.
redis_lpushxPrepend elements to a list only if the list exists.
redis_rpushxAppend elements to a list only if the list exists.
redis_publishPublish a message to a channel.
redis_pubsub_channelsList active channels (channels with at least one subscriber).
redis_pubsub_numsubGet the number of subscribers for specific channels.
redis_pubsub_numpatGet the number of unique pattern subscriptions.
redis_evalExecute a Lua script server-side.
redis_evalshaExecute a cached Lua script by its SHA1 digest.
redis_script_loadLoad a Lua script into the script cache.
redis_script_existsCheck if scripts exist in the script cache.
redis_script_flushRemove all scripts from the script cache.
redis_executeExecute any Redis command. Use for commands not covered by other tools.
redis_infoGet information and statistics about the server.
redis_dbsizeGet the number of keys in the currently selected database.
redis_flushdbDelete all keys in the current database. Use with caution!
redis_flushallDelete all keys in all databases. Use with extreme caution!
redis_timeGet the current server time.
redis_pingTest the connection to the server.
redis_echoEcho the given message back.
redis_smismemberCheck if multiple members exist in a set.
redis_spopRemove and return one or more random members from a set.
redis_srandmemberGet one or more random members from a set without removing them.
redis_smoveMove a member from one set to another.
redis_sinterGet the intersection of multiple sets.
redis_sinterstoreStore the intersection of multiple sets in a new set.
redis_sintercardGet the cardinality (number of members) of the intersection of multiple sets.
redis_sunionGet the union of multiple sets.
redis_sunionstoreStore the union of multiple sets in a new set.
redis_sdiffGet the difference between the first set and all successive sets.
redis_sdiffstoreStore the difference of multiple sets in a new set.
redis_sscanIncrementally iterate over members of a set.
redis_zaddAdd one or more members to a sorted set with scores.
redis_zremRemove one or more members from a sorted set.
redis_zcardGet the number of members in a sorted set.
redis_zcountCount members in a sorted set with scores within the given range.
redis_zscoreGet the score of a member in a sorted set.
redis_zmscoreGet the scores of multiple members in a sorted set.
redis_zrankGet the rank (position) of a member in a sorted set (lowest score = 0).
redis_zrangeGet a range of members from a sorted set.
redis_zrevrangeGet a range of members from a sorted set in reverse order.
redis_zrangebyscoreGet members with scores within the given range.
redis_xdelRemove entries from a stream.
redis_zrevrangebyscoreGet members with scores within the given range in reverse order.
redis_zpopminRemove and return members with the lowest scores.
redis_zpopmaxRemove and return members with the highest scores.
redis_zincrbyIncrement the score of a member in a sorted set.
redis_zinterstoreStore the intersection of multiple sorted sets in a new sorted set.
redis_zunionstoreStore the union of multiple sorted sets in a new sorted set.
redis_zdiffstoreStore the difference of sorted sets in a new sorted set.
redis_zlexcountCount members in a sorted set within the given lexicographical range.
redis_zremrangebyrankRemove members in a sorted set within the given index range.
redis_zremrangebyscoreRemove members in a sorted set within the given score range.
redis_zremrangebylexRemove members in a sorted set within the given lexicographical range.
redis_zscanIncrementally iterate over members and scores of a sorted set.
redis_zrandmemberGet one or more random members from a sorted set.
redis_xaddAppend a message to a stream.
redis_xlenGet the number of entries in a stream.
redis_xrangeRead a range of entries from a stream.
redis_xrevrangeRead a range of entries from a stream in reverse order.
redis_xtrimTrim a stream to a specified length or minimum ID.
redis_xinfoGet information about a stream, consumer groups, or consumers.
redis_xgroup_createCreate a consumer group for a stream.
redis_xgroup_destroyDestroy a consumer group.
redis_xgroup_setidSet the last delivered ID of a consumer group.
redis_xgroup_createconsumerCreate a consumer in a consumer group.
redis_xgroup_delconsumerDelete a consumer from a consumer group.
redis_xackAcknowledge one or more messages as processed.
redis_psetexSet the value and expiration (in milliseconds) of a key.
redis_xpendingGet information about pending messages in a consumer group.
redis_getGet the string value of a key. Returns null if the key does not exist.
redis_setSet the string value of a key. Supports expiration and conditional set options.
redis_mgetGet the values of multiple keys. Returns null for keys that do not exist.
redis_msetSet multiple keys to multiple values atomically.
redis_appendAppend a value to a key. Creates the key if it does not exist.
redis_strlenGet the length of the value stored at a key.
redis_incrIncrement the integer value of a key by one. Creates the key with value 0 if it does not exist.
redis_incrbyIncrement the integer value of a key by the given amount.
redis_incrbyfloatIncrement the floating point value of a key by the given amount.
redis_decrDecrement the integer value of a key by one.
redis_decrbyDecrement the integer value of a key by the given amount.
redis_getrangeGet a substring of the string value stored at a key.
redis_setrangeOverwrite part of a string at key starting at the specified offset.
redis_getexGet the value of a key and optionally set its expiration.
redis_getdelGet the value of a key and delete it.
redis_setnxSet the value of a key only if the key does not exist.
redis_setexSet the value and expiration (in seconds) of a key.
redis_getsetAtomically set a key to a value and return the old value.
redis_randomkey{}redis_msetnx{
"keyValues": true
}redis_srem{
"key": "example_key",
"members": true
}