Get, 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.
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
| 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 |
| 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 |
UPSTASH_REDIS_URL and UPSTASH_REDIS_TOKEN under Project → SecretsOnce added, every AI agent in your workspace can call Redis tools automatically — no per-user setup needed.
"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"
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"}}}'
MIT
Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-redis
Sub-50ms globally · Zero cold start
@aerostack
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
by @aerostack
Turn your Airtable bases into an AI-queryable database — create, update, search, and analyze records with natural language.
by @aerostack
Pages, databases, blocks, search via Notion's official MCP
by @aerostack
Query collections, insert documents, and run aggregation pipelines on your MongoDB Atlas database — AI-native document database access.
by @aerostack
Query Postgres tables, manage storage buckets, and interact with your Supabase backend — AI-native database access.
by @aerostack
Execute SQL queries, manage tables, and interact with your Turso (LibSQL) edge database — AI-native SQLite at the edge.
by @aerostack
Query, put, update, delete, and scan items in Amazon DynamoDB tables — AI-native NoSQL database access for any agent.
Yes. Use ttl to check remaining lifetime on session keys, then del to remove ones that have expired or fallen below a threshold. keys with a pattern like session:* scopes the scan safely.
hget fetches a single field; hgetall returns the full hash as a map. hset writes one or more fields. Claude can read a user profile hash, update a single field, and write it back atomically.
Yes. lpush appends items to a list and lrange reads a slice. Claude can enqueue job payloads as JSON strings and a worker can pop them. incr is useful for atomic counters alongside queue length checks.
It returns server stats including memory usage, connected clients, total commands processed, and keyspace summary — useful for Claude to diagnose performance before issuing expensive key scans.