Redis
Redis MCP 服务器 (@gongrzhe/server-redis-mcp@1.0.0)
用于与 Redis 数据库交互的 Redis 模型上下文协议 (MCP) 服务器实现。该服务器使 LLM 能够通过一组标准化工具与 Redis 键值存储进行交互。
更新
62 个 Redis MCP 工具位于https://github.com/GongRzhe/REDIS-MCP-Server/tree/redis-plus
Related MCP server: Redis MCP
安装和使用
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Redis MCP 服务器:
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或者全局安装:
# 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成分
工具
放
设置具有可选到期日期的 Redis 键值对
输入:
key(字符串):Redis 键value(字符串):要存储的值expireSeconds(数字,可选):以秒为单位的到期时间
得到
从 Redis 中根据 key 获取值
输入:
key(字符串):要检索的 Redis 键
删除
从 Redis 中删除一个或多个键
输入:
key(string | string[]):要删除的键或键数组
列表
列出与模式匹配的 Redis 键
输入:
pattern(字符串,可选):匹配键的模式(默认值:*)
配置
与 Claude Desktop 一起使用
要将此服务器与 Claude Desktop 应用程序一起使用,请将以下配置添加到claude_desktop_config.json的“mcpServers”部分:
{
"mcpServers": {
"redis": {
"command": "npx",
"args": [
"@gongrzhe/server-redis-mcp@1.0.0",
"redis://localhost:6379"
]
}
}
}或者,如果您已经安装了该包,则可以直接使用 node 命令:
{
"mcpServers": {
"redis": {
"command": "node",
"args": [
"path/to/build/index.js",
"redis://10.1.210.223:6379"
]
}
}
}Docker 使用
使用 Docker 时:
对于 macOS,如果 Redis 服务器在主机网络上运行,请使用
host.docker.internalRedis URL 可以指定为参数,默认为“redis://localhost:6379”
{
"mcpServers": {
"redis": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/redis",
"redis://host.docker.internal:6379"
]
}
}
}发展
从源代码构建
克隆存储库
安装依赖项:
npm install构建项目:
npm run build
Docker 构建
docker build -t mcp/redis .执照
此 MCP 服务器采用 ISC 许可证。更多详情,请参阅项目仓库中的 LICENSE 文件。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA server that provides Claude with Redis database access and operations through a set of tools for basic operations, lists, hashes, sets, and pub/sub functionality.24MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to perform comprehensive Redis database operations including managing strings, hashes, lists, sets, sorted sets, TTL management, and data backup/restore. Supports secure connections and provides batch operations for efficient Redis interaction through natural language.3472MIT
- AlicenseAqualityDmaintenanceEnables AI to safely view and operate Redis databases with read-only mode by default and support for key operations.11MIT
- AlicenseAqualityDmaintenanceEnables AI agents to manage and search data in Redis using natural language. Supports hashes, lists, sets, sorted sets, streams, JSON, and vector search.44MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
GibsonAI MCP server: manage your databases with natural language
Remote ChromaDB vector database MCP server with streamable HTTP transport
Appeared in Searches
- Methods for Saving, Reading, and Querying Data
- A server for data engineering tasks, GPU clustering, nomad setup, and data pipeline management
- Methods for Context and Data Analysis
- Attribution and Contribution Analysis in Data Science and Economics
- An in-memory data store for caching and message brokering
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GongRzhe/REDIS-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server