Pinata MCP

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

  • Provides access to both Public and Private IPFS through Pinata's API, enabling file uploads, searches, metadata management, group organization, and content retrieval from IPFS gateways.

ピニャータ-MCP

Claude に Pinata へのアクセスを提供する Model Context Protocol (MCP) サーバー。この統合により、Claude は Pinata の API を介してパブリックおよびプライベート IPFS とやり取りできるようになります。

設定

前提条件

  • Node.js 18以上がインストールされている
  • API キー (JWT) を持つ Pinata アカウント

インストール

インストールは、Claude Code を使用するか、Claude Desktop を使用するかによって異なります。

クロード・コード

claude mcp addを実行し、プロンプトに従って次の情報を入力します。

Server Name: pinata Server Scope: Project or Global Server Command: npx Command Arguments: pinata-mcp /path/to/allowed/directories /another/path/to/allowed/directories Environment Variables: PINATA_JWT=<YOUR_JWT>,GATEWAY_URL=example.mypinata.cloud

クロードデスクトップ

claude_desktop_config.jsonに次の設定を追加します。

{ "mcpServers": { "pinata": { "command": "npx", "args": [ "pinata-mcp", "/path/to/allowed/directory" ], "env": { "PINATA_JWT": "<YOUR_JWT>", "GATEWAY_URL": "example.mypinata.cloud" } } } }

使用法

MCPの使用を開始するには、 claudeコマンドでClaude Codeを起動するか、Claude Desktopを起動します。以下の操作が可能です。

ファイル操作

  • Pinata(パブリックまたはプライベートIPFS)にファイルをアップロードする
  • 名前、CID、またはMIMEタイプでファイルを検索する
  • IDでファイルの詳細を取得する
  • 名前やキー値を含むファイルのメタデータを更新する
  • Pinataからファイルを削除する

グループオペレーション

  • オプションのフィルタリング機能を備えたグループの一覧
  • ファイルを整理するためのグループを作成する
  • IDでグループの詳細を取得する
  • グループ情報を更新する
  • グループを削除する
  • グループへのファイルの追加/削除

コンテンツアクセス

  • プライベートファイルにアクセスするためのプライベートダウンロードリンクを作成する
  • IPFSゲートウェイからコンテンツを取得し、オプションでローカルに保存する

クロードの例題

Claude に pinata-mcp を使用するように指示する方法の例をいくつか示します。

Upload an image to Pinata: "Please upload the file at ~/Pictures/example.jpg to my Pinata account as a private file named 'My Example Image'" Search for files: "Search my Pinata account for all PNG files" Create a group and add files: "Create a new group called 'Project Assets' on Pinata, then find all my JSON files and add them to this group" Download content from IPFS: "Fetch the content with CID QmX... from IPFS and save it to my Downloads folder"

質問

何か問題が発生した場合は、メールでお知らせください。

-
security - not tested
A
license - permissive license
-
quality - not tested

Claude に Pinata の API へのアクセスを提供し、ファイルのアップロード、検索、整理、コンテンツの取得のためにパブリック IPFS とプライベート IPFS の両方と対話できるようにします。

  1. Setup
    1. Prerequisites
    2. Installation
  2. Usage
    1. File Operations
    2. Group Operations
    3. Content Access
  3. Example Prompts for Claude
    1. Questions
      ID: ps4la8o8e8