Upstash MCP Server

Official
MIT License
58
27
  • Linux
  • Apple

redis_database_run_single_redis_command

Execute a single Redis command on an Upstash Redis database by providing the command, REST token, and database URL. Supports operations like SCAN and TYPE for efficient key discovery and management.

Instructions

Run a single Redis command on a specific Upstash redis database. NOTE: For discovery, use SCAN over KEYS. Use TYPE to get the type of a key. NOTE: SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]

Input Schema

NameRequiredDescriptionDefault
commandYesThe Redis command to run. Example: ['SET', 'foo', 'bar', 'EX', 100]
database_rest_tokenYesThe REST token of the database.
database_rest_urlYesThe REST URL of the database. Example: https://***.upstash.io

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "The Redis command to run. Example: ['SET', 'foo', 'bar', 'EX', 100]", "items": { "type": "string" }, "type": "array" }, "database_rest_token": { "description": "The REST token of the database.", "type": "string" }, "database_rest_url": { "description": "The REST URL of the database. Example: https://***.upstash.io", "type": "string" } }, "required": [ "database_rest_url", "database_rest_token", "command" ], "type": "object" }
ID: 4slca1893i