A Redis MCP server (pushed to https://github.com/modelcontextprotocol/servers/tree/main/src/redis) implementation for interacting with Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
What is REDIS-MCP-Server
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.internal
if 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.
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
PostgreSQL MCP Server
A Model Context Protocol server that provides read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
yaoxiaolinglong mcp mongodb mysql server
用于mysql和mongodb的mcp
x51xxx osp marketing tools mcp
weibaohui k8m
一款轻量级、跨平台的 Mini Kubernetes AI Dashboard,支持大模型+智能体+MCP(支持设置操作权限),集成多集群管理、智能分析、实时异常检测等功能,支持多架构并可单文件部署,助力高效集群管理与运维优化。
watchdealer pavel watchbase mcp server
MCP Server for structured and standardized querying of watch-related metadata such as brands, families, and reference details from WatchBase.com.
vgnshiyer apple books mcp
Apple Books MCP Server
Submit Your MCP Server
Share your MCP server with the community
Submit Now