Skip to main content
Glama
redis

Redis MCP Server

Official
by redis

info

Retrieve Redis server information and statistics, including memory usage, CPU metrics, and performance data, to monitor and analyze database health and configuration.

Instructions

Get Redis server information and statistics.

Args: section: The section of the info command (default, memory, cpu, etc.).

Returns: A dictionary of server information or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNodefault

Implementation Reference

  • The main handler function for the 'info' MCP tool. It uses the RedisConnectionManager to get a connection and calls r.info(section) to retrieve server information, returning it as a dict or an error string.
    @mcp.tool() async def info(section: str = "default") -> dict: """Get Redis server information and statistics. Args: section: The section of the info command (default, memory, cpu, etc.). Returns: A dictionary of server information or an error message. """ try: r = RedisConnectionManager.get_connection() info = r.info(section) return info except RedisError as e: return f"Error retrieving Redis info: {str(e)}"

Latest Blog Posts

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