
Amazon ElastiCache for Memcached MCP Server: Setup for Claude, Cursor and Other Apps
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.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install memcached-mcp-server
Claude Code
- 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
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_getReads 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_getsReads 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_manyReads 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_multiShows cache server statistics
Returns the server's statistics, optionally for one stats group.
Try: “Show me the Memcached stats, including hit rate.”
Network ·
cache_statsShows the Memcached server version
Returns the version string of the cache server.
Try: “Which Memcached version is this?”
Network ·
cache_versionStores 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_setStores 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_manyStores 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_multiStores 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_addReplaces 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_replaceUpdates 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_casAdds text to the end of a stored value
Appends a string to an existing value.
Try: “Append ',admin' to the roles of user:9.”
Write ·
cache_appendAdds text to the start of a stored value
Prepends a string to an existing value.
Try: “Prepend 'v2:' to the stored version tag.”
Write ·
cache_prependAdds to a counter
Increases a numeric value by an amount, 1 by default.
Try: “Increment page:views by 1.”
Write ·
cache_incrSubtracts from a counter
Decreases a numeric value by an amount, 1 by default.
Try: “Decrement stock:sku-12 by 2.”
Write ·
cache_decrChanges when a key expires
Updates the expiry time of a key without changing its value.
Try: “Keep session:42 alive for another 30 minutes.”
Write ·
cache_touchDeletes one key
Removes a key and its value from the cache.
Try: “Delete the key session:42.”
Delete ·
cache_deleteDeletes several keys at once
Removes a list of keys in one call.
Try: “Delete all keys for user 17: user:17:a and user:17:b.”
Delete ·
cache_delete_manyDeletes several keys at once (alias)
Does the same as the delete-many tool and exists as an alias.
Try: “Remove these keys from the cache.”
Delete ·
cache_delete_multiErases the whole cache
Clears every entry in the cache, either now or after a delay in seconds. Every key is gone afterwards.
Try: “Flush the entire cache.”
Delete ·
cache_flush_allCloses the connection to the cache server
Ends the session with the cache server. It changes no data.
Try: “Close the connection to the cache.”
Network ·
cache_quit
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
- Read your data
- Create and change things
- Delete things
- Read-only modeHow to turn it on
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-only | Add the --readonly flag to the server arguments. Write tools then return a message that the operation is not permitted. |
|---|---|
| Talks to | The Memcached host you configure (default 127.0.0.1:11211) |
| Sign-in and keys | No AWS credentials. It connects to MEMCACHED_HOST and MEMCACHED_PORT, with optional TLS certificate paths set in environment variables. |
| Scopes |
|
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
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 3Hide
- ElastiCache Memcached MCP Server README · github.com
- Memcached tools source · github.com
- Memcached server entry point · github.com