data
Upstash Redis MCP Integration for Vercel AI SDK
Connect Upstash Redis to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Upstash Redis to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
Upstash Redis MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-upstash": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=upstash",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=upstash --write=deny Why Use KosmoKrator Here
Expose only Upstash Redis instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Upstash Redis Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the Upstash Redis integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__upstash__upstash_get_key | upstash.upstash_get_key | Read | Retrieve the value stored at a Redis key. Returns null if the key does not exist. |
integration__upstash__upstash_set_key | upstash.upstash_set_key | Write | Store a key-value pair in Redis. Optionally set a TTL (time-to-live) in seconds so the key expires automatically. |
integration__upstash__upstash_delete_key | upstash.upstash_delete_key | Write | Delete a key from Redis. Returns the number of keys that were removed. |
integration__upstash__upstash_list_keys | upstash.upstash_list_keys | Read | List Redis keys matching a glob-style pattern. Defaults to "*" to list all keys. |
integration__upstash__upstash_list_databases | upstash.upstash_list_databases | Read | List all Redis databases in the Upstash account. Returns database IDs, names, regions, and endpoints. |
integration__upstash__upstash_get_database | upstash.upstash_get_database | Read | Get details for a specific Upstash Redis database by ID, including endpoint, region, and usage stats. |
integration__upstash__upstash_get_current_user | upstash.upstash_get_current_user | Read | Get current team information from Upstash, including team name, members, and plan details. |