Upstash MCP server for AI agents

Live

OAUTH 2.1

SERVERLESS DATA

Developer Tools

Upstash MCP gives your agent control of your Upstash account: manage Redis databases, query Vector indexes and Search databases, publish QStash messages and schedules, run Redis commands, and operate Boxes.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Upstash MCP
agent · Acme Q3
Run
How many keys does my sessions Redis database hold?
S
upstashmcp_redis_get_stats
236ms
Data platform agent
The sessions database holds 48,210 keys using 312 MB, handling about 140 commands per second over the last hour.
Sources: Upstash Redis stats, 1 database
upstashmcp
48,210 keys
18:29
Message Claude...

Tools your serverless data agent reaches for on Upstash, scoped per user.

CALL ANY TOOL
78 tools for serverless data in Upstash: manage Redis databases and backups, query Vector and Search indexes, publish and schedule QStash messages, read logs and metrics, and operate Boxes and Blob buckets.
upstashmcp_blob_bucket
Blob bucket
Lists, gets, creates or deletes Upstash Blob buckets, object storage an agent can upload files to and link to afterwards. Blob has no plans to choose: storage, operations and bandwidth are free up to a monthly allowance and pay-as-you-go above it (https://upstash.com/pricing/blob.md). Actions: list (every bucket in the authorized account scope), get (needs bucket_id; with include_credentials the result also carries the bucket's `token`, the value `@upstash/blob` reads as UPSTASH_BLOB_TOKEN), stats (needs bucket_id; storage, bandwidth, operations and cost per day and per month, collected hourly, so today's row is partial), create (needs name), delete (needs bucket_id; permanent, and refused while the bucket still holds objects, empty it with blob_object delete first), reset_token (needs bucket_id; rotates the bucket token: the current token stops working at once, so apps need the new UPSTASH_BLOB_TOKEN from get with include_credentials; confirm with the user first). A public bucket serves its objects at a permanent URL under public_host, which is what you want for a link that has to keep working, such as an image embedded in a PR body; a private bucket has no public host and its objects are reachable only through short-lived signed URLs. The token is returned only by get with include_credentials on a read-write connection; on a read-only connection it is omitted regardless, and list, create, delete and reset_token never return it.
Parameters
Name
Type
Required
Description
action
string
Required
The action to perform. One of: `list`, `get`, `stats`, `create`, `delete`, `reset_token`.
bucket_id
string
Optional
The bucket's id, from blob_bucket list (required for get, stats, delete and reset_token)
days
integer
Optional
stats only: daily rows to return, including today (max 90)
include_credentials
boolean
Optional
get only. Set true only when the user asks for the bucket's credentials or wants to configure an app with it (UPSTASH_BLOB_TOKEN): the result then includes `token`. Default false, metadata only. On a read-only connection the token is omitted regardless
months
integer
Optional
stats only: monthly rows to return, including this month (max 24)
name
string
Optional
Bucket name, unique within the account (required for create)
visibility
string
Optional
Whether the bucket's objects are served publicly (create, default: public). Public gives every object a permanent URL; private objects are reachable only through short-lived signed URLs. One of: `public`, `private`.
upstashmcp_blob_upload_url
Blob upload url
upstashmcp_box_apikey
Box apikey
upstashmcp_box_git
Box git
upstashmcp_box_runs
Box runs
upstashmcp_console_redis_value
Console redis value
upstashmcp_dlq_list
List dlq
upstashmcp_index_create
Create index
upstashmcp_index_delete
Delete index
upstashmcp_index_delete_namespace
Index delete namespace
upstashmcp_index_fetch
Fetch index
upstashmcp_index_get
Get index
upstashmcp_index_list_namespaces
Index list namespaces
upstashmcp_index_reset
Reset index
upstashmcp_index_set_plan
Index set plan
upstashmcp_index_update
Update index
upstashmcp_qstash_flow_control_get
Get qstash flow control
upstashmcp_qstash_list_users
Qstash list users
upstashmcp_qstash_publish_message
Qstash publish message
upstashmcp_qstash_set_plan
Qstash set plan
upstashmcp_redis_change_plan
Redis change plan
upstashmcp_redis_create_branch
Redis create branch
upstashmcp_redis_get_insights
Redis get insights
upstashmcp_redis_run_command
Redis run command
upstashmcp_redis_set_budget
Redis set budget
upstashmcp_redis_set_eviction
Redis set eviction
upstashmcp_redis_update_read_regions
Redis update read regions
upstashmcp_search_query
Query search
upstashmcp_vector_query
Query vector
upstashmcp_vector_upsert
Upsert vector

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Upstash tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["upstashmcp"], toolNames: [
    "upstashmcp_redis_list_databases",
    "upstashmcp_redis_get_stats",
    "upstashmcp_redis_run_command"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my Redis databases, check the throughput on the sessions database, and count its keys" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["upstashmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my Redis databases, check the throughput on the sessions database, and count its keys" }],
  tools,
});

// Execute the tool call with the user's vaulted Upstash OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["upstashmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my Redis databases, check the throughput on the sessions database, and count its keys" }],
  tools,
});

// Tool call runs with the user's vaulted Upstash OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["upstashmcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "data_platform_agent",
  model: "gemini-2.5-pro",
  instruction: "Upstash tools scoped to this user",
  tools,
});

await agent.run("List my Redis databases, check the throughput on the sessions database, and count its keys");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Upstash MCP tool. Click to copy, paste into your agent, done.
Redis databases
Copy the prompt
Copied
List my Upstash Redis databases.
Copy the prompt
Copied
Show the throughput and latency for my sessions database.
Copy the prompt
Copied
Create a manual backup of my sessions database.
Vector and search
Copy the prompt
Copied
Query the products Vector index for items similar to this embedding.
Copy the prompt
Copied
Search the docs index of my Search database for rate limits.
Copy the prompt
Copied
Show the document counts for each namespace in my products index.
QStash and Boxes
Copy the prompt
Copied
Publish a message to this webhook URL through QStash.
Copy the prompt
Copied
List my QStash schedules in us-east-1.
Copy the prompt
Copied
Show the CPU and memory use of my build box.
SEE HOW AUTH WORKS
Each user signs in to Upstash once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Upstash MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Upstash MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Upstash MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Upstash MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other database and developer connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other database and developer connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Upstash token looks fine in a demo. In production every database change and QStash publish looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Upstash today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Upstash as the user or through a shared service account?
As the user. Each user signs in to Upstash once, and Scalekit stores and refreshes their tokens. Every database change and QStash publish in your audit trail is attributed to that user, not a shared service account.
Where is the Upstash OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Upstash?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the Redis, index, and QStash read tools without upstashmcp_redis_delete_database or upstashmcp_index_delete, which permanently delete a database or an entire index. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Upstash access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Does the agent get my Redis passwords and REST tokens?
Not unless a tool is asked for them. upstashmcp_redis_list_databases never includes credentials, and upstashmcp_redis_create_database returns the password and REST tokens only when include_credentials is true. upstashmcp_redis_run_command resolves credentials server side and never exposes them.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""upstashmcp"": {
""url"": ""https://mcp.scalekit.com/upstashmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.upstashmcp]
url = ""https://mcp.scalekit.com/upstashmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""upstashmcp"": {
""url"": ""https://mcp.scalekit.com/upstashmcp"",
""type"": ""http""
}
}
}