Redis MCP Server
Redis MCP 서버
Redis 데이터베이스 작업에 대한 액세스를 제공하는 MCP(Model Context Protocol) 서버입니다.
프로젝트 구조
지엑스피1
Related MCP server: Redash MCP Server
사용 가능한 도구
도구 | 유형 | 설명 | 입력 스키마 |
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
}
}특허
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/farhankaz/redis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server