Skip to content

MCP setupDatabases

Redis MCP Server

Let your agent read and write Redis strings, hashes, streams and vector indexes through the official Redis MCP server, run with uvx.

npx workspacetemplates add redis-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file18 lines · 360 BFile
{
  "mcpServers": {
    "redis": {
      "command": "uvx",
      "args": [
        "--from",
        "redis-mcp-server@latest",
        "redis-mcp-server"
      ],
      "env": {
        "REDIS_HOST": "${REDIS_HOST}",
        "REDIS_PORT": "${REDIS_PORT}",
        "REDIS_USERNAME": "${REDIS_USERNAME}",
        "REDIS_PWD": "${REDIS_PWD}"
      }
    }
  }
}

What it does

The Redis MCP server from Redis itself gives an agent typed tools for strings, hashes, lists, sets, sorted sets, JSON documents, pub/sub and streams, plus vector search through the query engine.

It runs locally over stdio with uvx and connects with the usual REDIS_ variables. The server has no read-only switch, so the safe route is a Redis ACL user that can only read, passed in as the username and password.

Example

you › List the keys that start with session: and tell me which ones have no expiry set.

agent › Found 48 session: keys. 3 have no TTL (session:legacy-12, session:legacy-40, session:admin-tmp); the other 45 expire within 24 hours.

Questions

Is there a read-only mode?
Not as a flag. Create an ACL user with read commands only, for example +@read -@write, and give its name and password to the server.
Do I need Node?
No. Install uv instead: the server is distributed on PyPI and launched by uvx.
Can it reach a hosted Redis with TLS?
Yes. The server documents a REDIS_SSL variable and certificate path variables for TLS connections.
  • Convex MCP Server

    MCP setuptypescript

    Free
  • MongoDB MCP Server

    MCP setupDatabases

    Free
  • Neon MCP Server

    MCP setupDatabases

    Free
  • PlanetScale MCP Server

    MCP setupDatabases

    Free