PlugWiki
memcached-mcp-server logo

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

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

Lets your AI assistant read, write and clear keys in a Memcached cache, including Amazon ElastiCache for Memcached.

This AWS Labs server runs on your computer and talks to a Memcached server you point it at. It speaks the standard Memcached commands and is meant for Amazon ElastiCache for Memcached.

It has no AWS login. It needs a host and port, and TLS is optional. Start it with the readonly flag if the assistant should only look.

Good for

  • Developers who want to inspect or debug cached values by asking in plain words
  • Ops engineers checking cache stats and hit rates
  • Teams that want a read-only view of a production cache

Works in

12 should work

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

Install memcached-mcp-server

Claude Code

  1. 1

    Copy this prompt.

    Add the memcached-mcp-server server to Claude Code. Run this command:
    
    claude mcp add memcached -- uvx awslabs.memcached-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

  • Reads the value stored under a key

    Returns the value for one key, or says the key was not found.

    Try: “What is stored under the key session:42?”

    Network · cache_get

  • Reads a value along with its CAS token

    Returns the value and a CAS token, which you need for a safe check-and-set update.

    Try: “Get session:42 with its CAS token.”

    Network · cache_gets

  • Reads several keys at once

    Returns the values for a list of keys in one call.

    Try: “Get the values for user:1, user:2 and user:3.”

    Network · cache_get_many

  • Reads several keys at once (alias)

    Does the same as the get-many tool and exists as an alias.

    Try: “Fetch these five keys in one go.”

    Network · cache_get_multi

  • Shows cache server statistics

    Returns the server's statistics, optionally for one stats group.

    Try: “Show me the Memcached stats, including hit rate.”

    Network · cache_stats

  • Shows the Memcached server version

    Returns the version string of the cache server.

    Try: “Which Memcached version is this?”

    Network · cache_version

  • Stores a value under a key

    Writes a value, replacing any old one, with an optional expiry in seconds.

    Try: “Set feature:beta to on and let it expire in an hour.”

    Write · cache_set

  • Stores several key/value pairs at once

    Writes a whole set of keys in one call, with an optional expiry.

    Try: “Store these three config values in the cache.”

    Write · cache_set_many

  • Stores several key/value pairs at once (alias)

    Does the same as the set-many tool and exists as an alias.

    Try: “Write these key/value pairs to the cache.”

    Write · cache_set_multi

  • Stores a value only if the key is new

    Writes the value only when the key does not exist yet, so it never overwrites.

    Try: “Add lock:report only if nobody holds it.”

    Write · cache_add

  • Replaces a value only if the key exists

    Overwrites an existing key and does nothing if the key is missing.

    Try: “Replace the value of config:theme with dark.”

    Write · cache_replace

  • Updates a value only if nobody changed it

    Writes only if the CAS token still matches, which protects against overwriting a newer change.

    Try: “Update counter:7 using the CAS token you just fetched.”

    Write · cache_cas

Read from the source code

Permissions

high risk · 3 things to watch

High risk

The assistant can read, overwrite, delete and flush every key in the cache you connect. Add the readonly flag and keep it away from caches that hold sessions or personal data.

What it can do

Watch out for

  • It can erase the whole cache

    One tool flushes every key and others delete keys. Start the server with the readonly flag unless you need writes. github.com

  • Cached values go to your AI provider

    Anything the assistant reads from the cache is sent to the model. Do not point it at a cache that holds sessions, tokens or personal data. github.com

  • ElastiCache sits inside a private network

    Your computer needs a route to the cache. The README links a guide for connecting to ElastiCache. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyAdd the --readonly flag to the server arguments. Write tools then return a message that the operation is not permitted.
Talks toThe Memcached host you configure (default 127.0.0.1:11211)
Sign-in and keysNo AWS credentials. It connects to MEMCACHED_HOST and MEMCACHED_PORT, with optional TLS certificate paths set in environment variables.
Scopes
  • Network access to the Memcached host and port

Questions

Can I run it read-only?

Yes. Add the readonly flag to the server arguments and every tool that writes or deletes returns an error message instead of acting.

Does it need AWS credentials?

No. It connects straight to a Memcached host and port you set. It works with ElastiCache once your computer can reach the cache.

Can it wipe my cache?

Yes, in the default setup. It has a flush-all tool and tools that delete keys, so use the readonly flag unless you want that.

How is it different from the ElastiCache server?

The ElastiCache server manages the clusters themselves, such as creating and sizing them. This one reads and writes the keys inside a Memcached cache.

Does it support TLS?

Yes. Set MEMCACHED_USE_TLS and the certificate path variables listed in the README.

Information

updated Nov 2, 2026

Publisher
Amazon Web Services (official)
Package
awslabs.memcached-mcp-server
Registry
PyPI
Transport
stdio
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 3
  1. ElastiCache Memcached MCP Server README · github.com
  2. Memcached tools source · github.com
  3. Memcached server entry point · github.com

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