MCP.so
Sign In

Mcp Server Redis

@prajwalnayak7

About Mcp Server Redis

MCP server to interact with Redis Server, AWS Memory DB, etc for caching or other use-cases where in-memory and key-value based storage is appropriate

Basic information

Category

Databases

License

MIT

Runtime

python

Transports

stdio

Publisher

prajwalnayak7

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp-server-redis": {
      "command": "python",
      "args": [
        "src/server.py"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Mcp Server Redis?

Mcp Server Redis is an MCP server that provides Redis database integration, exposing Redis operations as resources and tools for MCP clients. It is built for developers using MCP-compatible applications (e.g., Claude Desktop) who need to interact with a Redis instance programmatically.

How to use Mcp Server Redis?

Install dependencies using uv (see pyproject.toml), configure the Redis connection via environment variables (refer to .env.example), and run the server with python src/server.py. The server can be tested with the MCP Inspector (mcp dev src/server.py) or installed in Claude Desktop (mcp install src/server.py).

Key features of Mcp Server Redis

  • Exposes Redis connection status and server info as resources
  • Provides tools for basic key-value operations (get, set, delete, increment)
  • Supports list, hash, and set data structure operations
  • Enables Pub/Sub messaging via publish_message tool
  • Automatic reconnection on connection loss
  • Error handling with meaningful responses

Use cases of Mcp Server Redis

  • Retrieve and update key-value pairs in Redis from an MCP client
  • Manipulate Redis lists, hashes, and sets using natural language commands
  • Publish messages to Redis Pub/Sub channels and inspect connection status
  • Automate Redis data management within Claude Desktop or other MCP hosts

FAQ from Mcp Server Redis

What Redis commands does Mcp Server Redis support?

It supports basic operations (get, set, delete, increment), list operations (push, range), hash operations (set, get), set operations (add, members), and Pub/Sub (publish). Additional Redis commands can be added by extending the server.

What are the runtime requirements?

Python 3.x and the uv package manager are required. Dependencies are managed via pyproject.toml and installed with uv sync.

How do I configure the Redis connection?

Copy .env.example to .env and set the appropriate environment variables (e.g., REDIS_URL). The exact variable names are not listed in the README; refer to the example file.

How do I test the server?

Run mcp dev src/server.py to test with the MCP Inspector, or install it in Claude Desktop with mcp install src/server.py.

How does the server handle connection loss?

The server automatically reconnects to Redis if the connection is lost, ensuring continuous operation.

Comments

More Databases MCP servers