Connect to AI
Database & Messaging Bearer Token

Upstash REST API

Serverless data for Redis and Kafka with per-request pricing

Upstash provides serverless Redis and Kafka with a REST API, designed for edge computing and serverless applications. It offers per-request pricing, global replication, and low-latency access. Developers use Upstash to add caching, rate limiting, session management, and event streaming to serverless functions without managing infrastructure.

Base URL https://api.upstash.com

API Endpoints

MethodEndpointDescription
GET/v2/redis/databasesList all Redis databases in your account
POST/v2/redis/databaseCreate a new Redis database with specified region and configuration
GET/v2/redis/database/:idGet details of a specific Redis database by ID
DELETE/v2/redis/database/:idDelete a Redis database permanently
POST/v2/redis/database/:id/statsGet usage statistics for a Redis database including commands and storage
GET/v2/kafka/clustersList all Kafka clusters in your account
POST/v2/kafka/clusterCreate a new Kafka cluster with region and configuration
GET/v2/kafka/cluster/:idGet details of a specific Kafka cluster by ID
DELETE/v2/kafka/cluster/:idDelete a Kafka cluster permanently
GET/v2/kafka/topic/:clusterIdList all topics in a Kafka cluster
POST/v2/kafka/topic/:clusterIdCreate a new Kafka topic with partitions and retention settings
DELETE/v2/kafka/topic/:clusterId/:topicNameDelete a Kafka topic from a cluster
POST/v2/qstash/v2/publish/:destinationPublish a message to QStash for delayed or scheduled delivery
GET/v2/qstash/v2/messagesList messages in QStash queue with filtering options
POST/v2/redis/reset/:idReset Redis database credentials and regenerate access tokens

Code Examples

# List all Redis databases
curl https://api.upstash.com/v2/redis/databases \
  -H "Authorization: Bearer YOUR_API_KEY"

# Create a new Redis database
curl -X POST https://api.upstash.com/v2/redis/database \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-redis-db",
    "region": "us-east-1",
    "tls": true,
    "multizone": true
  }'

Use Upstash from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Upstash. Paste your Upstash API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Upstash directly with your credentials — no local install, works on mobile.

create_redis_database Create a new serverless Redis database in a specified region with automatic scaling and replication
query_redis_stats Retrieve usage statistics and performance metrics for Redis databases including request counts and storage usage
manage_kafka_topics Create, list, and delete Kafka topics with partition and retention configuration
publish_qstash_message Publish messages to QStash for scheduled or delayed delivery to HTTP endpoints with retry logic
monitor_database_health Check health status and availability of Redis and Kafka instances across regions

Connect in 60 seconds

Paste your Upstash key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Upstash to your AI →

Related APIs