Redis MCP Server
Redis MCP 서버
Redis 데이터베이스 작업에 대한 액세스를 제공하는 MCP(Model Context Protocol) 서버입니다.
프로젝트 구조
지엑스피1
Related MCP server: Redis MCP
사용 가능한 도구
도구 | 유형 | 설명 | 입력 스키마 |
hmset | 해시 명령 | 여러 해시 필드를 여러 값으로 설정 |
|
hget | 해시 명령 | 해시 필드의 값을 가져옵니다 |
|
hgetall | 해시 명령 | 해시의 모든 필드와 값을 가져옵니다. |
|
주사 | 키 명령 | 패턴과 일치하는 Redis 키 스캔 |
|
세트 | 문자열 명령 | NX 및 PX 옵션으로 문자열 값 설정 |
|
얻다 | 문자열 명령 | 문자열 값 가져오기 |
|
델 | 키 명령 | 키 삭제 |
|
자드 | 정렬된 세트 명령 | 정렬된 세트에 하나 이상의 멤버 추가 |
|
즈랜지 | 정렬된 세트 명령 | 인덱스로 정렬된 세트에서 멤버 범위를 반환합니다. |
|
zrangebyscore | 정렬된 세트 명령 | 최소값과 최대값 사이의 점수를 갖는 정렬된 세트에서 멤버를 반환합니다. |
|
즈렘 | 정렬된 세트 명령 | 정렬된 세트에서 하나 이상의 멤버 제거 |
|
사드 | 명령 설정 | 세트에 하나 이상의 멤버 추가 |
|
스멤버스 | 명령 설정 | 모든 멤버를 한 세트로 모으세요 |
|
용법
MCP 클라이언트(예: Claude Desktop, Cline)에서 구성:
{
"mcpServers": {
"redis": {
"command": "npx",
"args": ["redis-mcp", "--redis-host", "localhost", "--redis-port", "6379"],
"disabled": false
}
}
}명령줄 인수
--redis-host: Redis 서버 호스트(기본값: localhost)--redis-port: Redis 서버 포트(기본값: 6379)
Smithery를 통해 설치
Smithery를 통해 Claude Desktop에 Redis Server를 자동으로 설치하려면:
npx -y @smithery/cli install redis-mcp --client claude개발
새로운 Redis 도구를 추가하려면:
src/tools/에RedisTool확장하는 새 도구 클래스를 만듭니다.src/interfaces/types.ts에 도구 인터페이스를 정의합니다.src/tools/tool_registry.ts에 도구를 등록합니다.
도구 구현 예시:
export class MyTool extends RedisTool {
name = 'mytool';
description = 'Description of what the tool does';
inputSchema = {
type: 'object',
properties: {
// Define input parameters
},
required: ['requiredParam']
};
validateArgs(args: unknown): args is MyToolArgs {
// Implement argument validation
}
async execute(args: unknown, client: RedisClientType): Promise<ToolResponse> {
// Implement tool logic
}
}특허
Available Tools
13 toolsdelC
Delete a key
Inputs: key (required).
getD
Get string value
Inputs: key (required).
hgetC
Get the value of a hash field
Inputs: field (required), key (required).
hgetallC
Get all the fields and values in a hash
Inputs: key (required).
hmsetC
Set multiple hash fields to multiple values
Inputs: fields (required), key (required).
saddC
Add one or more members to a set
Inputs: key (required), members (required).
scanC
Scan Redis keys matching a pattern
Inputs: pattern (required), count.
setC
Set string value with optional NX (only if not exists) and PX (expiry in milliseconds) options
Inputs: key (required), value (required), nx, px.
smembersC
Get all members in a set
Inputs: key (required).
zaddC
Add one or more members to a sorted set
Inputs: key (required), members (required).
zrangeC
Return a range of members from a sorted set by index
Inputs: key (required), start (required), stop (required), withScores.
zrangebyscoreC
Return members from a sorted set with scores between min and max
Inputs: key (required), max (required), min (required), withScores.
zremC
Remove one or more members from a sorted set
Inputs: key (required), members (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes targeting different Redis data types and operations, with minimal overlap. However, 'get' and 'set' for strings versus 'hget' and 'hmset' for hashes follow similar patterns but are differentiated by the 'h' prefix, which could cause minor confusion for agents unfamiliar with Redis naming conventions.
The tool names are highly consistent, following Redis command conventions with lowercase, concise verb-based names (e.g., 'get', 'set', 'del', 'sadd', 'zadd'). All tools adhere to this pattern without mixing styles, making them predictable and easy to interpret.
With 13 tools, this server is well-scoped for Redis operations, covering key data types (strings, hashes, sets, sorted sets) and essential commands. The count is appropriate, providing a focused set without being overwhelming or too sparse for the domain.
The tool set offers strong coverage for core Redis operations, including CRUD-like actions for multiple data types and scanning. Minor gaps exist, such as missing list operations (e.g., 'lpush', 'lrange') and transaction commands, but agents can still handle many common workflows effectively.
Maintenance
Related MCP Connectors
Cross-tool persistent memory and context for AI assistants over MCP.
Read and write shared BitsWeave context, projects, tasks, and work sessions through MCP.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceProvides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.30MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to perform comprehensive Redis database operations including managing strings, hashes, lists, sets, sorted sets, TTL management, and data backup/restore. Supports secure connections and provides batch operations for efficient Redis interaction through natural language.3411 npm2MIT
- AlicenseBqualityDmaintenanceProvides comprehensive Redis database operations supporting all major data types (strings, lists, sets, hashes, sorted sets) with full CRUD functionality through natural language commands.9MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol (MCP) server for Redis. Connect to any Redis instance and execute queries through AI assistants.3MIT