MCP Catalogs
首页mcp-ipfs screenshot

mcp-ipfs

by alexbakers·16·综合分 35

一个MCP服务器,包装w3 CLI,使语言模型能够通过storacha.network与IPFS交互。

cloud-storagedeveloper-toolsfile-system
12
Forks
3
活跃 Issue
13 个月前
最近提交
2 天前
收录于

概述

此MCP服务器实现了模型上下文协议,通过storacha.network平台提供IPFS功能访问。它封装了w3 CLI,暴露了各种工具用于空间管理、数据操作、委托和账户管理。该服务器使用TypeScript编写,代码组织良好,包含适当的工具参数模式定义和每个MCP工具的实现。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:让AI助手管理IPFS空间和上传文件
:使语言模型能够生成和分享w3s链接
:为AI提供管理Web3存储委托和证明的能力
:为什么某些命令需要提供绝对路径?
:我可以使用Docker运行此服务器吗?

什么时候选它

当通过 storacha.network 使用 IPFS 并需要 AI 集成来管理去中心化内容时,选择此 MCP 服务器,特别是如果您已经在使用 w3 CLI。

什么时候不要选它

如果您需要直接访问 IPFS 而不使用 storacha.network 抽象,或者在容器化环境中需要文件系统路径处理(这可能很复杂),请避免使用此服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • w3_login

    Authenticate with storacha.network using the email specified in W3_LOGIN_EMAIL

  • w3_space_ls

    List all available spaces in the current storacha network account

  • w3_space_use

    Set the current active space for subsequent operations

  • w3_space_info

    Retrieve information about a specific space

  • w3_up

    Upload files or directories to the current space

  • w3_ls

    List the contents of the current space

  • w3_open

    Generate a w3s.link URL for accessing content in the current space

  • w3_delegation_create

    Create a delegation to grant access to specific space content

  • w3_key_create

    Create a new key for access to storacha network services

  • w3_plan_get

    Retrieve information about the current account plan

  • w3_usage_report

    Generate a usage report for the current account

  • w3_rm

    Remove files from the current space

可对比工具

ipfs-http-client-mcpweb3-storage-mcpshell-mcp

安装

安装

  1. 安装先决条件:

- Node.js 22.0.0或更高版本 - w3 CLI:npm install -g @web3-storage/w3cli - 配置w3:w3 login <your-email@example.com>

  1. 设置环境变量:

export W3_LOGIN_EMAIL="your-email@example.com"

  1. 配置您的MCP客户端:
{
  "mcpServers": {
    "ipfs": {
      "command": "npx",
      "args": ["-y", "mcp-ipfs"],
      "env": {
        "W3_LOGIN_EMAIL": "your-email@example.com"
      }
    }
  }
}

FAQ

为什么某些命令需要提供绝对路径?
几个w3命令需要绝对文件系统路径才能正常运行,特别是在处理上传文件或创建委托时。
我可以使用Docker运行此服务器吗?
可以,该项目提供Docker镜像(alexbakers/mcp-ipfs),并在README中包含Docker使用说明。

mcp-ipfs 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。