Skip to main content
Glama

mcp-ipfs

by alexbakers

🪐 MCP IPFS サーバー (storacha.network) 🛰️

スクリーンショット

w3コマンドライン インターフェイス ( @web3-storage/w3cli ) を介してstoracha.networkプラットフォームと対話するためのModel Context Protocol (MCP)を実装する Node.js サーバー。

このサーバーは、言語モデル 🤖 やその他の MCP クライアントが storacha.network スペースを管理し、データをアップロード/ダウンロードし、委任を管理し、 w3コマンドをシームレスにラップすることでさまざまな他のタスクを実行できるようにします。

✨ 特徴

  • storacha.network とのネイティブ統合のためにw3 CLI をラップします。
  • 幅広いw3機能をカバーする MCP ツールを提供します。
    • 🔑認証とエージェント: w3_loginw3_resetw3_account_ls (認証チェック用)
    • 📦スペース管理: w3_space_lsw3_space_usew3_space_infow3_space_addw3_space_provision (注: w3_space_create対話型プロンプトのため手動で実行する必要があります)
    • 💾データ管理: w3_upw3_lsw3_rm
    • 🔗共有: w3_open (w3s.link URL を生成)
    • 🤝委任と証明: w3_delegation_createw3_delegation_lsw3_delegation_revokew3_proof_addw3_proof_ls
    • 🔐キーとトークン: w3_key_createw3_bridge_generate_tokens
    • ⚙️高度なストレージ ( w3 can ... ): Blob、CAR、アップロード、インデックス、アクセス要求、Filecoin 情報管理
    • 💳アカウントと請求: w3_plan_getw3_coupon_createw3_usage_report

🛠️ 前提条件

  • **Node.js:**バージョン 22.0.0 以上 ( node -v )。
  • **w3 CLI:**サーバーはw3コマンドを直接実行します。 @web3-storage/w3cliがグローバルにインストールされ、設定されていることを確認してください。
    npm install -g @web3-storage/w3cli w3 login <your-email@example.com> # Follow email verification steps
  • 環境変数: w3_loginツールでは、 W3_LOGIN_EMAIL環境変数をw3 loginに使用するのと同じ電子メールに設定する必要があります。

🏗️ プロジェクト構造

コードベースは次のように構成されています。

src/ ├── index.ts # Main server entry point, MCP setup, request routing ├── schemas.ts # Zod schemas defining input arguments for each tool ├── tool_handlers.ts # Implementation logic for each MCP tool ├── utils.ts # Helper functions (e.g., running w3 commands, parsing JSON) └── utils/ └── logger.ts # Basic logger configuration

🚀 MCP クライアントでの使用

このサーバーは、MCP互換のクライアントであればどれでも使用できます。このサーバーに接続するには、クライアントを設定する必要があります。

例: NPX (単純なローカル使用に推奨)

これは、 npmと前提条件が満たされていることを前提としています。

{ "mcpServers": { "ipfs": { "command": "npx", "args": ["-y", "mcp-ipfs"], "env": { "W3_LOGIN_EMAIL": "your-email@example.com" } } } }

例: Docker

最初にイメージをビルドするか (ビルド セクションを参照)、事前にビルドされたイメージalexbakers/mcp-ipfsを使用します。

{ "mcpServers": { "mcp-ipfs": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/path/to/your/project:/path/to/your/project", "-e", "W3_LOGIN_EMAIL", "alexbakers/mcp-ipfs" ], "env": { "W3_LOGIN_EMAIL": "your-email@example.com" } } } }
📝 パスに関する注意:

いくつかのw3コマンドでは絶対ファイルシステム パスが必要です (例: w3_upw3_delegation_create --outputw3_proof_addw3_can_blob_addw3_can_store_add )。

  • **NPX:**ホスト マシンからの絶対パスを指定します。
  • Docker: コンテナ内の絶対パスを指定します。ホストからファイルを操作する(アップロードなど)場合は、 -vフラグ(例: -v /Users/me/project:/Users/me/project )を使用して関連するホストディレクトリをコンテナにマウントし、ツール引数でコンテナパス(例: /Users/me/project/my_file.txt )を使用する必要があります。

📦 ビルド

リポジトリをクローンし、依存関係をインストールします。

git clone https://github.com/alexbakers/mcp-ipfs.git cd mcp-ipfs npm install

TypeScript コードをビルドします。

npm run build

その後、サーバーを直接実行できます。

# Ensure W3_LOGIN_EMAIL is set in your environment export W3_LOGIN_EMAIL="your-email@example.com" node dist/index.js

または公開します(権利がある場合)。

npm publish

🐳 Dockerビルド

Docker イメージをビルドします。

# Build locally (replace with your username/repo and desired tag) docker build -t alexbakers/mcp-ipfs .

📜 ライセンス

このMCPサーバーはMITライセンスに基づいてライセンスされています。詳細はLICENSEファイルをご覧ください。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

🪐 MCP IPFS サーバー

このサーバーは、言語モデル 🤖 やその他の MCP クライアントが storacha.network スペースを管理し、データをアップロード/ダウンロードし、委任を管理し、w3 コマンドをシームレスにラップすることでさまざまな他のタスクを実行できるようにします。

  1. ✨ 特徴
    1. 🛠️ 前提条件
      1. 🏗️ プロジェクト構造
        1. 🚀 MCP クライアントでの使用
          1. 例: NPX (単純なローカル使用に推奨)
          2. 例: Docker
        2. 📦 ビルド
          1. 🐳 Dockerビルド
        3. 📜 ライセンス

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            A MCP Server used to collect MCP Servers over the internet.
            Last updated -
            3
            18
            Python
            • Apple
          • A
            security
            A
            license
            A
            quality
            An MCP server that provides tools for reading, writing, and editing files on the local filesystem.
            Last updated -
            1
            1,494
            Python
            Apache 2.0
            • Apple
          • -
            security
            A
            license
            -
            quality
            The server integrates with the free IMF data API and provides various features to facilitate data retrieval and analysis. The server is built using the FastMCP framework and offers the following functionalities:
            Last updated -
            4
            Python
            Apache 2.0
          • A
            security
            F
            license
            A
            quality
            An MCP server designed to work with FFmpeg for media processing tasks, offering enhanced performance and secure communication for handling media processing requests.
            Last updated -
            2
            10
            12
            TypeScript

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexbakers/mcp-ipfs'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server