Skip to content

MCP server

Redis MCP server

Redis's official MCP server lets AI read and write Redis data structures, search vector indexes and inspect server information.

At a glance

Maintained by
Redis
Tools exposed
10 listed below
Reviewed
September 24, 2026

Why it matters

What it does and why it matters

Redis is an in-memory data store used for caching, sessions, queues, rate limits and, more and more, vector search. The official Redis MCP server lets an AI assistant work with Redis data in plain English: get and set values, read hashes, scan keys, search vector indexes and check server information.

For developers, it is a quick way to inspect what is in a cache or queue while debugging. For AI features, it can act as a fast store for memory or search when combined with vector indexes.

It has read and write access across data types, and we found no read-only mode documented. Redis often holds sessions and other sensitive runtime data, so connect it only to development or dedicated instances, with a user whose access control list allows only the commands and keys a task needs.

Use cases

Best business use cases

Debugging caches

Inspect cached values while tracking down a bug.

Queue checks

See what is waiting in a queue and why.

Vector search

Query vector indexes stored in Redis.

Agent memory

Use Redis as a fast memory store for an agent.

Server health

Read memory use and other server information.

Tools

Available tools

Tool names as published by the maintainer at review time. Versions change, so check the repository for the current list.

Read and write: Read and write across strings, hashes, lists, sets, streams, JSON and vector indexes; no read-only mode documented.

  • set

    Sets a string value with optional expiry.

  • get

    Gets a string value.

  • hset

    Sets a field in a hash.

  • hgetall

    Gets all fields and values in a hash.

  • scan_keys

    Scans keys with the non-blocking SCAN command.

  • delete

    Deletes a key.

  • vector_search_hash

    Runs a KNN vector search over vectors stored in hashes.

  • get_indexes

    Lists search indexes.

  • info

    Returns Redis server information and stats.

  • search_redis_documents

    Searches Redis documentation and knowledge base.

Workflows

Example workflows

Debug a stale cache

  1. 1

    Connect to the development instance.

  2. 2

    Ask the assistant to find keys for a product.

  3. 3

    It scans and reads the cached values.

  4. 4

    It compares them with the database record.

  5. 5

    The developer clears the stale key after review.

Check vector search results

  1. 1

    Ask which vector indexes exist.

  2. 2

    Run a sample search through the assistant.

  3. 3

    Review the returned documents.

  4. 4

    Adjust the query or index settings.

  5. 5

    Repeat with real user questions.

Prompts

Example prompts

  • “Find cache keys for product 1042 and show their values.”

  • “Which vector indexes exist, and how many documents does each hold?”

  • “Show memory usage and the number of connected clients.”

Setup

Installation and configuration

Examples for Claude Desktop and Claude Code. Replace the placeholder values with your own keys, and store secrets outside version control.

Claude Desktop: claude_desktop_config.json

{
    "mcpServers": {
        "redis-mcp-server": {
            "type": "stdio",
            "command": "/path/to/uvx",
            "args": [
                "--from",
                "redis-mcp-server@latest",
                "redis-mcp-server",
                "--url",
                "redis://localhost:6379/0"
            ]
        }
    }
}

Claude Code: terminal

claude mcp add redis -- uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0
  • Local server: stdio. PyPI: redis-mcp-server (uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0).
  • Needs: --url connection string, or REDIS_HOST, REDIS_PORT, REDIS_DB, REDIS_USERNAME, REDIS_PWD; Optional TLS: REDIS_SSL and related cert vars; Optional Entra ID auth vars for Azure Managed Redis.

Security

Security considerations

  • Restrict with ACLs

    Use a Redis user whose access control list allows only needed commands and keys.

  • Not production sessions

    Avoid connecting to instances that hold live sessions or tokens.

  • Review deletes

    Ask the assistant to show keys before deleting anything.

  • Log activity

    Keep a record of commands run through the server.

Related servers

Servers that pair well with it

MongoDB

MongoDB's official MCP server lets AI query collections, run aggregations and manage Atlas clusters, with a read-only flag for safe use.

Qdrant

Qdrant's official MCP server gives AI a semantic memory: store information in a Qdrant collection and find it again by meaning.

Memory

The MCP project's Memory reference server gives AI a local knowledge graph to store people, things and facts and recall them later.

Keep exploring

FAQ

Questions people ask us

Have a question that is not here? Ask us directly.

Start a project

Want this connected to your own systems? We build AI workflows with MCP.

Send a short brief. We reply with questions, a suggested plan and an estimate you can compare with other offers.

Your privacy choices

We use necessary storage to run this site. With your permission we also use Google Analytics to see which pages help people, and load maps from Google. You can change this at any time. Read the cookie policy.