PlugWiki
valkey-mcp-server logo

Amazon ElastiCache Valkey MCP Server: Setup for Claude, Cursor and Other Apps

Official · by Amazon Web ServicesLocal
GetPyPIawslabs.valkey-mcp-serverawslabs/mcp/tree/HEAD/src/valkey-mcp-server

Lets Claude and Cursor search, query and edit data in Valkey and Amazon ElastiCache, with vector search and JSON tools.

This is an AWS Labs server for Valkey, the open source key-value store behind Amazon ElastiCache. It runs on your computer and connects to the Valkey host you name. It covers search (including meaning-based search), JSON values, and raw commands in three safety tiers.

A read-only flag turns off writes, and the admin tier is off unless you enable it. Meaning-based search needs an embedding service, which defaults to AWS Bedrock.

Good for

  • Developers who work with Valkey or ElastiCache every day
  • Teams building search or vector features on Valkey
  • Engineers inspecting cache contents without writing commands

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install valkey-mcp-server

Claude Code

  1. 1

    Copy this prompt.

    Add the valkey-mcp-server server to Claude Code. Run this command:
    
    claude mcp add valkey -- uvx awslabs.valkey-mcp-server
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires uv (Python).

Built from the package data we hold. Not yet tested by us.

Tools

  • Creates and manages search indexes

    Creates, drops, inspects or lists search indexes with text, number, tag and vector fields. It defaults to cosine distance and HNSW.

    Try: “Create a search index called products with title, category and price fields.”

    Delete · manage_index

  • Adds documents to a search index

    Stores documents and can create embeddings for them with Bedrock, OpenAI or Ollama. It creates the index if missing.

    Try: “Add these three product records to the products index.”

    Write · add_documents

  • Searches by meaning, text or both

    Runs semantic, text, hybrid or find-similar search. It picks the mode from your inputs unless you choose one.

    Try: “Find products similar to wireless headphones.”

    Network · search

  • Groups and summarizes indexed data

    Builds a grouping, sorting and summary query over an index.

    Try: “Show the average price by category.”

    Read · aggregate

  • Reads a JSON value

    Gets the JSON value at a path inside a Valkey key.

    Try: “Get $.settings.theme from the config key.”

    Read · json_get

  • Writes a JSON value

    Sets a JSON value at a path, with an optional expiry time.

    Try: “Store this config JSON and expire it in an hour.”

    Write · json_set

  • Appends to a JSON array

    Adds values to the end of a JSON array at a path.

    Try: “Add tag 'new' to the tags array.”

    Write · json_arrappend

  • Removes an item from a JSON array

    Removes and returns an element from a JSON array.

    Try: “Pop the last item from the queue array.”

    Delete · json_arrpop

  • Trims a JSON array

    Cuts a JSON array down to a chosen range.

    Try: “Keep only the first 100 items in the log array.”

    Delete · json_arrtrim

  • Runs read-only Valkey commands

    Runs safe commands such as GET, HGETALL, SCAN and INFO. It works even in read-only mode.

    Try: “Show the first 20 keys that start with session:.”

    Read · valkey_read

  • Runs commands that change data

    Runs commands such as SET, HSET, DEL and LPUSH. Destructive commands are blocked, and it is off in read-only mode.

    Try: “Set the key greeting to hello.”

    Delete · valkey_write

  • Runs destructive admin commands

    Runs commands such as FLUSHALL, CONFIG SET and EVAL. It is off unless you set an admin variable and confirm each call.

    Try: “Flush the staging cache.”

    Delete · valkey_admin

From the official docs

Permissions

high risk · 3 things to watch

High risk

It can write and delete keys, and an opt-in admin mode can wipe a whole cache. Start with the read-only flag and keep admin mode off unless you point it at a throwaway cache.

What it can do

Watch out for

  • It can delete keys and data

    The write tool allows commands such as DEL, and the index tool can drop an index. Use the read-only flag unless you need changes. raw.githubusercontent.com

  • Admin mode can wipe a cache

    The admin tool can run commands like FLUSHALL. It is off by default and needs an environment switch plus a confirmation on each call. raw.githubusercontent.com

  • Text for search may be sent to an embedding service

    Adding documents or running meaning-based search sends text to Bedrock or OpenAI unless you use local Ollama. raw.githubusercontent.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyAdd the --readonly flag. It turns off all write operations, and the read command tool still works.
Talks toYour Valkey or ElastiCache host. Embedding provider (Bedrock, OpenAI or Ollama)
Sign-in and keysYour Valkey host, port and optional password or ElastiCache IAM sign-in, set as environment variables. Meaning-based search also needs AWS, OpenAI or Ollama access.

Questions

Is the Valkey MCP server official?

Yes. It is published by AWS Labs in the awslabs/mcp repository.

Can it run read-only?

Yes. Add the --readonly flag to turn off writes. The read command tool keeps working.

Can it delete data?

Yes. The write tool can run commands such as DEL, and the admin tool, which is off by default, can flush a whole cache. Use read-only mode on anything you care about.

Does it work with ElastiCache?

Yes. The README covers ElastiCache and MemoryDB, including IAM sign-in, TLS and cluster mode. It links a separate connection guide.

Do I need AWS credentials?

Only in two cases. Bedrock is the default embedding provider and needs AWS credentials, and ElastiCache IAM sign-in (VALKEY_IAM_AUTH=true) uses your AWS credential chain. Set the embedding provider to Ollama or OpenAI to avoid AWS for embeddings, or skip embeddings if you only use text search and JSON.

Why does the assistant call the wrong search tool?

Another server probably has a tool also named search. The README says to disable that server while you use Valkey, use server-scoped tool names if your client supports them, or tell the assistant to use the Valkey search tool.

Information

updated Nov 2, 2026

Publisher
Amazon Web Services (official)
Package
awslabs.valkey-mcp-server
Registry
PyPI
Transport
stdio
Auth
token in env
License
Apache-2.0
Last commit
Oct 30, 2026
Open issues
143
Listed in
Docker MCP Catalog

GitHubDockerDocker MCP Catalog

Other AWS MCP servers

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 1
  1. raw.githubusercontent.com · raw.githubusercontent.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.