Provides access to Redis data operations via MCP for easy integration with client applications.
Configuration
View docs{
"mcpServers": {
"farhankaz-redis-mcp": {
"command": "npx",
"args": [
"redis-mcp",
"--redis-host",
"localhost",
"--redis-port",
"6379"
]
}
}
}You can access and manipulate Redis data through a dedicated MCP (Model Context Protocol) server. This server exposes Redis operations as simple, tool-based actions you can invoke from your MCP client, making it easy to build integrations that read, write, and query Redis data without writing Redis commands directly.
Connect to the Redis MCP server from your MCP client and start issuing Redis operations as individual tools. You will call each tool by name (for example hmset, hget, get, set, zadd, zrange, etc.) and pass the required parameters as defined by each toolβs input. The server handles the underlying Redis interaction, returning results or error information that your client can process.
Prerequisites: you need Node.js and npm installed on your machine. You can verify installations with node -v and npm -v.
Install the Redis MCP server client tooling via Smithery. The provided command installs the Redis MCP server client and registers it for your MCP workflow.
npx -y @smithery/cli install redis-mcp --client claudeTo connect your MCP client to a running Redis instance, configure the Redis MCP server entry in your MCP client with the following stdio command. This runs the Redis MCP toolset locally using npx and passes the Redis host and port to the server.
{
"mcpServers": {
"redis": {
"command": "npx",
"args": ["redis-mcp", "--redis-host", "localhost", "--redis-port", "6379"]
}
}
}By default, the Redis MCP server connects to a Redis instance on localhost:6379. If you run Redis on a different host or port, update the --redis-host and --redis-port options accordingly. Ensure your MCP client limits access to trusted applications and, if needed, applies authentication to Redis separately.
Set multiple hash fields to multiple values in a Redis hash key.
Get the value of a single field from a Redis hash key.
Get all fields and values from a Redis hash key.
Scan Redis keys matching a specified pattern with optional count limit.
Set a string value for a key with optional NX and PX (expiry) options.
Get the string value of a key.
Delete a key from Redis.
Add one or more members to a sorted set with scores.
Return a range of members from a sorted set by index, with optional scores.
Return members from a sorted set with scores within a specified range, with optional scores.
Remove one or more members from a sorted set.
Add one or more members to a set.
Get all members of a set.