Skip to main content
Glama

Redis MCP Server

Official
by redis

xadd

Add entries to a Redis stream with optional expiration. Specify a stream key, fields, and an expiration time in seconds to store and manage data efficiently. Returns the entry ID or an error message.

Instructions

Add an entry to a Redis stream with an optional expiration time.

Args: key (str): The stream key. fields (dict): The fields and values for the stream entry. expiration (int, optional): Expiration time in seconds.

Returns: str: The ID of the added entry or an error message.

Input Schema

NameRequiredDescriptionDefault
expirationNo
fieldsYes
keyYes

Input Schema (JSON Schema)

{ "properties": { "expiration": { "default": null, "title": "Expiration", "type": "integer" }, "fields": { "title": "Fields", "type": "object" }, "key": { "title": "Key", "type": "string" } }, "required": [ "key", "fields" ], "title": "xaddArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/redis/mcp-redis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server