MCP.so
登录

Mcp Server Redis

@prajwalnayak7

关于 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

基本信息

分类

数据库

许可证

MIT

运行时

python

传输方式

stdio

发布者

prajwalnayak7

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

数据库 分类下的更多 MCP 服务器