Redis MCP Server — Hosted Database Integration
MCP Server language Hosted language PublicGet, set, and manage keys, hashes, and lists in your Upstash Redis database — AI-native key-value store access.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"redis": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-redis",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify redis connectivity with a ping command. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-redis — Upstash Redis MCP Server
Manage keys, hashes, lists, and counters in your Upstash Redis database from your AI agents.
Redis is the world's most popular in-memory data store — used for caching, session management, rate limiting, queues, and real-time counters. Upstash provides a serverless Redis with a REST API that works anywhere, including Cloudflare Workers. This MCP server gives your AI agents full read/write access to your Redis instance: getting and setting keys, working with hashes and lists, managing TTLs, and incrementing counters — all through natural language.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-redis
What You Can Do
- Get and set key-value pairs to read or write cached data, feature flags, and configuration values
- Work with hashes to store and retrieve structured objects like user profiles or settings
- Push to and read from lists to manage queues, activity feeds, and ordered collections
- Increment counters for tracking page views, API usage, or any numeric metric
- Manage key expiry (TTL) to implement time-based caching and auto-cleanup
Available Tools
| Tool | Description |
|---|---|
get |
Get the value of a key |
set |
Set a key-value pair with optional TTL |
del |
Delete one or more keys |
keys |
List keys matching a glob pattern |
exists |
Check if key(s) exist |
ttl |
Get remaining TTL of a key |
expire |
Set TTL on a key |
hget |
Get a single hash field |
hset |
Set one or more hash fields |
hgetall |
Get all fields and values of a hash |
lpush |
Push values to the head of a list |
lrange |
Get a range of elements from a list |
incr |
Increment a counter by 1 |
info |
Get Redis server info and statistics |
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
UPSTASH_REDIS_URL |
Yes | Your Upstash Redis REST URL | console.upstash.com → Your Database → REST API → copy UPSTASH_REDIS_REST_URL |
UPSTASH_REDIS_TOKEN |
Yes | Your Upstash Redis REST token | Same page → copy UPSTASH_REDIS_REST_TOKEN |
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "Redis" and click Add to Workspace
- Add
UPSTASH_REDIS_URLandUPSTASH_REDIS_TOKENunder Project → Secrets
Once added, every AI agent in your workspace can call Redis tools automatically — no per-user setup needed.
Example Prompts
"Get the value of the key 'config:feature-flags'"
"Set a cache key 'session:abc123' with value 'active' and a TTL of 3600 seconds"
"Show me all keys matching 'user:*' and get the hash at 'user:42'"
"Increment the counter 'api:requests:today' and tell me the new value"
"Push 'order-789' to the 'pending-orders' list and show me the first 10 items"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-redis \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-UPSTASH-REDIS-URL: https://us1-xxx.upstash.io' \
-H 'X-Mcp-Secret-UPSTASH-REDIS-TOKEN: your-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get","arguments":{"key":"my-key"}}}'
License
MIT
terminal Tools (15)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify Redis connectivity with a PING command. Used internally by Aerostack to validate credentials.
get #2 Get the value of a key
set #3 Set a key-value pair with an optional TTL in seconds
del #4 Delete one or more keys
keys #5 List all keys matching a glob-style pattern (e.g. "user:*")
exists #6 Check if one or more keys exist. Returns the count of keys that exist.
ttl #7 Get the remaining time-to-live of a key in seconds. Returns -1 if no TTL, -2 if key does not exist.
expire #8 Set a TTL (time-to-live) on a key in seconds
hget #9 Get the value of a single field in a hash
hset #10 Set one or more fields in a hash
hgetall #11 Get all fields and values of a hash
lpush #12 Push one or more values to the head (left) of a list
lrange #13 Get a range of elements from a list
incr #14 Increment the integer value of a key by 1. Creates the key with value 1 if it does not exist.
info #15 Get Upstash Redis server info and statistics
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-redis
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in Database
Browse Database MCPs →Airtable
by @aerostack
Turn your Airtable bases into an AI-queryable database — create, update, search, and analyze records with natural language.
Notion Workspace
by @aerostack
Pages, databases, blocks, search via Notion's official MCP
Mongodb
by @aerostack
Query collections, insert documents, and run aggregation pipelines on your MongoDB Atlas database — AI-native document database access.
Supabase
by @aerostack
Query Postgres tables, manage storage buckets, and interact with your Supabase backend — AI-native database access.
Turso
by @aerostack
Execute SQL queries, manage tables, and interact with your Turso (LibSQL) edge database — AI-native SQLite at the edge.
Dynamodb
by @aerostack
Query, put, update, delete, and scan items in Amazon DynamoDB tables — AI-native NoSQL database access for any agent.
Frequently asked questions
What is the Redis MCP server and what can it do? +
The Redis MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `get`, `set`, `del`, `keys`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Redis MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Redis MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Redis MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Redis MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-redis": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-redis"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Redis MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-redis", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-redis"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Redis MCP require authentication? +
Yes. Redis requires authentication. Check the MCP's documentation for the required credentials.