Redis MCP Server

Redis MCP Server

redis
GitHubnpm

About

A natural language interface designed for agentic applications to efficiently manage and search data in Redis. It integrates seamlessly with MCP clients, enabling AI-driven workflows to interact with structured and unstructured data in Redis.

Features

  • Natural Language Queries: Enables AI agents to query and update Redis using natural language
  • Full Redis Support: Handles hashes, lists, sets, sorted sets, streams, and more
  • Search & Filtering: Supports efficient data retrieval and searching in Redis
  • EntraID Authentication: Native support for Azure Active Directory authentication with Azure Managed Redis
  • Scalable & Lightweight: Designed for high-performance data operations

Tools

This MCP Server provides comprehensive tools to manage data stored in Redis:

  • String tools: Set, get strings with expiration. Useful for storing simple configuration values, session data, or caching responses.
  • Hash tools: Store field-value pairs within a single key. The hash can store vector embeddings. Useful for representing objects with multiple attributes, user profiles, or product information.
  • List tools: Common operations to append and pop items. Useful for queues, message brokers, or maintaining a list of most recent actions.
  • Set tools: Add, remove and list set members. Useful for tracking unique values like user IDs or tags, and for performing set operations.
  • Sorted set tools: Manage data for leaderboards, priority queues, or time-based analytics with score-based ordering.
  • Pub/sub: Publish messages to channels and subscribe to receive them. Useful for real-time notifications, chat applications, or distributing updates.
  • Streams tools: Add, read, delete, create and destroy consumer groups, and acknowledge processed entries in data streams. Useful for event sourcing and activity feeds.
  • JSON tools: Store, retrieve, and manipulate JSON documents in Redis. Useful for complex nested data structures and document databases.
  • Docs tool: Search Redis documentation, tutorials, and best practices using natural language questions.
  • Query engine tools: Manage vector indexes and perform vector search.
  • Server management tools: Retrieve information about the database.

Authentication

Supports multiple authentication methods:

  • Standard Redis username/password
  • SSL/TLS connections
  • EntraID (Azure Active Directory) for Azure Managed Redis with Service Principal, Managed Identity, or Default Azure Credential flows

URL Specification

The server accepts Redis connection URLs in the following formats:

redis://user:secret@localhost:6379/0
rediss://user:secret@localhost:6379/0?ssl_cert_reqs=required&ssl_ca_certs=path_to_cert

Use redis:// for standard connections and rediss:// for encrypted connections.

This server runs through your single 1Server connection. No extra config required.

0Installs
511Stars

Categories

DatabaseDataCloud

Tags

Official