Redis MCP Server
An MCP server for interacting with Redis databases, enabling LLMs to access key-value stores.
Redis MCP Server (@gongrzhe/[email protected])
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.
Update
62 Redis MCP tools in https://github.com/GongRzhe/REDIS-MCP-Server/tree/redis-plus
Installation & Usage
Installing via Smithery
To install Redis MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @gongrzhe/server-redis-mcp --client claude
Installing Manually
# Using npx with specific version (recommended)
npx @gongrzhe/[email protected] redis://your-redis-host:port
# Example:
npx @gongrzhe/[email protected] redis://localhost:6379
Or install globally:
# Install specific version globally
npm install -g @gongrzhe/[email protected]
# Run after global installation
@gongrzhe/server-redis-mcp redis://your-redis-host:port
Components
Tools
-
set
- Set a Redis key-value pair with optional expiration
- Input:
key(string): Redis keyvalue(string): Value to storeexpireSeconds(number, optional): Expiration time in seconds
-
get
- Get value by key from Redis
- Input:
key(string): Redis key to retrieve
-
delete
- Delete one or more keys from Redis
- Input:
key(string | string[]): Key or array of keys to delete
-
list
- List Redis keys matching a pattern
- Input:
pattern(string, optional): Pattern to match keys (default: *)
Configuration
Usage with Claude Desktop
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/[email protected]",
"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"
]
}
}
}
Docker Usage
When using Docker:
- For macOS, use
host.docker.internalif the Redis server is running on the host network - Redis URL can be specified as an argument, defaults to "redis://localhost:6379"
{
"mcpServers": {
"redis": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/redis",
"redis://host.docker.internal:6379"
]
}
}
}
Development
Building from Source
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build
Docker Build
docker build -t mcp/redis .
License
This MCP server is licensed under the ISC License. For more details, please see the LICENSE file in the project repository.
Related Servers
Supabase Read-Only MCP Server
Provides read-only access to a Supabase database.
Unofficial Reactome MCP Server
Access Reactome pathway and systems biology data via its live API.
Apache Doris
MCP Server For Apache Doris, an MPP-based real-time data warehouse.
MySQL MCP Server
Integrates with MySQL databases to provide secure database access for LLMs.
Generect MCP
Generect MCP connects your live lead database directly to AI models like OpenAI or Claude without exports or delays. It streams enriched, up-to-date contact data (titles, firmographics, signals) straight into prompts so LLMs can personalize, score, and recommend leads automatically in real time.
SQL Analyzer
Analyze, lint, and convert SQL dialects using SQLGlot.
Database
Universal database MCP server supporting multiple database types including PostgreSQL, Redshift, CockroachDB, MySQL, RDS MySQL, Microsoft SQL Server, BigQuery, Oracle DB, and SQLite
KnowledgeGraph MCP Server
Enables persistent knowledge storage for Claude using a knowledge graph with multiple database backends like PostgreSQL and SQLite.
MCP BigQuery Server
Securely access BigQuery datasets with intelligent caching, schema tracking, and query analytics via Supabase integration.
UniProt MCP Server
Fetch protein information from the UniProt database.