# Redis MCP Server — Official Redis for AI Agents > Official Redis MCP server enabling AI agents to manage Redis data via natural language. Supports strings, hashes, lists, sets, streams, JSON, pub/sub, and vector search. MIT license. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use Add to your `.mcp.json`: ```json { "mcpServers": { "RedisMCPServer": { "command": "uvx", "args": [ "--from", "redis-mcp-server@latest", "redis-mcp-server", "--url", "redis://localhost:6379/0" ] } } } ``` Or run standalone: ```bash uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0 ``` Restart your AI tool. Redis is now accessible to your agent. --- ## Intro The Redis MCP Server is the official Model Context Protocol server by Redis, enabling AI agents to manage and search Redis data through natural language. With 470+ GitHub stars and MIT license, it supports all Redis data structures — strings, hashes, lists, sets, sorted sets, streams, JSON documents — plus vector search, pub/sub messaging, and EntraID authentication for Azure. Your AI agent can now query, update, and search Redis directly from Claude Code, Cursor, or any MCP-compatible tool. Best for: developers using Redis who want AI agents to interact with their data. Works with: Claude Code, Cursor, Gemini, any MCP client. Setup time: under 2 minutes. --- ## Redis MCP Server — Supported Operations ### Data Structures | Type | Operations | |------|-----------| | **Strings** | GET, SET with TTL, MGET, MSET | | **Hashes** | HGET, HSET, HGETALL, field operations | | **Lists** | LPUSH, RPUSH, LPOP, RPOP, LRANGE | | **Sets** | SADD, SREM, SMEMBERS, set operations | | **Sorted Sets** | ZADD, ZRANGE, leaderboards, priority queues | | **Streams** | XADD, XREAD, consumer groups, event sourcing | | **JSON** | Full JSON document operations | ### Advanced Features - **Vector Search** — Create vector indexes, store embeddings, similarity search - **Pub/Sub** — Publish messages, subscribe to channels - **Key Management** — TTL, expiry, key scanning, pattern matching - **Azure EntraID** — Native authentication for Azure Managed Redis ### Example Agent Interactions ``` "Store user session data in Redis hash with 30-minute TTL" "Find the top 10 items in the leaderboard sorted set" "Search for similar vectors to this embedding in the product index" "Publish a notification to the alerts channel" ``` ### FAQ **Q: What is Redis MCP Server?** A: The official MCP server by Redis that lets AI agents manage Redis data (strings, hashes, lists, sets, streams, JSON, vectors) via natural language. **Q: Is it free?** A: Yes, MIT license. Requires a running Redis instance. --- ## Source & Thanks > Created by [Redis](https://github.com/redis). Licensed under MIT. > > [mcp-redis](https://github.com/redis/mcp-redis) — ⭐ 470+ --- ## 快速使用 添加到 `.mcp.json`: ```json { "mcpServers": { "RedisMCPServer": { "command": "uvx", "args": ["--from", "redis-mcp-server@latest", "redis-mcp-server", "--url", "redis://localhost:6379/0"] } } } ``` --- ## 简介 Redis 官方 MCP 服务器,让 AI Agent 通过自然语言管理 Redis 数据。支持字符串、哈希、列表、集合、有序集合、流、JSON、向量搜索和发布/订阅。MIT 许可证。 --- ## 来源与感谢 > Created by [Redis](https://github.com/redis). Licensed under MIT. > > [mcp-redis](https://github.com/redis/mcp-redis) — ⭐ 470+ --- Source: https://tokrepo.com/en/workflows/31218ce0-3c2e-4186-9d68-c7606380c905 Author: MCP Hub