Recall MCP Server

Recall MCP Server

site icon
2025.04.11 5
TypeScript区块链存储安全交互金融服务
Recall MCP Server 是一个基于 Model Context Protocol (MCP) 的服务实现,专为 Recall 网络操作设计。它允许 Cursor、Claude Desktop 及其他兼容 MCP 的客户端与 Recall 服务进行交互,执行区块链存储操作。该服务提供了账户操作、存储桶操作和对象操作等功能,并强调了对私钥等敏感信息的多层安全保护。
View on GitHub

Overview

基本能力

产品定位

Recall MCP Server 是一个为 Recall 网络操作设计的 MCP 服务器实现,专注于区块链存储操作的安全交互。

核心功能

  • 账户操作
  • 获取账户信息
  • 获取信用余额
  • 购买信用

  • 存储桶操作

  • 列出所有存储桶
  • 创建新存储桶

  • 对象操作

  • 从存储桶获取对象
  • 向存储桶添加对象
  • 列出存储桶内的对象

适用场景

  • 在 Cursor 或 Claude Desktop 中安全地与 Recall 网络交互
  • 执行区块链相关的存储操作
  • 需要多层安全保护的敏感操作环境

工具列表

工具名称 描述 参数
get_account 获取 Recall 账户信息
get_balance 获取 Recall 账户余额信息
buy_credit 为 Recall 账户购买信用 amount: String (Recall Network token 数量)
list_buckets 列出 Recall 中的所有存储桶
create_bucket 在 Recall 中创建新存储桶 alias: String
list_bucket_objects 列出 Recall 存储桶中的所有对象 bucket: String (地址)
get_object 从 Recall 存储桶获取对象 bucket: String (地址), key: String
add_object 向 Recall 存储桶添加对象 bucket: String (地址), key: String, data: String, overwrite?: Boolean
security_guidance 获取安全指导而不暴露敏感数据 query: String

常见问题解答

  • 如何保护私钥?
  • 永远不要分享您的私钥或 .env 文件内容
  • 永远不要运行显示私钥的命令
  • 永远不要允许 LLM 直接执行 shell 命令
  • 如果使用 .env 文件,请设置限制权限:chmod 600 .env

使用教程

使用依赖

  1. 确保已安装 Node.js 和 npm

安装教程

  1. 克隆仓库
  2. 安装依赖: bash npm install
  3. 配置方法选择:
  4. 方法1(推荐):在 Cursor/Claude 配置中直接提供环境变量
  5. 方法2(备用):使用 .env 文件 bash cp .env.example .env # 编辑 .env 文件 chmod 600 .env

调试方式

  1. 构建并运行: bash npm run build npm run start
  2. 开发模式: bash npm run dev
  3. 注意:开发时使用 console.error() 而非 console.log() 进行调试

添加到 Cursor/Claude Desktop

Cursor

  1. 构建项目:npm run build
  2. 在 Cursor 设置 > MCP Servers 中添加服务器
  3. 配置服务器参数

Claude Desktop

  1. 构建项目:npm run build
  2. 编辑 Claude Desktop 配置文件
  3. 添加服务器配置并重启

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。