Redis Cache MCP Tool: Claude Code, Cursor Prompt

MCPMCP

Redis Cache MCP Tool: Claude Code, Cursor Prompt

Create a Redis MCP tool that exposes get, set, delete, scan, and TTL management for agent loops

Write the TypeScript implementation for a Redis MCP tool for [YOUR_PROJECT].

Tools to expose:
**get**: Input: key string. Returns the value or null.
**set**: Input: key string, value string, ttl_seconds optional integer
TLDR

Redis MCP tool for Claude Code that exposes cache get, set, delete, scan, and TTL operations. Useful for agent loop state management and caching expensive API responses between runs.

How to use

  1. 1

    Replace [YOUR_PROJECT] and [YOUR_NAMESPACE] with your actual project name and desired namespace to ensure the generated TypeScript code is tailored to your specific application context.

  2. 2

    Try adjusting the optional parameters like ttl_seconds in the set method to explore how different configurations affect your Redis cache performance in the MCP tool.

  3. 3

    Follow up by testing each method in the generated code to verify functionality and ensure compliance with your project's requirements and Redis setup.

Frequently asked questions

What is the Redis Cache MCP Tool: Claude Code, Cursor Prompt prompt used for?

Redis MCP tool for Claude Code that exposes cache get, set, delete, scan, and TTL operations. Useful for agent loop state management and caching expensive API responses between runs.

How do I get the best results from this database mcp prompt?

Paste the prompt into Claude Code, Cursor, fill in every bracketed placeholder with your specific information, then submit. The more detail you add to each placeholder, the more targeted the output. You can continue in the same conversation to refine tone, length, or focus without restarting from scratch.

Does this prompt work with Claude Code?

Yes. This prompt is optimized for Claude Code and also works well with Cursor. The structured format with a defined role and numbered steps produces consistent results across all major instruction-following models, so you can use whichever tool you prefer.

How do I access this mcp prompt?

This database mcp prompt is available through TopFreePrompts with a Lucy+ licence. You can get access with a one-time Lucy+ purchase for $109, or a $15/month plan you can cancel anytime. Both options give access to the full library of 1,000,000+ prompts across all categories.

More MCP Prompts

View all

Related Prompts

View all