# Upstash 官方 MCP 服务器 — 无服务器 Redis、Vector 和 QStash (`redis-upstash-mcp`)

> 管理 Upstash Redis 数据库、运行非阻塞键扫描、检查流吞吐量并监控 QStash 消息队列。

- **Canonical URL:** https://syndipath.com/zh/mcp/redis-upstash-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `@upstash/mcp-server`
- **Upvotes:** 584 | **GitHub Stars:** 4120 | **Weekly Installs:** 32600
- **Security Note:** HTTP-200 在 NPM 注册中心（@upstash/mcp-server）上验证；通过 npx 在工作区范围的 STDIO 会话中运行。

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @upstash/mcp-server

# Add to Claude Code CLI
claude mcp add -e UPSTASH_EMAIL=${UPSTASH_EMAIL} -e UPSTASH_API_KEY=${UPSTASH_API_KEY} redis-upstash-mcp -- npx -y @upstash/mcp-server
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "redis-upstash-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/mcp-server"
      ],
      "env": {
        "UPSTASH_EMAIL": "${UPSTASH_EMAIL}",
        "UPSTASH_API_KEY": "${UPSTASH_API_KEY}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `redis_upstash_mcp_query(sql_or_filter: string, limit?: number)`: Manage Upstash Redis databases, run non-blocking key scans, inspect stream throughput, and monitor QStash message queues.
- `redis_upstash_mcp_inspect_schema(namespace?: string)`: Enumerates tables, collections, column types, and active index definitions.
