Skip to main content
MCP server CX Codex

Amazon ElastiCache/MemoryDB for Valkey — Claude Code MCP server

Amazon ElastiCache/MemoryDB for Valkey is an MCP server for Claude Code with 12 Valkey tools for search indices, JSON paths and tiered command execution.

Apache-2.0 ★ 9,939 updated 2026-10-23

Open on GitHub

What Amazon ElastiCache/MemoryDB for Valkey does

Twelve tools, grouped into three sets. Index work runs through four of them: one builds, drops and lists indices from a schema you describe, another loads documents and can generate embeddings on the way in, a third handles semantic, keyword, hybrid and similar-item lookups, and the last assembles aggregation pipelines with grouping, sorting and filters.

JSON keys get five tools for reading and writing a value at a path, appending to arrays, popping elements and trimming ranges. The remaining three execute raw commands and are ranked by risk: reads always pass, writes reject destructive commands and switch off under --readonly, admin calls stay disabled until VALKEY_ADMIN_ENABLED=true is set and confirm=True is passed.

Startup is uvx awslabs.valkey-mcp-server@latest once uv and Python 3.10 are installed, and the datastore needs the Search and JSON modules — both ship in the valkey/valkey-bundle image. Embeddings go to Bedrock by default, so with no AWS credentials semantic calls die on NoCredentialsError; set EMBEDDING_PROVIDER to Ollama or supply OPENAI_API_KEY for OpenAI.

What it helps with

  • Build a search index over product fields without writing raw search commands
  • Load documents into an index with embeddings generated for you
  • Patch one field inside a JSON document without rewriting the key
  • Aggregate average values grouped by category
  • Give an agent read access while destructive commands stay blocked

Example prompts for the agent

  • Create a products index in Valkey with title as TEXT, category as TAG and price as NUMERIC.
  • Load the product documents into the products index.
  • What is the average price per category in products?

How to install Amazon ElastiCache/MemoryDB for Valkey

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Amazon ElastiCache/MemoryDB for Valkey

How to install Amazon ElastiCache/MemoryDB for Valkey in Claude Code?

Add an mcpServers entry to your MCP settings file with uvx as the command, awslabs.valkey-mcp-server@latest as the argument, and VALKEY_HOST plus VALKEY_PORT in env. Install uv first, then run uv python install 3.10.

What does this MCP server do?

It exposes 12 Valkey tools to an agent: four for search indices and aggregations, five for JSON values at paths, and three for commands with guardrails against destructive calls.

Which embedding provider needs which credentials?

Bedrock is the default and expects AWS credentials. OpenAI reads OPENAI_API_KEY, and Ollama only needs a running local instance.

Similar MCP servers

All MCP servers for Data and databases →

From the same set36

The whole set →
dsql dsql is a Claude Code skill that redirects Aurora DSQL questions to the current skill. It activates for work on schemas, migrations, queries, authentication, and performance. CX Codex +1 548installs Amazon Timestream for InfluxDB Handles Amazon Timestream for InfluxDB clusters and instances, letting your assistant query time-series data and inspect AWS resources. CX Codex +1 ★ 9,939repo stars AWS S3 Tables The AWS S3 Tables MCP server lets AI agents work with S3 Tables, run read-only SQL, inspect metadata, and turn CSV files in S3 into tables. CX Codex +1 ★ 9,939repo stars Amazon Redshift Amazon Redshift — an MCP server for Redshift that discovers clusters and serverless workgroups, browses schemas and tables, and runs SQL. Read-only unless you opt out. CX Codex +1 ★ 9,939repo stars AWS Labs Nova Canvas AWS Labs Nova Canvas generates AI images with Amazon Nova Canvas directly in your coding assistant via the Model Context Protocol. CX Codex +1 ★ 9,939repo stars Amazon ElastiCache for Memcached The Amazon ElastiCache for Memcached MCP server lets an AI agent work with Memcached through standard cache operations. Use it for inspection, debugging, or controlled data access. CX Codex +1 ★ 9,939repo stars AWS IAM Lets your agent create and edit AWS IAM users, roles, groups and policies, with a simulator to test permissions before anything changes. CX Codex +1 ★ 9,939repo stars Amazon ElastiCache Manages Amazon ElastiCache resources via AWS control plane APIs directly from your assistant. It handles serverless caches, replication groups, and CloudWatch metrics. CX Codex +1 ★ 9,939repo stars

Project sponsors

Companies that keep this analytics open