Skip to main content
Glama
redis

Redis MCP Server

Official
by redis

client_list

Retrieve a list of all active clients connected to the Redis server for real-time monitoring and management of connections.

Instructions

Get a list of connected clients to the Redis server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'client_list' tool. It is decorated with @mcp.tool() for registration and retrieves the list of connected Redis clients using RedisConnectionManager, returning the list or an error message on failure.
    @mcp.tool() async def client_list() -> list: """Get a list of connected clients to the Redis server.""" try: r = RedisConnectionManager.get_connection() clients = r.client_list() return clients except RedisError as e: return f"Error retrieving client list: {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