Run Redis commands and look up Upstash Redis Search docs against Upstash Redis over HTTP or TCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Lightweight MCP server for Redis with only two tools:
redis_run_commands: run one or more Redis commands over HTTP/REST or TCP, as a pipeline or an atomic transaction.redis_search_docs: search the Redis docs using Context7 public api.One server can hold multiple named databases. Configuration is pure environment variables and CLI flags.
Run this in your terminal. See the Claude Code MCP docs for more.
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project), or go to Settings β MCP β Add new MCP server. See the Cursor MCP docs.
Add to .vscode/mcp.json (per-project) or your user mcp settings. See the VS Code MCP docs.
Add to ~/.codex/config.toml (or a project-level .codex/config.toml). See the Codex MCP docs.
Add to opencode.json (project) or ~/.config/opencode/opencode.json (global). See the OpenCode MCP docs.
[!TIP] Any MCP-compatible client works. If yours isn't listed, add a stdio server that runs
npx -y @upstash/redis-mcpwith the two env vars above.
redis_run_commandsRun any Redis command: GET, SET, SCAN, ZADD, EVAL, the SEARCH.* family, and everything else. Each command is an array of args (numbers are accepted and coerced to strings). By default multiple commands run as a pipeline: each returns its own result/error, aligned to the input, and one failure doesn't abort the rest. Set transaction: true for an atomic MULTI/EXEC.
The transport (HTTP vs TCP) is determined by how the target database is configured; the agent never picks it.
redis_search_docsSearches the Upstash Redis documentation live and returns the most relevant pages. Reach for it whenever you're unsure about a command or feature, especially Upstash-specific ones like the SEARCH.* full-text search family. It's powered by Context7's free tier, so no API key or extra setup is required.
Everything is set through environment variables and CLI flags; there are no config files.
| Transport | Environment | CLI |
|---|---|---|
| HTTP | UPSTASH_REDIS_REST_URL + UPSTASH_REDIS_REST_TOKEN | --rest-url <url> --rest-token <token> |
| TCP | UPSTASH_REDIS_TCP_URL (or REDIS_URL) | --url <rediss://β¦> |
Give each database a name. The name becomes a selectable database value in redis_run_commands.
Environment: insert a <NAME> segment:
CLI: repeat --database to start each group:
[!NOTE] Raw credentials per call. A
redis_run_commandscall may also passrest_url+rest_token(HTTP) orconnection_string(TCP) inline; these override the registry and work even with no configured database. They flow through the model's context, so prefer env/CLI for anything sensitive.
| Flag | Env | Default | Purpose |
|---|---|---|---|
--transport <stdio|http> | stdio | Server transport | |
--port <n> | 3000 | Port for the http transport | |
--readonly | UPSTASH_REDIS_READONLY | off | Best-effort: reject write commands on both transports. Server-side read-only REST tokens remain the robust option. |
--disable-telemetry | UPSTASH_DISABLE_TELEMETRY | off | Stop sending Upstash-Telemetry-* headers on HTTP requests |
--debug | off | Verbose logging to stderr + redis-mcp-debug.log |
HTTP/REST requests carry Upstash-Telemetry-{Sdk,Platform,Runtime} headers. Disable with --disable-telemetry or UPSTASH_DISABLE_TELEMETRY=true.
The server auto-loads .env. To point a client at your local build, swap npx -y @upstash/redis-mcp in any Quickstart config for node /absolute/path/to/redis-mcp/dist/index.js.
MIT Β© Upstash
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/redis-mcp)<a href="https://allmcps.com/mcp/redis-mcp"><img src="https://allmcps.com/api/badge/redis-mcp?style=directory" alt="Redis MCP on AllMCPs" /></a>