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

一个模型上下文协议 (MCP) 服务器,为 Claude 提供访问 Pinata 的权限。此集成允许 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 进行交互,以进行文件上传、搜索、组织和内容检索。

  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