Advanced data structures with Valkey.
10K+
105 Tools
Version 4.43 or later needs to be installed to add the server automatically
Use cases
About
Advanced data structures with Valkey.
| Attribute | Details |
|---|---|
| Docker Image | mcp/valkey-mcp-server |
| Author | awslabs |
| Repository | https://github.com/awslabs/mcp |
| Attribute | Details |
|---|---|
| Dockerfile | https://github.com/awslabs/mcp/blob/3a5294539de4de3a91d0ee72d5487bc8b8b1fcd7/src/valkey-mcp-server/Dockerfile |
| Commit | 3a5294539de4de3a91d0ee72d5487bc8b8b1fcd7 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/valkey-mcp-server --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| Licence | Apache License 2.0 |
| Tools provided by this Server | Short Description |
|---|---|
bitmap_count | Count the number of set bits (1) in a range. |
bitmap_get | Get the bit value at offset. |
bitmap_pos | Find positions of bits set to a specific value. |
bitmap_set | Set the bit at offset to value. |
client_list | Get a list of connected clients to the Valkey server. |
dbsize | Get the number of keys stored in the Valkey database. |
delete | Delete a Valkey key. |
expire | Set an expiration time for a Redis key. |
hash_exists | Check if field exists in hash. |
hash_get | Get field from hash. |
hash_get_all | Get all fields and values from hash. |
hash_increment | Increment field value in hash. |
hash_keys | Get all field names from hash. |
hash_length | Get number of fields in hash. |
hash_random_field | Get random field(s) from hash. |
hash_random_field_with_values | Get random field(s) with their values from hash. |
hash_set | Set field in hash. |
hash_set_if_not_exists | Set field in hash only if it does not exist. |
hash_set_multiple | Set multiple fields in hash. |
hash_strlen | Get length of field value in hash. |
hash_values | Get all values from hash. |
hll_add | Add one element to a HyperLogLog. |
hll_count | Get the estimated cardinality of a HyperLogLog. |
info | Get Valkey server information and statistics. |
json_arrappend | Append values to the array at path. |
json_arrindex | Get the index of value in array at path. |
json_arrlen | Get the length of array at path. |
json_arrpop | Pop a value from the array at path and index. |
json_arrtrim | Trim array at path to include only elements within range. |
json_clear | Clear container at path (array or object). |
json_del | Delete value at path. |
json_get | Get the JSON value at path. |
json_numincrby | Increment the number at path by value. |
json_nummultby | Multiply the number at path by value. |
json_objkeys | Get the keys in the object at path. |
json_objlen | Get the number of keys in the object at path. |
json_set | Set the JSON value at path. |
json_strappend | Append a string to the string at path. |
json_strlen | Get the length of string at path. |
json_toggle | Toggle boolean value at path. |
json_type | Get the type of JSON value at path. |
list_append | Append value to list. |
list_append_multiple | Append multiple values to list. |
list_get | Get value at index from list. |
list_insert_after | Insert value after pivot in list. |
list_insert_before | Insert value before pivot in list. |
list_length | Get length of list. |
list_move | Move element from one list to another. |
list_pop_left | Pop value(s) from left of list. |
list_pop_right | Pop value(s) from right of list. |
list_position | Find position(s) of value in list. |
list_prepend | Prepend value to list. |
list_prepend_multiple | Prepend multiple values to list. |
list_range | Get range of values from list. |
list_remove | Remove occurrences of value from list. |
list_set | Set value at index in list. |
list_trim | Trim list to specified range. |
rename | Renames a Redis key from old_key to new_key. |
set_add | Add member to set. |
set_cardinality | Get number of members in set. |
set_contains | Check if member exists in set. |
set_members | Get all members in set. |
set_move | Move member from one set to another. |
set_pop | Remove and return random member(s) from set. |
set_random_member | Get random member(s) from set without removing. |
set_remove | Remove member from set. |
sorted_set_add | Add member-score pairs to sorted set. |
sorted_set_add_incr | Add member to sorted set or increment its score. |
sorted_set_cardinality | Get number of members in sorted set. |
sorted_set_popmax | Remove and return members with highest scores. |
sorted_set_popmin | Remove and return members with lowest scores. |
sorted_set_range | Get range of members from sorted set. |
sorted_set_range_by_lex | Get range of members by lexicographical order. |
sorted_set_range_by_score | Get range of members by score. |
sorted_set_rank | Get rank of member in sorted set. |
sorted_set_remove | Remove member(s) from sorted set. |
sorted_set_remove_by_lex | Remove members by lexicographical range. |
sorted_set_remove_by_rank | Remove members by rank range. |
sorted_set_remove_by_score | Remove members by score range. |
sorted_set_score | Get score of member in sorted set. |
stream_add | Add entry to stream. |
stream_delete | Delete entries from stream. |
stream_group_create | Create consumer group. |
stream_group_delete_consumer | Delete consumer from group. |
stream_group_destroy | Destroy consumer group. |
stream_group_set_id | Set consumer group's last delivered ID. |
stream_info | Get information about stream. |
stream_info_consumers | Get information about consumers in group. |
stream_info_groups | Get information about consumer groups. |
stream_length | Get length of stream. |
stream_range | Get range of entries from stream. |
stream_read | Read entries from stream. |
stream_read_group | Read entries from stream as part of consumer group. |
stream_trim | Trim stream to specified length. |
string_append | Append to string value. |
string_decrement | Decrement integer value. |
string_get | Get string value. |
string_get_range | Get substring. |
string_get_set | Set new value and return old value. |
string_increment | Increment integer value. |
string_increment_float | Increment float value. |
string_length | Get string length. |
string_set | Set string value. |
string_set_range | Overwrite part of string. |
type | Returns the string representation of the type of the value stored at key. |
bitmap_countCount the number of set bits (1) in a range.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the bitmap key |
end | stringoptional | End offset (inclusive, optional) |
start | stringoptional | Start offset (inclusive, optional) |
bitmap_getGet the bit value at offset.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the bitmap key |
offset | integer | The bit offset (0-based) |
bitmap_posFind positions of bits set to a specific value.
| Parameters | Type | Description |
|---|---|---|
bit | integer | Bit value to search for (0 or 1) |
key | string | The name of the bitmap key |
count | stringoptional | Maximum number of positions to return (optional) |
end | stringoptional | End offset (inclusive, optional) |
start | stringoptional | Start offset (inclusive, optional) |
bitmap_setSet the bit at offset to value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the bitmap key |
offset | integer | The bit offset (0-based) |
value | integer | The bit value (0 or 1) |
client_listGet a list of connected clients to the Valkey server.
dbsizeGet the number of keys stored in the Valkey database.
deleteDelete a Valkey key.
| Parameters | Type | Description |
|---|---|---|
key | string |
expireSet an expiration time for a Redis key.
| Parameters | Type | Description |
|---|---|---|
expire_seconds | integer | Time in seconds after which the key should expire. |
name | string | The Redis key. |
hash_existsCheck if field exists in hash.
| Parameters | Type | Description |
|---|---|---|
field | string | The field name |
key | string | The name of the key |
hash_getGet field from hash.
| Parameters | Type | Description |
|---|---|---|
field | string | The field name |
key | string | The name of the key |
hash_get_allGet all fields and values from hash.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
hash_incrementIncrement field value in hash.
| Parameters | Type | Description |
|---|---|---|
field | string | The field name |
key | string | The name of the key |
amount | stringoptional | Amount to increment by (default: 1) |
hash_keysGet all field names from hash.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
hash_lengthGet number of fields in hash.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
hash_random_fieldGet random field(s) from hash.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of fields to return (optional) |
hash_random_field_with_valuesGet random field(s) with their values from hash.
| Parameters | Type | Description |
|---|---|---|
count | integer | Number of field-value pairs to return |
key | string | The name of the key |
hash_setSet field in hash.
| Parameters | Type | Description |
|---|---|---|
field | string | The field name |
key | string | The name of the key |
value | string | The value to set |
hash_set_if_not_existsSet field in hash only if it does not exist.
| Parameters | Type | Description |
|---|---|---|
field | string | The field name |
key | string | The name of the key |
value | string | The value to set |
hash_set_multipleSet multiple fields in hash.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
mapping | object | Dictionary of field-value pairs |
hash_strlenGet length of field value in hash.
| Parameters | Type | Description |
|---|---|---|
field | string | The field name |
key | string | The name of the key |
hash_valuesGet all values from hash.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
hll_addAdd one element to a HyperLogLog.
| Parameters | Type | Description |
|---|---|---|
element | string | One element to add |
key | string | The name of the HyperLogLog key |
hll_countGet the estimated cardinality of a HyperLogLog.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the HyperLogLog key |
infoGet Valkey server information and statistics.
| Parameters | Type | Description |
|---|---|---|
section | stringoptional | The section of the info command (default, memory, cpu, etc.). |
json_arrappendAppend values to the array at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
values | string |
json_arrindexGet the index of value in array at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
value | string | The value to search for |
start | stringoptional | Start offset (optional) |
stop | stringoptional | Stop offset (optional) |
json_arrlenGet the length of array at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_arrpopPop a value from the array at path and index.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
index | integeroptional | The index to pop from (-1 for last element) |
json_arrtrimTrim array at path to include only elements within range.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
start | integer | Start index (inclusive) |
stop | integer | Stop index (inclusive) |
json_clearClear container at path (array or object).
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_delDelete value at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_getGet the JSON value at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
indent | stringoptional | Number of spaces for indentation (optional) |
newline | stringoptional | Add newlines in formatted output (optional) |
path | stringoptional | The path in the JSON document (optional, defaults to root) |
space | stringoptional | Add spaces in formatted output (optional) |
json_numincrbyIncrement the number at path by value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
value | string | The increment value (integer or float) |
json_nummultbyMultiply the number at path by value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
value | string | The multiplier value (integer or float) |
json_objkeysGet the keys in the object at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_objlenGet the number of keys in the object at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_setSet the JSON value at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document (e.g., "$.name" or "." for root) |
value | string | The value to set |
nx | booleanoptional | Only set if path doesn't exist |
xx | booleanoptional | Only set if path exists |
json_strappendAppend a string to the string at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
value | string | The string to append |
json_strlenGet the length of string at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_toggleToggle boolean value at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | string | The path in the JSON document |
json_typeGet the type of JSON value at path.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
path | stringoptional | The path in the JSON document (optional, defaults to root) |
list_appendAppend value to list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | The value to append |
list_append_multipleAppend multiple values to list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
values | array | List of values to append |
list_getGet value at index from list.
| Parameters | Type | Description |
|---|---|---|
index | integer | The index (0-based, negative indices supported) |
key | string | The name of the key |
list_insert_afterInsert value after pivot in list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
pivot | string | The pivot value |
value | string | The value to insert |
list_insert_beforeInsert value before pivot in list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
pivot | string | The pivot value |
value | string | The value to insert |
list_lengthGet length of list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
list_moveMove element from one list to another.
| Parameters | Type | Description |
|---|---|---|
destination | string | Destination list key |
source | string | Source list key |
wherefrom | stringoptional | Where to pop from ("LEFT" or "RIGHT") |
whereto | stringoptional | Where to push to ("LEFT" or "RIGHT") |
list_pop_leftPop value(s) from left of list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of values to pop (optional) |
list_pop_rightPop value(s) from right of list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of values to pop (optional) |
list_positionFind position(s) of value in list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | Value to search for |
count | stringoptional | Return this many matches (optional) |
maxlen | stringoptional | Limit search to first N elements (optional) |
rank | stringoptional | Match the Nth occurrence (optional) |
list_prependPrepend value to list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | The value to prepend |
list_prepend_multiplePrepend multiple values to list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
values | array | List of values to prepend |
list_rangeGet range of values from list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
start | integeroptional | Start index (inclusive, default 0) |
stop | integeroptional | Stop index (inclusive, default -1 for end) |
list_removeRemove occurrences of value from list.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | Value to remove |
count | integeroptional | Number of occurrences to remove (0 for all, positive for left-to-right, negative for right-to-left) |
list_setSet value at index in list.
| Parameters | Type | Description |
|---|---|---|
index | integer | The index (0-based, negative indices supported) |
key | string | The name of the key |
value | string | The value to set |
list_trimTrim list to specified range.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
start | integer | Start index (inclusive) |
stop | integer | Stop index (inclusive) |
renameRenames a Redis key from old_key to new_key.
| Parameters | Type | Description |
|---|---|---|
new_key | string | |
old_key | string |
set_addAdd member to set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
member | string | Member to add |
set_cardinalityGet number of members in set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
set_containsCheck if member exists in set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
member | string | Member to check |
set_membersGet all members in set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
set_moveMove member from one set to another.
| Parameters | Type | Description |
|---|---|---|
destination | string | Destination set key |
member | string | Member to move |
source | string | Source set key |
set_popRemove and return random member(s) from set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of members to pop (optional) |
set_random_memberGet random member(s) from set without removing.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of members to return (optional) |
set_removeRemove member from set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
member | string | Member to remove |
sorted_set_addAdd member-score pairs to sorted set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
mapping | object | Dictionary of member-score pairs |
sorted_set_add_incrAdd member to sorted set or increment its score.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
member | string | The member to add/update |
score | number | Score to add to existing score (or initial score) |
sorted_set_cardinalityGet number of members in sorted set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
max_score | stringoptional | Maximum score (optional) |
min_score | stringoptional | Minimum score (optional) |
sorted_set_popmaxRemove and return members with highest scores.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of members to pop (optional) |
sorted_set_popminRemove and return members with lowest scores.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Number of members to pop (optional) |
sorted_set_rangeGet range of members from sorted set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
reverse | booleanoptional | Return results in reverse order |
start | integeroptional | Start index (inclusive) |
stop | integeroptional | Stop index (inclusive) |
withscores | booleanoptional | Include scores in result |
sorted_set_range_by_lexGet range of members by lexicographical order.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
max_lex | string | Maximum value (inclusive) |
min_lex | string | Minimum value (inclusive) |
count | stringoptional | Maximum number of members to return |
offset | stringoptional | Number of members to skip |
reverse | booleanoptional | Return results in reverse order |
sorted_set_range_by_scoreGet range of members by score.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
max_score | number | Maximum score (inclusive) |
min_score | number | Minimum score (inclusive) |
count | stringoptional | Maximum number of members to return |
offset | stringoptional | Number of members to skip |
reverse | booleanoptional | Return results in reverse order |
withscores | booleanoptional | Include scores in result |
sorted_set_rankGet rank of member in sorted set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
member | string | The member to get rank for |
reverse | booleanoptional | If True, get rank in reverse order (highest first) |
sorted_set_removeRemove member(s) from sorted set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
members | string |
sorted_set_remove_by_lexRemove members by lexicographical range.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
max_lex | string | Maximum value (inclusive) |
min_lex | string | Minimum value (inclusive) |
sorted_set_remove_by_rankRemove members by rank range.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
start | integer | Start rank (inclusive) |
stop | integer | Stop rank (inclusive) |
sorted_set_remove_by_scoreRemove members by score range.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
max_score | number | Maximum score (inclusive) |
min_score | number | Minimum score (inclusive) |
sorted_set_scoreGet score of member in sorted set.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
member | string | The member to get score for |
stream_addAdd entry to stream.
| Parameters | Type | Description |
|---|---|---|
field_dict | object | Dictionary of field-value pairs |
key | string | The name of the key |
approximate | booleanoptional | Whether maxlen is approximate |
id | stringoptional | Entry ID (default "*" for auto-generation) |
maxlen | stringoptional | Maximum length of stream (optional) |
stream_deleteDelete entries from stream.
| Parameters | Type | Description |
|---|---|---|
id | string | Entry ID to delete |
key | string | The name of the key |
stream_group_createCreate consumer group.
| Parameters | Type | Description |
|---|---|---|
group_name | string | Name of consumer group |
key | string | The name of the key |
id | stringoptional | ID to start reading from (default "$" for new entries only) |
mkstream | booleanoptional | Create stream if it doesn't exist |
stream_group_delete_consumerDelete consumer from group.
| Parameters | Type | Description |
|---|---|---|
consumer_name | string | Name of consumer to delete |
group_name | string | Name of consumer group |
key | string | The name of the key |
stream_group_destroyDestroy consumer group.
| Parameters | Type | Description |
|---|---|---|
group_name | string | Name of consumer group |
key | string | The name of the key |
stream_group_set_idSet consumer group's last delivered ID.
| Parameters | Type | Description |
|---|---|---|
group_name | string | Name of consumer group |
id | string | ID to set as last delivered |
key | string | The name of the key |
stream_infoGet information about stream.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
stream_info_consumersGet information about consumers in group.
| Parameters | Type | Description |
|---|---|---|
group_name | string | Name of consumer group |
key | string | The name of the key |
stream_info_groupsGet information about consumer groups.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
stream_lengthGet length of stream.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
stream_rangeGet range of entries from stream.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
count | stringoptional | Maximum number of entries to return |
end | stringoptional | End ID (default "+" for end) |
reverse | booleanoptional | Return entries in reverse order |
start | stringoptional | Start ID (default "-" for beginning) |
stream_readRead entries from stream.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
block | stringoptional | Milliseconds to block (optional) |
count | stringoptional | Maximum number of entries to return |
last_id | stringoptional | Last ID received (default "$" for new entries only) |
stream_read_groupRead entries from stream as part of consumer group.
| Parameters | Type | Description |
|---|---|---|
consumer_name | string | Name of this consumer |
group_name | string | Name of consumer group |
key | string | The name of the key |
block | stringoptional | Milliseconds to block (optional) |
count | stringoptional | Maximum number of entries to return |
noack | booleanoptional | Don't require acknowledgment |
stream_trimTrim stream to specified length.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
maxlen | integer | Maximum length to trim to |
approximate | booleanoptional | Whether maxlen is approximate |
string_appendAppend to string value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | String to append |
string_decrementDecrement integer value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
amount | integeroptional | Amount to decrement by (default 1) |
string_getGet string value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
string_get_rangeGet substring.
| Parameters | Type | Description |
|---|---|---|
end | integer | End index (inclusive) |
key | string | The name of the key |
start | integer | Start index (inclusive) |
string_get_setSet new value and return old value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | New value to set |
string_incrementIncrement integer value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
amount | integeroptional | Amount to increment by (default 1) |
string_increment_floatIncrement float value.
| Parameters | Type | Description |
|---|---|---|
amount | number | Amount to increment by |
key | string | The name of the key |
string_lengthGet string length.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
string_setSet string value.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
value | string | The value to set |
ex | stringoptional | Expire time in seconds |
keepttl | booleanoptional | Retain the time to live associated with the key |
nx | booleanoptional | Only set if key does not exist |
px | stringoptional | Expire time in milliseconds |
xx | booleanoptional | Only set if key exists |
string_set_rangeOverwrite part of string.
| Parameters | Type | Description |
|---|---|---|
key | string | The name of the key |
offset | integer | Position to start overwriting |
value | string | String to write |
typeReturns the string representation of the type of the value stored at key.
| Parameters | Type | Description |
|---|---|---|
key | string |
{
"mcpServers": {
"awslabs-valkey": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"VALKEY_HOST",
"-e",
"VALKEY_PORT",
"mcp/valkey-mcp-server"
],
"env": {
"VALKEY_HOST": "your-cluster-endpoint.amazonaws.com",
"VALKEY_PORT": "6379"
}
}
}
}