Redis Cloud API MCP Server

Official

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used for package building and installation during setup, but not a primary integration target of the MCP server's functionality.

  • Listed as a development prerequisite for managing Node versions, but not a service the MCP server integrates with for its primary functionality.

  • Enables management of Redis Cloud resources, including account management, subscription management (Pro and Essential), database capabilities configuration, cloud provider selection, and task monitoring through the Redis Cloud API.

Redis 云 API MCP 服务器

模型上下文协议 (MCP) 是用于管理大型语言模型 (LLM) 与外部系统之间上下文的标准化协议。本代码库为 Redis Cloud 的 API 提供了一个 MCP 服务器,让您可以使用自然语言管理 Redis Cloud 资源。

这使您可以使用 Claude Desktop 或任何 MCP 客户端使用自然语言来完成 Redis Cloud 帐户上的事情,例如:

  • “在 AWS 中创建一个新的 Redis 数据库”
  • “我目前订阅了哪些内容?”
  • “帮我为我的电子商务应用程序选择合适的 Redis 数据库”

特征

账户管理

  • get_current_account :获取有关当前 Redis Cloud 帐户的详细信息
  • get_current_payment_methods :列出为您的帐户配置的所有付款方式

订阅管理

专业订阅

  • get_pro_subscriptions :列出您帐户中的所有 Pro 订阅
  • create_pro_subscription :使用高级配置选项创建新的 Pro 订阅
    • 支持多云部署
    • 配置内存、持久性和模块
    • 设置主动-主动部署
    • 自定义网络配置

基本订阅

  • get_essential_subscriptions :列出所有基本订阅(分页)
  • get_essential_subscription_by_id :获取有关特定 Essential 订阅的详细信息
  • create_essential_subscription :创建一个新的基本订阅
  • delete_essential_subscription :删除基本订阅

数据库功能

  • get_database_modules :列出您的帐户支持的所有可用数据库模块(功能)
    • Redis 模块
    • 数据库功能
    • 性能选项

云提供商管理

  • get_pro_plans_regions :获取跨云提供商的可用区域
    • AWS 区域
    • GCP 区域
    • 网络选项
    • 可用区域

计划和定价

  • get_essentials_plans :列出可用的基本订阅计划(分页)
    • 支持 AWS、GCP 和 Azure
    • Redis Flex 选项
    • 固定计划

任务管理

  • get_tasks :列出您帐户中所有当前任务
  • get_task_by_id :获取特定任务的详细信息
    • 跟踪部署状态
    • 监控订阅变化
    • 查看任务进度

用法

先决条件

  • 有效的 Redis Cloud API 凭据(API 密钥和密钥)
  • 长时间运行的操作会返回任务 ID,并且可以进行监控
  • 分页响应需要多次调用才能检索所有数据

克劳德桌面

要使用 Claude Desktop 运行 MCP 服务器,请按照以下步骤操作:

  1. 构建包:
    npm run build
  2. 将服务器添加到 Claude Desktop:
    • 打开 Claude 桌面设置
    • 导航到“开发者”选项卡(确保已启用开发者模式)
    • 点击“编辑配置”
    • 在文本编辑器中打开claude_desktop_config.json文件并添加以下配置:GXP2
  3. 关闭 Claude Desktop 并重新启动。服务器现在应该可以在 MCP 服务器部分中使用。

游标 IDE

要使用 Cursor IDE 运行 MCP 服务器,请按照以下步骤操作:

  1. 构建包:
    npm run build
  2. 将服务器添加到 Cursor:
    • 打开游标设置
    • 导航至 MCP 选项卡
    • 点击“添加新的全局 MCP 服务器”
    • 使用以下配置更新自动打开的mcp.json文件:GXP4
  3. 重启 Cursor。服务器现在应该可以在 MCP 服务器部分中访问了。

发展

先决条件

  1. nvm(节点版本管理器)
  2. 节点 v22.14.0
  3. npm 10.9.2

入门

  1. 安装依赖项:
    nvm use v22.14.0 npm install
  2. 构建项目:
    npm run build
  3. 使用 MCP 检查器进行测试:
    npx @modelcontextprotocol/inspector node dist/index.js --api-key=<api_key> --secret-key=<secret_key>

项目结构

src/ ├── index.ts # Entry point ├── clients/ # API Clients for external services │ └── generated # Generated Redis Cloud API client └── tools/ # Tool implementations └── accounts/ # Account tools └── subscriptions/ # Subscription tools └── tasks/ # Task tools

注意:如果您更改了代码,请记住重建并重新启动 Claude Desktop/Cursor:

npm run build
ID: y2i464x437