by GongRzhe
Provides standardized tools for LLMs to interact with Redis key-value stores, enabling set, get, delete, and list operations via the Model Context Protocol.
Redis MCP Server offers a set of MCP‑compatible tools that let large language models read from and write to a Redis database. It abstracts common Redis commands (set, get, delete, list) into simple JSON‑based tool definitions that can be invoked by LLM agents.
npx @gongrzhe/server-redis-mcp@1.0.0 redis://your-redis-host:port
Example:
npx @gongrzhe/server-redis-mcp@1.0.0 redis://localhost:6379
npm install -g @gongrzhe/server-redis-mcp@1.0.0
@gongrzhe/server-redis-mcp redis://localhost:6379
claude_desktop_config.json
:
{
"mcpServers": {
"redis": {
"command": "npx",
"args": [
"@gongrzhe/server-redis-mcp@1.0.0",
"redis://localhost:6379"
]
}
}
}
{
"mcpServers": {
"redis": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/redis", "redis://host.docker.internal:6379"]
}
}
}
set
(with optional TTL), get
, delete
(single or multiple keys), list
(pattern matching).npx
or via Docker without building from source.Q: Do I need a Redis server already running?
A: Yes. Provide the Redis URL (e.g., redis://localhost:6379
) when starting the server.
Q: Can I set a TTL on a key?
A: The set
tool accepts an optional expireSeconds
parameter to define expiration time.
Q: How does the server handle multiple keys for deletion?
A: The delete
tool accepts either a single key string or an array of key strings.
Q: Is Docker required?
A: No. Docker is optional for containerized deployments; npx
works in any Node.js environment.
Q: What license governs this project? A: The project is licensed under the ISC License.
A Redis Model Context Protocol (MCP) server implementation for interacting with Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
62 Redis MCP tools in https://github.com/GongRzhe/REDIS-MCP-Server/tree/redis-plus
To install Redis MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @gongrzhe/server-redis-mcp --client claude
# Using npx with specific version (recommended)
npx @gongrzhe/server-redis-mcp@1.0.0 redis://your-redis-host:port
# Example:
npx @gongrzhe/server-redis-mcp@1.0.0 redis://localhost:6379
Or install globally:
# Install specific version globally
npm install -g @gongrzhe/server-redis-mcp@1.0.0
# Run after global installation
@gongrzhe/server-redis-mcp redis://your-redis-host:port
set
key
(string): Redis keyvalue
(string): Value to storeexpireSeconds
(number, optional): Expiration time in secondsget
key
(string): Redis key to retrievedelete
key
(string | string[]): Key or array of keys to deletelist
pattern
(string, optional): Pattern to match keys (default: *)To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json
:
{
"mcpServers": {
"redis": {
"command": "npx",
"args": [
"@gongrzhe/server-redis-mcp@1.0.0",
"redis://localhost:6379"
]
}
}
}
Alternatively, you can use the node command directly if you have the package installed:
{
"mcpServers": {
"redis": {
"command": "node",
"args": [
"path/to/build/index.js",
"redis://10.1.210.223:6379"
]
}
}
}
When using Docker:
host.docker.internal
if the Redis server is running on the host network{
"mcpServers": {
"redis": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/redis",
"redis://host.docker.internal:6379"
]
}
}
}
npm install
npm run build
docker build -t mcp/redis .
This MCP server is licensed under the ISC License. For more details, please see the LICENSE file in the project repository.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "redis": { "command": "npx", "args": [ "@gongrzhe/server-redis-mcp@1.0.0", "redis://localhost:6379" ], "env": {} } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by googleapis
An MCP server that streamlines database tool development by handling connection pooling, authentication, observability, and secure access, allowing agents to interact with databases via natural language.
by bytebase
Provides a universal gateway that lets MCP‑compatible clients explore and query MySQL, PostgreSQL, SQL Server, MariaDB, and SQLite databases through a single standardized interface.
by designcomputer
Enables secure interaction with MySQL databases via the Model Context Protocol, allowing AI applications to list tables, read contents, and execute queries safely.
by benborla
Provides read‑only access to MySQL databases for large language models, allowing schema inspection and safe execution of SQL queries.
by ClickHouse
Enables AI assistants to run read‑only ClickHouse queries, list databases and tables, and execute embedded chDB queries through an MCP interface.
by chroma-core
Offers an MCP server exposing Chroma's vector database capabilities for LLM applications, supporting collection and document management, multiple embedding functions, and flexible client types such as in‑memory, persistent, HTTP, and cloud.
by kiliczsh
Enables LLMs to interact with MongoDB databases via a standardized interface, offering schema inspection, query execution, aggregation, and write capabilities, with optional read‑only mode and smart ObjectId handling.
by domdomegg
Provides read and write access to Airtable bases for AI systems, enabling inspection of schemas and manipulation of records.
by XGenerationLab
A Model Context Protocol (MCP) server that enables natural language queries to databases