Skip to main content
Glama

ピニャータ-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"
      }
    }
  }
}

Related MCP server: Spotify MCP Server

使用法

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"

質問

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

Latest Blog Posts

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/PinataCloud/pinata-mcp'

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