Upstash MCP Server
Manage serverless Redis via Upstash REST API — execute commands, manage data structures and monitor your database from any AI agent.
Ask AI about this MCP Server
Vinkius AI Gateway supports streamable HTTP and SSE.

Works with every AI agent you already use
…and any MCP-compatible client


















What is the Upstash MCP Server?
The Upstash MCP Server gives AI agents like Claude, ChatGPT, and Cursor direct access to Upstash. Manage serverless Redis via Upstash REST API — execute commands, manage data structures and monitor your database from any AI agent. Powered by the Vinkius AI Gateway — no API keys, no infrastructure, connect in under 2 minutes.
Upstash MCP Server: see your AI Agent in action
Built-in capabilities (23)
decr
If the key does not exist, it is initialized to 0 before the operation. Returns the new value after decrementing. Decrement a numeric value in Upstash Redis
del
Returns 1 if the key was deleted, 0 if it did not exist. WARNING: this operation is irreversible. Delete a key from Upstash Redis
exists
This is a lightweight way to check key presence without retrieving the value. Check if a key exists in Upstash Redis
expire
The key will be automatically deleted when the TTL reaches zero. Returns 1 if the timeout was set, 0 if the key does not exist. Set a TTL on a key in Upstash Redis
get
Returns null if the key does not exist. This is the primary read operation for string data. Get a value from Upstash Redis
hget
Returns null if the key or field does not exist. Get a field value from a Redis hash
hgetall
Returns an object with all fields and their values. Returns an empty object if the key does not exist. Get all fields and values from a Redis hash
hset
If the key does not exist, a new hash is created. If the field already exists, its value is overwritten. Returns the number of fields added (1 for new, 0 for updated). Set a field in a Redis hash
incr
If the key does not exist, it is initialized to 0 before the operation. Returns the new value after incrementing. Increment a numeric value in Upstash Redis
key_type
Get the data type of a key in Upstash Redis
list_keys
Use "*" for all keys, "prefix:*" for keys with a prefix, or "*:suffix" for suffix matching. WARNING: KEYS can be slow on large databases — use sparingly. List keys in Upstash Redis
llen
Returns 0 if the key does not exist. Get the length of a Redis list
lpush
If the key does not exist, a new list is created. Returns the length of the list after the push. Push values to the left of a Redis list
lrange
Use 0 as start and -1 as stop to get all elements. Positive indices count from the head (0 = first), negative indices count from the tail (-1 = last). Get a range of elements from a Redis list
pipeline
Commands are sent as a JSON array of arrays, e.g. [["SET","k1","v1"],["GET","k1"],["INCR","counter"]]. Returns an array of results in the same order. Note: the pipeline is NOT atomic (other commands may interleave) — use /multi-exec for atomicity. WARNING: this is a powerful tool — review commands carefully before execution. Execute multiple commands atomically via Upstash pipeline
publish
Returns the number of subscribers that received the message. This is a fire-and-forget operation — subscribers must be actively listening. Publish a message to a Redis channel
rpush
If the key does not exist, a new list is created. Returns the length of the list after the push. Push values to the right of a Redis list
sadd
Duplicate members are ignored. If the key does not exist, a new set is created. Returns the number of members that were added. Add members to a Redis set
set
Optionally set an expiry time in seconds using the ex parameter. Overwrites any existing value at the key. Returns "OK" on success. This is the primary write operation for string data. Set a value in Upstash Redis
sismember
This is a fast O(1) membership check. Check if a member is in a Redis set
smembers
Returns an array of all unique members. Returns an empty array if the key does not exist. Get all members of a Redis set
srem
Non-existent members are ignored. Returns the number of members that were removed. Remove members from a Redis set
ttl
Returns -1 if the key has no expiry, -2 if the key does not exist. Get the TTL of a key in Upstash Redis
What this connector unlocks
Connect your Upstash Redis database to any AI agent and interact with your serverless data store through natural conversation — no Redis CLI needed.
What you can do
- Health Checks — Ping your database to verify connectivity and inspect server health
- String Operations — Get, set and delete key-value pairs with optional TTL management
- Hash Management — Store and retrieve structured data as field-value pairs within hash keys
- List Operations — Push, pop and range elements from Redis lists for queue and stack patterns
- Set Operations — Add, remove and query set membership for unique collections
- Key Discovery — List keys by pattern, check existence, inspect data types and view TTL values
- Numeric Operations — Increment and decrement counters atomically
- Pub/Sub Messaging — Publish messages to channels for event-driven architectures
- Pipeline Execution — Execute multiple commands in a single HTTP request for batch operations
How it works
1. Subscribe to this server
2. Enter your Upstash REST URL and Token
3. Start managing your Redis data from Claude, Cursor, or any MCP-compatible client
No more switching to another terminal to run Redis commands. Your AI acts as an in-memory data engineer.
Who is this for?
- Backend Developers — manage caching layers, feature flags, session storage and rate limit counters directly from chat
- DevOps Engineers — monitor database health, audit key patterns and manage TTL-based data lifecycle
- Full-Stack Teams — manipulate data structures (hashes, lists, sets) for application state without opening Redis CLI
Frequently asked questions
Give your AI agents the power of Upstash
Access Upstash and 2,500+ MCP servers — ready for your agents to use, right now. No glue code. No custom integrations. Just plug Vinkius AI Gateway and let your agents work.
