皮纳塔-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"
问题
如果您遇到任何问题,请向我们发送电子邮件!
Related MCP Servers
- AsecurityAlicenseAqualityEnables Claude to interact with FTP servers through natural language commands, allowing users to list directories, download/upload files, create directories, and delete files/directories on FTP servers.Last updated -611MIT License
- AsecurityAlicenseAqualityConnects Claude with Spotify, allowing users to control playback, search for content, get music information, and manage the Spotify queue.Last updated -94MIT License
- -securityFlicense-qualityConnects Claude with Spotify, enabling playback control, search functionality, and queue management through Spotify's API.Last updated -4
- -securityAlicense-qualityEnables Claude to interact with Webflow's APIs, allowing access to site information, collections, and other Webflow resources.Last updated -193MIT License