Redis

Redis

Redis MCP server enabling LLMs to interact with Redis key-value stores via standardized tools.

28
Stars
10
Forks
0
Releases

Overview

Redis MCP Server is a Model Context Protocol (MCP) server designed to interact with Redis databases. It exposes a set of standardized MCP tools that let large language models (LLMs) perform common Redis key-value operations without direct Redis client calls. The server supports four fundamental tools: set, to store a key-value pair with an optional expiration (expireSeconds); get, to retrieve a value by key; delete, to remove one or more keys; and list, to enumerate keys matching a pattern (defaulting to all keys). The README describes installation via Smithery or manually via npm/npx, with version 1.0.0, and usage through command lines, including the ability to run with Claude Desktop by configuring the mcpServers section in claude_desktop_config.json or via a Node command. It also covers Docker usage, including notes for macOS using host.docker.internal and a default Redis URL of redis://localhost:6379. Development steps include npm install and npm run build, and a Docker build tagged as mcp/redis. This MCP server thus enables LLMs to issue Redis operations through a consistent, tool-based interface for Redis-backed data manipulation and caching.

Details

Owner
GongRzhe
Language
JavaScript
License
MIT License
Updated
2025-12-07

Features

set

Set a Redis key-value pair with optional expiration. Input: key (string), value (string), expireSeconds (number, optional).

get

Get value by key from Redis. Input: key (string).

delete

Delete one or more keys from Redis. Input: key (string | string[]).

list

List Redis keys matching a pattern. Input: pattern (string, optional); default: *.

Tags

RedisMCPKey-ValueCacheExpirationPattern MatchingToolsLLM IntegrationClaude Desktop