Skip to content

skeet-build/redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis

A Model Context Protocol server that provides read-only access to Redis databases. This server enables LLMs to inspect Redis and execute Redis commands.

To learn more about MCP Servers see:

This Redis MCP Server was designed for seamless integration with skeet.build

Components

Tools

  • query
    • Execute Redis commands against the connected database
    • Input: command (string): The Redis command to execute
    • Supported commands include:
      • Read-only commands (GET, KEYS, SCAN, HGETALL, etc.)
      • SET read operations: SINTER, SUNION, SDIFF, SRANDMEMBER
      • SET write operations: SADD, SREM, SPOP, SMOVE, SINTERSTORE, SUNIONSTORE, SDIFFSTORE

Resources

The server provides information about Redis keys:

  • Redis Keys (redis://<host>/keys)

    • List of all keys in the Redis database with their types
  • Key Schemas (redis://<host>/<key>/schema)

    • JSON schema information for each key
    • Includes key type and type-specific metadata
    • For strings: the value
    • For lists/sets/sorted sets: length, members (for smaller sets)
    • For hashes: fields and values

Usage with Claude Desktop

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

NPX

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@skeetbuild/redis",
        "redis://localhost:6379/0"
      ]
    }
  }
}

Replace redis://localhost:6379/0 with your Redis connection string.

Usage with Cursor

To use this server with Cursor, add the following configuration to your global (~/.cursor/mcp.json) or project-specific (.cursor/mcp.json) configuration file:

Global Configuration

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@skeetbuild/redis",
        "redis://localhost:6379/0"
      ]
    }
  }
}

For more details on setting up MCP with Cursor, see the Cursor MCP documentation.

Usage with GitHub Copilot in VS Code

To use this server with GitHub Copilot in VS Code, add a new MCP server using the VS Code command palette:

  1. Press Cmd+Shift+P and search for "Add MCP Server"
  2. Select "SSE MCP Server" and use the following configuration:
{
  "mcp": {
    "servers": {
      "redis": {
        "command": "npx",
        "args": [
          "-y",
          "@skeetbuild/redis",
          "redis://localhost:6379/0"
        ]
      }
    }
  }
}

For detailed setup instructions, see the GitHub Copilot MCP documentation.

Usage with Windsurf

To use this server with Windsurf, add the following configuration to your Windsurf MCP settings:

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": [
        "-y",
        "@skeetbuild/redis",
        "redis://localhost:6379/0"
      ]
    }
  }
}

For more information on configuring MCP with Windsurf, refer to the Windsurf MCP documentation.

Acknowledgements

This server is inspired by the PostgreSQL MCP server from the modelcontextprotocol project.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published