Skip to main content
Glama

Redis MCP Server

by farhankaz

set

Store a string value in Redis using MCP, with options to set expiry in milliseconds and ensure the key does not already exist.

Instructions

Set string value with optional NX (only if not exists) and PX (expiry in milliseconds) options

Input Schema

NameRequiredDescriptionDefault
keyYesKey to set
nxNoOnly set if key does not exist
pxNoSet expiry in milliseconds
valueYesValue to set

Input Schema (JSON Schema)

{ "properties": { "key": { "description": "Key to set", "type": "string" }, "nx": { "description": "Only set if key does not exist", "type": "boolean" }, "px": { "description": "Set expiry in milliseconds", "type": "number" }, "value": { "description": "Value to set", "type": "string" } }, "required": [ "key", "value" ], "type": "object" }

Other Tools from Redis MCP Server

Related Tools

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/farhankaz/redis-mcp'

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