Aerostack
electrical_services

Upstash Kafka MCP Server — Hosted Api Connectors Integration

MCP Server language Hosted language Public

Produce and consume messages, manage topics, and inspect stats on Upstash serverless Kafka via the REST API.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 28, 2026
robot_2

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.

.claude/mcp.json
{
  "mcpServers": {
    "upstash-kafka": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-upstash-kafka",
      "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:

+2 more

Natural Language Prompt

“Use the _ping tool to verify upstash kafka credentials by listing topics. 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.

add_circleAdd to Workspace

description Overview

mcp-upstash-kafka — Upstash Kafka MCP Server

Produce and consume messages, manage topics, and inspect stats on Upstash serverless Kafka.

Upstash Kafka is a serverless Kafka service with a REST API — no brokers to manage, pay only for what you use. This MCP server lets your AI agents produce messages to topics, consume from consumer groups, create and delete topics, and check topic statistics, all through the Upstash Kafka REST interface.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-upstash-kafka


What You Can Do

  • Produce messages to Kafka topics from agent workflows — triggered by signups, payments, alerts, or any event
  • Consume messages from topics using consumer groups to process event streams
  • Batch-produce multiple messages in a single call for high-throughput scenarios
  • List, create, and delete topics to manage your Kafka cluster
  • Inspect topic statistics to monitor partition counts, retention, and throughput

Available Tools

Tool Description
_ping Verify Upstash Kafka credentials by listing topics (used by Aerostack)
produce Send a message to a Kafka topic with optional partition key
produce_batch Send multiple messages to one or more topics in a single request
consume Read messages from a topic using a consumer group
list_topics List all Kafka topics in the cluster
create_topic Create a new topic with configurable partitions and retention
delete_topic Delete a topic (irreversible)
get_topic_stats Get statistics for a topic (partitions, retention, config)

Configuration

Variable Required Description How to Get
UPSTASH_KAFKA_REST_URL Yes Upstash Kafka REST API URL console.upstash.comKafka → select your cluster → REST API section → copy the UPSTASH_KAFKA_REST_URL
UPSTASH_KAFKA_REST_USERNAME Yes REST API username for authentication Same page → copy UPSTASH_KAFKA_REST_USERNAME
UPSTASH_KAFKA_REST_PASSWORD Yes REST API password for authentication Same page → copy UPSTASH_KAFKA_REST_PASSWORD

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "Upstash Kafka" and click Add to Workspace
  3. Add your UPSTASH_KAFKA_REST_URL, UPSTASH_KAFKA_REST_USERNAME, and UPSTASH_KAFKA_REST_PASSWORD under Project → Secrets

Once added, every AI agent in your workspace can call Kafka tools automatically — no per-user setup needed.

Example Prompts
"Send a message to the 'user-signups' topic with the payload { name: 'Alice', plan: 'pro' }"
"Read the latest messages from the 'order-events' topic using consumer group 'analytics'"
"List all Kafka topics in our cluster"
"Create a new topic called 'notifications' with 3 partitions and 30-day retention"
"Get stats for the 'payment-events' topic"
"Delete the 'test-topic' topic"
Direct API Call
# Produce a message
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-upstash-kafka \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-UPSTASH-KAFKA-REST-URL: https://your-cluster.upstash.io' \
  -H 'X-Mcp-Secret-UPSTASH-KAFKA-REST-USERNAME: your-username' \
  -H 'X-Mcp-Secret-UPSTASH-KAFKA-REST-PASSWORD: your-password' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"produce","arguments":{"topic":"user-signups","value":"{\"name\":\"Alice\",\"plan\":\"pro\"}"}}}'

# Consume messages
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-upstash-kafka \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-UPSTASH-KAFKA-REST-URL: https://your-cluster.upstash.io' \
  -H 'X-Mcp-Secret-UPSTASH-KAFKA-REST-USERNAME: your-username' \
  -H 'X-Mcp-Secret-UPSTASH-KAFKA-REST-PASSWORD: your-password' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"consume","arguments":{"topic":"user-signups","group":"my-consumer-group"}}}'

License

MIT

terminal Tools (8)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
_ping #1

Verify Upstash Kafka credentials by listing topics. Used internally by Aerostack to validate credentials.

terminal
produce #2

Send a message to a Kafka topic. Returns the offset of the produced message.

terminal
produce_batch #3

Send multiple messages to one or more Kafka topics in a single request. Each message needs a topic and value.

terminal
consume #4

Read messages from a Kafka topic using a consumer group. Returns an array of messages with their offsets.

terminal
list_topics #5

List all Kafka topics in the Upstash cluster.

terminal
create_topic #6

Create a new Kafka topic with configurable partitions and retention.

terminal
delete_topic #7

Delete a Kafka topic. This is irreversible and all messages in the topic will be lost.

terminal
get_topic_stats #8

Get statistics for a specific topic including partition count, message count, and throughput.

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category API Connectors
terminal Tools 8

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-upstash-kafka

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

More in API Connectors

Browse API Connectors MCPs →

Frequently asked questions

What is the Upstash Kafka MCP server and what can it do? +

The Upstash Kafka MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `produce`, `produce_batch`, `consume`, `list_topics`. 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 Upstash Kafka 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 Upstash Kafka 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 Upstash Kafka 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 Upstash Kafka MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-upstash-kafka": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-upstash-kafka"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the Upstash Kafka MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-upstash-kafka", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-upstash-kafka"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does Upstash Kafka MCP require authentication? +

Yes. Upstash Kafka requires authentication. Check the MCP's documentation for the required credentials.