npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcpp-redis

v1.0.1

Published

MCPP Redis MCP Server - AI 助手直接操作 Redis 数据库,支持 SSH 隧道

Readme

mcpp-redis

Redis MCP Server - 让 AI 助手直接操作 Redis 数据库

功能

支持 Redis 常用数据类型操作:

| 类别 | 工具 | 功能 | |------|------|------| | String | get | 获取值 | | | set | 设置值(支持 TTL) | | | del | 删除键 | | | keys | 搜索键(支持通配符) | | Hash | hget | 获取 Hash 字段 | | | hset | 设置 Hash 字段 | | | hgetall | 获取 Hash 所有字段 | | List | lpush | 列表左侧插入 | | | rpush | 列表右侧插入 | | | lrange | 获取列表范围 | | Set | sadd | 集合添加成员 | | | smembers | 获取集合所有成员 | | 通用 | ttl | 获取过期时间 | | | expire | 设置过期时间 | | | info | 获取 Redis 信息 |

配置

{
  "mcpServers": {
    "redis": {
      "command": "npx",
      "args": ["-y", "mcpp-redis@latest"],
      "env": {
        "MCP_ACCESS_KEY": "your-access-key",
        "REDIS_HOST": "localhost",
        "REDIS_PORT": "6379",
        "REDIS_PASSWORD": "",
        "REDIS_DB": "0"
      }
    }
  }
}

环境变量

| 变量 | 说明 | 默认值 | |------|------|--------| | MCP_ACCESS_KEY | 访问密钥(必填) | - | | REDIS_HOST | Redis 主机 | localhost | | REDIS_PORT | Redis 端口 | 6379 | | REDIS_PASSWORD | Redis 密码 | 空 | | REDIS_DB | 数据库编号 | 0 |

使用示例

# String 操作
set user:1:name "张三" 3600    # 设置值,1小时过期
get user:1:name                 # 获取值
keys user:*                     # 搜索所有 user: 开头的键

# Hash 操作
hset user:1 name "张三"         # 设置 Hash 字段
hset user:1 age "25"
hgetall user:1                  # 获取所有字段

# List 操作
lpush queue:tasks "task1"       # 左侧插入
rpush queue:tasks "task2"       # 右侧插入
lrange queue:tasks 0 -1         # 获取全部

# Set 操作
sadd tags:post:1 "vue"          # 添加标签
sadd tags:post:1 "typescript"
smembers tags:post:1            # 获取所有标签

# 通用操作
ttl user:1:name                 # 查看剩余过期时间
expire user:1 7200              # 设置2小时后过期
info memory                     # 查看内存信息

获取 Access Key

访问 https://mcp.hxstudio.website 注册获取

License

MIT