Sign inSign up

mcp/valkey-mcp-server

Verified Publisher

By mcp

•Updated 3 months ago

Advanced data structures with Valkey.

Image
Machine learning & AI
0

10K+

mcp/valkey-mcp-server repository overview

⁠Amazon ElastiCache/MemoryDB for Valkey MCP Server

Advanced data structures with Valkey.

What is an MCP Server?⁠

⁠MCP Info

⁠Image Building Info

AttributeDetails
Dockerfilehttps://github.com/awslabs/mcp/blob/3a5294539de4de3a91d0ee72d5487bc8b8b1fcd7/src/valkey-mcp-server/Dockerfile⁠
Commit3a5294539de4de3a91d0ee72d5487bc8b8b1fcd7
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/valkey-mcp-server --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

⁠Available Tools (105)

Tools provided by this ServerShort Description
bitmap_countCount the number of set bits (1) in a range.
bitmap_getGet the bit value at offset.
bitmap_posFind positions of bits set to a specific value.
bitmap_setSet the bit at offset to value.
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.
expireSet an expiration time for a Redis key.
hash_existsCheck if field exists in hash.
hash_getGet field from hash.
hash_get_allGet all fields and values from hash.
hash_incrementIncrement field value in hash.
hash_keysGet all field names from hash.
hash_lengthGet number of fields in hash.
hash_random_fieldGet random field(s) from hash.
hash_random_field_with_valuesGet random field(s) with their values from hash.
hash_setSet field in hash.
hash_set_if_not_existsSet field in hash only if it does not exist.
hash_set_multipleSet multiple fields in hash.
hash_strlenGet length of field value in hash.
hash_valuesGet all values from hash.
hll_addAdd one element to a HyperLogLog.
hll_countGet the estimated cardinality of a HyperLogLog.
infoGet Valkey server information and statistics.
json_arrappendAppend values to the array at path.
json_arrindexGet the index of value in array at path.
json_arrlenGet the length of array at path.
json_arrpopPop a value from the array at path and index.
json_arrtrimTrim array at path to include only elements within range.
json_clearClear container at path (array or object).
json_delDelete value at path.
json_getGet the JSON value at path.
json_numincrbyIncrement the number at path by value.
json_nummultbyMultiply the number at path by value.
json_objkeysGet the keys in the object at path.
json_objlenGet the number of keys in the object at path.
json_setSet the JSON value at path.
json_strappendAppend a string to the string at path.
json_strlenGet the length of string at path.
json_toggleToggle boolean value at path.
json_typeGet the type of JSON value at path.
list_appendAppend value to list.
list_append_multipleAppend multiple values to list.
list_getGet value at index from list.
list_insert_afterInsert value after pivot in list.
list_insert_beforeInsert value before pivot in list.
list_lengthGet length of list.
list_moveMove element from one list to another.
list_pop_leftPop value(s) from left of list.
list_pop_rightPop value(s) from right of list.
list_positionFind position(s) of value in list.
list_prependPrepend value to list.
list_prepend_multiplePrepend multiple values to list.
list_rangeGet range of values from list.
list_removeRemove occurrences of value from list.
list_setSet value at index in list.
list_trimTrim list to specified range.
renameRenames a Redis key from old_key to new_key.
set_addAdd member to set.
set_cardinalityGet number of members in set.
set_containsCheck if member exists in set.
set_membersGet all members in set.
set_moveMove member from one set to another.
set_popRemove and return random member(s) from set.
set_random_memberGet random member(s) from set without removing.
set_removeRemove member from set.
sorted_set_addAdd member-score pairs to sorted set.
sorted_set_add_incrAdd member to sorted set or increment its score.
sorted_set_cardinalityGet number of members in sorted set.
sorted_set_popmaxRemove and return members with highest scores.
sorted_set_popminRemove and return members with lowest scores.
sorted_set_rangeGet range of members from sorted set.
sorted_set_range_by_lexGet range of members by lexicographical order.
sorted_set_range_by_scoreGet range of members by score.
sorted_set_rankGet rank of member in sorted set.
sorted_set_removeRemove member(s) from sorted set.
sorted_set_remove_by_lexRemove members by lexicographical range.
sorted_set_remove_by_rankRemove members by rank range.
sorted_set_remove_by_scoreRemove members by score range.
sorted_set_scoreGet score of member in sorted set.
stream_addAdd entry to stream.
stream_deleteDelete entries from stream.
stream_group_createCreate consumer group.
stream_group_delete_consumerDelete consumer from group.
stream_group_destroyDestroy consumer group.
stream_group_set_idSet consumer group's last delivered ID.
stream_infoGet information about stream.
stream_info_consumersGet information about consumers in group.
stream_info_groupsGet information about consumer groups.
stream_lengthGet length of stream.
stream_rangeGet range of entries from stream.
stream_readRead entries from stream.
stream_read_groupRead entries from stream as part of consumer group.
stream_trimTrim stream to specified length.
string_appendAppend to string value.
string_decrementDecrement integer value.
string_getGet string value.
string_get_rangeGet substring.
string_get_setSet new value and return old value.
string_incrementIncrement integer value.
string_increment_floatIncrement float value.
string_lengthGet string length.
string_setSet string value.
string_set_rangeOverwrite part of string.
typeReturns the string representation of the type of the value stored at key.

⁠Tools Details

⁠Tool: bitmap_count

Count the number of set bits (1) in a range.

ParametersTypeDescription
keystringThe name of the bitmap key
endstring optionalEnd offset (inclusive, optional)
startstring optionalStart offset (inclusive, optional)

⁠Tool: bitmap_get

Get the bit value at offset.

ParametersTypeDescription
keystringThe name of the bitmap key
offsetintegerThe bit offset (0-based)

⁠Tool: bitmap_pos

Find positions of bits set to a specific value.

ParametersTypeDescription
bitintegerBit value to search for (0 or 1)
keystringThe name of the bitmap key
countstring optionalMaximum number of positions to return (optional)
endstring optionalEnd offset (inclusive, optional)
startstring optionalStart offset (inclusive, optional)

⁠Tool: bitmap_set

Set the bit at offset to value.

ParametersTypeDescription
keystringThe name of the bitmap key
offsetintegerThe bit offset (0-based)
valueintegerThe bit value (0 or 1)

⁠Tool: client_list

Get a list of connected clients to the Valkey server.

⁠Tool: dbsize

Get the number of keys stored in the Valkey database.

⁠Tool: delete

Delete a Valkey key.

ParametersTypeDescription
keystring

⁠Tool: expire

Set an expiration time for a Redis key.

ParametersTypeDescription
expire_secondsintegerTime in seconds after which the key should expire.
namestringThe Redis key.

⁠Tool: hash_exists

Check if field exists in hash.

ParametersTypeDescription
fieldstringThe field name
keystringThe name of the key

⁠Tool: hash_get

Get field from hash.

ParametersTypeDescription
fieldstringThe field name
keystringThe name of the key

⁠Tool: hash_get_all

Get all fields and values from hash.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: hash_increment

Increment field value in hash.

ParametersTypeDescription
fieldstringThe field name
keystringThe name of the key
amountstring optionalAmount to increment by (default: 1)

⁠Tool: hash_keys

Get all field names from hash.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: hash_length

Get number of fields in hash.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: hash_random_field

Get random field(s) from hash.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of fields to return (optional)

⁠Tool: hash_random_field_with_values

Get random field(s) with their values from hash.

ParametersTypeDescription
countintegerNumber of field-value pairs to return
keystringThe name of the key

⁠Tool: hash_set

Set field in hash.

ParametersTypeDescription
fieldstringThe field name
keystringThe name of the key
valuestringThe value to set

⁠Tool: hash_set_if_not_exists

Set field in hash only if it does not exist.

ParametersTypeDescription
fieldstringThe field name
keystringThe name of the key
valuestringThe value to set

⁠Tool: hash_set_multiple

Set multiple fields in hash.

ParametersTypeDescription
keystringThe name of the key
mappingobjectDictionary of field-value pairs

⁠Tool: hash_strlen

Get length of field value in hash.

ParametersTypeDescription
fieldstringThe field name
keystringThe name of the key

⁠Tool: hash_values

Get all values from hash.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: hll_add

Add one element to a HyperLogLog.

ParametersTypeDescription
elementstringOne element to add
keystringThe name of the HyperLogLog key

⁠Tool: hll_count

Get the estimated cardinality of a HyperLogLog.

ParametersTypeDescription
keystringThe name of the HyperLogLog key

⁠Tool: info

Get Valkey server information and statistics.

ParametersTypeDescription
sectionstring optionalThe section of the info command (default, memory, cpu, etc.).

⁠Tool: json_arrappend

Append values to the array at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
valuesstring

⁠Tool: json_arrindex

Get the index of value in array at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
valuestringThe value to search for
startstring optionalStart offset (optional)
stopstring optionalStop offset (optional)

⁠Tool: json_arrlen

Get the length of array at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_arrpop

Pop a value from the array at path and index.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
indexinteger optionalThe index to pop from (-1 for last element)

⁠Tool: json_arrtrim

Trim array at path to include only elements within range.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
startintegerStart index (inclusive)
stopintegerStop index (inclusive)

⁠Tool: json_clear

Clear container at path (array or object).

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_del

Delete value at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_get

Get the JSON value at path.

ParametersTypeDescription
keystringThe name of the key
indentstring optionalNumber of spaces for indentation (optional)
newlinestring optionalAdd newlines in formatted output (optional)
pathstring optionalThe path in the JSON document (optional, defaults to root)
spacestring optionalAdd spaces in formatted output (optional)

⁠Tool: json_numincrby

Increment the number at path by value.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
valuestringThe increment value (integer or float)

⁠Tool: json_nummultby

Multiply the number at path by value.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
valuestringThe multiplier value (integer or float)

⁠Tool: json_objkeys

Get the keys in the object at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_objlen

Get the number of keys in the object at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_set

Set the JSON value at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document (e.g., "$.name" or "." for root)
valuestringThe value to set
nxboolean optionalOnly set if path doesn't exist
xxboolean optionalOnly set if path exists

⁠Tool: json_strappend

Append a string to the string at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document
valuestringThe string to append

⁠Tool: json_strlen

Get the length of string at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_toggle

Toggle boolean value at path.

ParametersTypeDescription
keystringThe name of the key
pathstringThe path in the JSON document

⁠Tool: json_type

Get the type of JSON value at path.

ParametersTypeDescription
keystringThe name of the key
pathstring optionalThe path in the JSON document (optional, defaults to root)

⁠Tool: list_append

Append value to list.

ParametersTypeDescription
keystringThe name of the key
valuestringThe value to append

⁠Tool: list_append_multiple

Append multiple values to list.

ParametersTypeDescription
keystringThe name of the key
valuesarrayList of values to append

⁠Tool: list_get

Get value at index from list.

ParametersTypeDescription
indexintegerThe index (0-based, negative indices supported)
keystringThe name of the key

⁠Tool: list_insert_after

Insert value after pivot in list.

ParametersTypeDescription
keystringThe name of the key
pivotstringThe pivot value
valuestringThe value to insert

⁠Tool: list_insert_before

Insert value before pivot in list.

ParametersTypeDescription
keystringThe name of the key
pivotstringThe pivot value
valuestringThe value to insert

⁠Tool: list_length

Get length of list.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: list_move

Move element from one list to another.

ParametersTypeDescription
destinationstringDestination list key
sourcestringSource list key
wherefromstring optionalWhere to pop from ("LEFT" or "RIGHT")
wheretostring optionalWhere to push to ("LEFT" or "RIGHT")

⁠Tool: list_pop_left

Pop value(s) from left of list.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of values to pop (optional)

⁠Tool: list_pop_right

Pop value(s) from right of list.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of values to pop (optional)

⁠Tool: list_position

Find position(s) of value in list.

ParametersTypeDescription
keystringThe name of the key
valuestringValue to search for
countstring optionalReturn this many matches (optional)
maxlenstring optionalLimit search to first N elements (optional)
rankstring optionalMatch the Nth occurrence (optional)

⁠Tool: list_prepend

Prepend value to list.

ParametersTypeDescription
keystringThe name of the key
valuestringThe value to prepend

⁠Tool: list_prepend_multiple

Prepend multiple values to list.

ParametersTypeDescription
keystringThe name of the key
valuesarrayList of values to prepend

⁠Tool: list_range

Get range of values from list.

ParametersTypeDescription
keystringThe name of the key
startinteger optionalStart index (inclusive, default 0)
stopinteger optionalStop index (inclusive, default -1 for end)

⁠Tool: list_remove

Remove occurrences of value from list.

ParametersTypeDescription
keystringThe name of the key
valuestringValue to remove
countinteger optionalNumber of occurrences to remove (0 for all, positive for left-to-right, negative for right-to-left)

⁠Tool: list_set

Set value at index in list.

ParametersTypeDescription
indexintegerThe index (0-based, negative indices supported)
keystringThe name of the key
valuestringThe value to set

⁠Tool: list_trim

Trim list to specified range.

ParametersTypeDescription
keystringThe name of the key
startintegerStart index (inclusive)
stopintegerStop index (inclusive)

⁠Tool: rename

Renames a Redis key from old_key to new_key.

ParametersTypeDescription
new_keystring
old_keystring

⁠Tool: set_add

Add member to set.

ParametersTypeDescription
keystringThe name of the key
memberstringMember to add

⁠Tool: set_cardinality

Get number of members in set.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: set_contains

Check if member exists in set.

ParametersTypeDescription
keystringThe name of the key
memberstringMember to check

⁠Tool: set_members

Get all members in set.

ParametersTypeDescription
keystringThe name of the key

⁠Tool: set_move

Move member from one set to another.

ParametersTypeDescription
destinationstringDestination set key
memberstringMember to move
sourcestringSource set key

⁠Tool: set_pop

Remove and return random member(s) from set.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of members to pop (optional)

⁠Tool: set_random_member

Get random member(s) from set without removing.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of members to return (optional)

⁠Tool: set_remove

Remove member from set.

ParametersTypeDescription
keystringThe name of the key
memberstringMember to remove

⁠Tool: sorted_set_add

Add member-score pairs to sorted set.

ParametersTypeDescription
keystringThe name of the key
mappingobjectDictionary of member-score pairs

⁠Tool: sorted_set_add_incr

Add member to sorted set or increment its score.

ParametersTypeDescription
keystringThe name of the key
memberstringThe member to add/update
scorenumberScore to add to existing score (or initial score)

⁠Tool: sorted_set_cardinality

Get number of members in sorted set.

ParametersTypeDescription
keystringThe name of the key
max_scorestring optionalMaximum score (optional)
min_scorestring optionalMinimum score (optional)

⁠Tool: sorted_set_popmax

Remove and return members with highest scores.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of members to pop (optional)

⁠Tool: sorted_set_popmin

Remove and return members with lowest scores.

ParametersTypeDescription
keystringThe name of the key
countstring optionalNumber of members to pop (optional)

⁠Tool: sorted_set_range

Get range of members from sorted set.

ParametersTypeDescription
keystringThe name of the key
reverseboolean optionalReturn results in reverse order
startinteger optionalStart index (inclusive)
stopinteger optionalStop index (inclusive)
withscoresboolean optionalInclude scores in result

⁠Tool: sorted_set_range_by_lex

Get range of members by lexicographical order.

ParametersTypeDescription
keystringThe name of the key
max_lexstringMaximum value (inclusive)
min_lexstringMinimum value (inclusive)
countstring optionalMaximum number of members to return
offsetstring optionalNumber of members to skip
reverseboolean optionalReturn results in reverse order

⁠Tool: sorted_set_range_by_score

Get range of members by score.

ParametersTypeDescription
keystringThe name of the key
max_scorenumberMaximum score (inclusive)
min_scorenumberMinimum score (inclusive)
countstring optionalMaximum number of members to return
offsetstring optionalNumber of members to skip
reverseboolean optionalReturn results in reverse order
withscoresboolean optionalInclude scores in result

⁠Tool: sorted_set_rank

Get rank of member in sorted set.

ParametersTypeDescription
keystringThe name of the key
memberstringThe member to get rank for
reverseboolean optionalIf True, get rank in reverse order (highest first)

⁠Tool: sorted_set_remove

Remove member(s) from sorted set.

ParametersTypeDescription
keystringThe name of the key
membersstring

⁠Tool: sorted_set_remove_by_lex

Remove members by lexicographical range.

ParametersTypeDescription
keystringThe name of the key
max_lexstringMaximum value (inclusive)
min_lexstringMinimum value (inclusive)

⁠Tool: sorted_set_remove_by_rank

Remove members by rank range.

ParametersTypeDescription
keystringThe name of the key
startintegerStart rank (inclusive)
stopintegerStop rank (inclusive)

⁠Tool: sorted_set_remove_by_score

Remove members by score range.

ParametersTypeDescription
keystringThe name of the key
max_scorenumberMaximum score (inclusive)
min_scorenumberMinimum score (inclusive)

⁠Tool: sorted_set_score

Get score of member in sorted set.

ParametersTypeDescription
keystringThe name of the key
memberstringThe member to get score for

⁠Tool: stream_add

Add entry to stream.

ParametersTypeDescription
field_dictobjectDictionary of field-value pairs
keystringThe name of the key
approximateboolean optionalWhether maxlen is approximate
idstring optionalEntry ID (default "*" for auto-generation)
maxlenstring optionalMaximum length of stream (optional)

⁠Tool: stream_delete

Delete entries from stream.

ParametersTypeDescription
idstringEntry ID to delete
keystringThe name of the key

⁠Tool: stream_group_create

Create consumer group.

ParametersTypeDescription
group_namestringName of consumer group
keystringThe name of the key
idstring optionalID to start reading from (default "$" for new entries only)
mkstreamboolean optionalCreate stream if it doesn't exist

⁠Tool: stream_group_delete_consumer

Delete consumer from group.

ParametersTypeDescription
consumer_namestringName of consumer to delete
`group_na

[...]

Install from MCP:Hub

Amazon ElastiCache/MemoryDB for Valkey

Amazon ElastiCache/MemoryDB for Valkey

View and Install from MCP:Hub

Tag summary

Content type

Image

Digest

sha256:e05bdd4ed…

Size

125.7 MB

Last updated

3 months ago

docker pull mcp/valkey-mcp-server

This week's pulls

Pulls:

63

Last week