Skip to main content
Glama

Redis MCP 서버(@gongrzhe/server-redis-mcp@1.0.0)

대장간 배지

Redis 데이터베이스와 상호 작용하기 위한 Redis 모델 컨텍스트 프로토콜(MCP) 서버 구현입니다. 이 서버를 통해 LLM은 표준화된 도구 세트를 통해 Redis 키-값 저장소와 상호 작용할 수 있습니다.

업데이트

https://github.com/GongRzhe/REDIS-MCP-Server/tree/redis-plus 에 있는 62개의 Redis MCP 도구

Related MCP server: Redis MCP

설치 및 사용

Smithery를 통해 설치

Smithery를 통해 Claude Desktop에 Redis MCP 서버를 자동으로 설치하려면:

지엑스피1

수동 설치

# Using npx with specific version (recommended)
npx @gongrzhe/server-redis-mcp@1.0.0 redis://your-redis-host:port

# Example:
npx @gongrzhe/server-redis-mcp@1.0.0 redis://localhost:6379

또는 전역적으로 설치:

# Install specific version globally
npm install -g @gongrzhe/server-redis-mcp@1.0.0

# Run after global installation
@gongrzhe/server-redis-mcp redis://your-redis-host:port

구성 요소

도구

  • 세트

    • 선택적 만료를 사용하여 Redis 키-값 쌍을 설정합니다.

    • 입력:

      • key (문자열): Redis 키

      • value (문자열): 저장할 값

      • expireSeconds (숫자, 선택 사항): 만료 시간(초)

  • 얻다

    • Redis에서 키로 값 가져오기

    • 입력: key (문자열): 검색할 Redis 키

  • 삭제

    • Redis에서 하나 이상의 키 삭제

    • 입력: key (문자열 | 문자열[]): 삭제할 키 또는 키 배열

  • 목록

    • 패턴과 일치하는 Redis 키 나열

    • 입력: pattern (문자열, 선택 사항): 키와 일치하는 패턴(기본값: *)

구성

Claude Desktop과 함께 사용

Claude Desktop 앱과 함께 이 서버를 사용하려면 claude_desktop_config.json 의 "mcpServers" 섹션에 다음 구성을 추가하세요.

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "@gongrzhe/server-redis-mcp@1.0.0",
        "redis://localhost:6379"
      ]
    }
  }
}

또는 패키지가 설치되어 있다면 node 명령을 직접 사용할 수 있습니다.

{
  "mcpServers": {
    "redis": {
      "command": "node",
      "args": [
        "path/to/build/index.js",
        "redis://10.1.210.223:6379"
      ]
    }
  }
}

Docker 사용법

Docker를 사용하는 경우:

  • macOS의 경우 Redis 서버가 호스트 네트워크에서 실행 중이면 host.docker.internal 사용합니다.

  • Redis URL은 인수로 지정할 수 있으며 기본값은 "redis://localhost:6379"입니다.

{
  "mcpServers": {
    "redis": {
      "command": "docker",
      "args": [
        "run", 
        "-i", 
        "--rm", 
        "mcp/redis", 
        "redis://host.docker.internal:6379"
      ]
    }
  }
}

개발

소스에서 빌드

  1. 저장소를 복제합니다

  2. 종속성 설치:

    npm install
  3. 프로젝트를 빌드하세요:

    npm run build

도커 빌드

docker build -t mcp/redis .

특허

이 MCP 서버는 ISC 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 프로젝트 저장소의 LICENSE 파일을 참조하세요.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A server that provides Claude with Redis database access and operations through a set of tools for basic operations, lists, hashes, sets, and pub/sub functionality.
      25
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      34
      11 npm
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI to safely view and operate Redis databases with read-only mode by default and support for key operations.
      11
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to manage and search data in Redis using natural language. Supports hashes, lists, sets, sorted sets, streams, JSON, and vector search.
      44
      MIT