Skip to main content

Add Redis Tool to AI Agent

Quick Start

1

Install Dependencies

Make sure you have Node.js installed, as the MCP server requires it:
2

Set up Redis

Ensure you have Redis running locally or specify your Redis connection URL.
3

Create a file

Create a new file redis_agent.py with the following code:
4

Run the Agent

Execute your script:
Requirements
  • Python 3.10 or higher
  • Node.js installed on your system
  • Redis server running locally or remotely
  • OpenAI API key (for the agent’s LLM)