Logo Pinata IPFS

Pinata IPFS

Tổ chức
PinataCloud

A Model Context Protocol (MCP) server that provides Claude with access to Pinata. This integration allows Claude to interact with Public and Private IPFS through Pinata's API.

Nhà phát hànhPinataCloud
Kho mãpinata-mcp
Ngôn ngữJavaScript
Bản fork
5
Sao
6
Công cụ có sẵn
35
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Pinata IPFS cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 35 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    6 sao và 5 bản fork từ kho mã được liên kết.

pinata-mcp

A Model Context Protocol (MCP) server that provides Claude with access to Pinata. This integration allows Claude to interact with Public and Private IPFS through Pinata's API.

Setup

Prerequisites

  • Node.js 18+ installed
  • A Pinata account with an API key (JWT)
  • A Pinata Gateway URL

Installation

Installation will depend on whether you are using Claude Code or Claude Desktop.

Claude Code

Run claude mcp add and follow the prompts with the following information:

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

Claude Desktop

Add the following config to claude_desktop_config.json:

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

Note: The directory arguments are optional. If not provided, the server will only allow access to the current working directory. You can specify multiple directories to allow file access from multiple locations.

Available Tools

Authentication

ToolDescription
testAuthenticationVerify that your Pinata JWT is valid and working

File Operations

ToolDescription
uploadFileUpload a file to Pinata (public or private IPFS)
searchFilesSearch files by name, CID, or MIME type
getFileByIdGet detailed file information by ID
updateFileUpdate file metadata (name, key-values)
deleteFileDelete a file from Pinata

Content Access

ToolDescription
createLinkCreate a gateway link for public or private files
createPrivateDownloadLinkGenerate a temporary download link for private files
fetchFromGatewayFetch content from IPFS via Pinata gateway

Group Operations

ToolDescription
listGroupsList groups with optional filtering
createGroupCreate a new group for organizing files
getGroupGet group details by ID
updateGroupUpdate group information
deleteGroupDelete a group
addFileToGroupAdd a file to a group
removeFileFromGroupRemove a file from a group

x402 Payment Instructions

Tools for content monetization using the x402 protocol:

ToolDescription
createPaymentInstructionCreate payment requirements for gated content
listPaymentInstructionsList/filter existing payment instructions
getPaymentInstructionGet details of a specific payment instruction
updatePaymentInstructionModify payment instruction settings
deletePaymentInstructionRemove a payment instruction
listPaymentInstructionCidsList CIDs associated with a payment instruction
addCidToPaymentInstructionAssociate a CID with a payment instruction
removeCidFromPaymentInstructionRemove a CID association

CID Signatures

Tools for cryptographic content verification using EIP-712 signatures:

ToolDescription
addSignatureAdd a cryptographic signature to a CID
getSignatureGet signature details by CID
deleteSignatureRemove a signature

Signed Upload URLs

ToolDescription
createSignedUploadUrlCreate a presigned URL for client-side uploads

Pin by CID

ToolDescription
pinByCidPin an existing CID from the IPFS network
queryPinRequestsQuery the status of pin requests
cancelPinRequestCancel a pending pin request

Vectorize (AI/Semantic Search)

ToolDescription
vectorizeFileVectorize a file for semantic search
deleteFileVectorsDelete vectors for a file
queryVectorsQuery vectorized files using semantic search

Utilities

ToolDescription
listAllowedDirectoriesList directories the server can access for file operations

Local Development

To test the MCP server locally during development:

1. Clone and install dependencies

bash
git clone https://github.com/PinataCloud/pinata-mcp.git
cd pinata-mcp
npm install

2. Build the project

bash
npm run build

3. Set up environment variables

Create a .env file in the project root (optional, you can also pass these in the MCP config):

PINATA_JWT=your_pinata_jwt_here
GATEWAY_URL=your-gateway.mypinata.cloud

4. Configure Claude to use the local build

Claude Code

Run claude mcp add with the local path:

Server Name: pinata-dev
Server Scope: Project
Server Command: node
Command Arguments: /path/to/pinata-mcp/dist/index.js /path/to/allowed/directory
Environment Variables: PINATA_JWT=<YOUR_JWT>,GATEWAY_URL=example.mypinata.cloud

Claude Desktop

Update claude_desktop_config.json to point to your local build:

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

5. Testing changes

After making code changes:

  1. Rebuild: npm run build
  2. Restart Claude Code or Claude Desktop to pick up the changes

Testing with MCP Inspector

Use the MCP Inspector to test the server:

Web UI (interactive debugging)

bash
npx @modelcontextprotocol/inspector \
  -e PINATA_JWT=your_jwt \
  -e GATEWAY_URL=your-gateway.mypinata.cloud \
  -- node dist/index.js

This opens a browser UI where you can interactively list tools, call them with parameters, and inspect responses.

CLI mode (for scripting/CI)

bash
# List all available tools
npx @modelcontextprotocol/inspector --cli --method tools/list \
  -e PINATA_JWT=your_jwt \
  -e GATEWAY_URL=your-gateway.mypinata.cloud \
  -- node dist/index.js

# Call a specific tool
npx @modelcontextprotocol/inspector --cli --method tools/call \
  --tool-name testAuthentication \
  -e PINATA_JWT=your_jwt \
  -e GATEWAY_URL=your-gateway.mypinata.cloud \
  -- node dist/index.js

Example Prompts for Claude

Test my Pinata connection:
"Test my Pinata authentication to make sure everything is working"

Upload an image to Pinata:
"Upload this image 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"

Fetch content from IPFS:
"Fetch the content with CID QmX... from IPFS"

Create a payment instruction for content monetization:
"Create a payment instruction called 'Premium Content' that requires 0.01 USDC on Base to access"

Pin an existing CID:
"Pin the CID bafkreih5aznjvttude6c3wbvqeebb6rlx5wkbzyppv7garjiubll2ceym4 to my account"

Vectorize files for AI search:
"Vectorize the file with ID abc123 so I can search it semantically"

Query vectorized content:
"Search my vectorized files in group xyz for 'machine learning concepts'"

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

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

Công cụ có sẵn

  • testAuthentication

    Verify that your Pinata JWT is valid and working

  • searchFiles

    Search for files in your Pinata account by name, CID, or MIME type. Returns a list of files matching the given criteria.

  • getFileById

    Retrieve detailed information about a specific file stored on Pinata by its ID

  • updateFile

    Update metadata for an existing file on Pinata including name and key-value pairs

  • deleteFile

    Delete a file from your Pinata account by its ID

  • uploadFile

    Upload a file to Pinata IPFS. Provide either a file:// URI or base64-encoded content.

  • createPrivateDownloadLink

    Generate a temporary download link for accessing a private IPFS file from Pinata

  • createLink

    Create a direct access link for a file stored on Pinata IPFS. For public files returns a gateway URL, for private files generates a temporary download link.

  • fetchFromGateway

    Fetch content from Public or Private IPFS via Pinata gateway and return it

  • listGroups

    List groups in your Pinata account with optional filtering by name

  • createGroup

    Create a new group in your Pinata account to organize files

  • getGroup

    Retrieve detailed information about a specific group by its ID

  • updateGroup

    Update metadata for an existing group on Pinata

  • deleteGroup

    Delete a group from your Pinata account by its ID

  • addFileToGroup

    Add an existing file to a group in your Pinata account

  • removeFileFromGroup

    Remove a file from a group in your Pinata account

  • createPaymentInstruction

    Create a new x402 payment instruction for content monetization. Currently supports USDC (6 decimals) on Base/Base Sepolia only.

  • listPaymentInstructions

    List and filter x402 payment instructions for content monetization

  • getPaymentInstruction

    Retrieve a specific x402 payment instruction by ID

  • updatePaymentInstruction

    Update an existing x402 payment instruction. Currently supports USDC (6 decimals) on Base/Base Sepolia only.

  • deletePaymentInstruction

    Delete an x402 payment instruction

  • listPaymentInstructionCids

    List CIDs associated with a payment instruction

  • addCidToPaymentInstruction

    Associate a CID with a payment instruction for x402 monetization

  • removeCidFromPaymentInstruction

    Remove a CID association from a payment instruction

  • addSignature

    Add an EIP-712 cryptographic signature to a CID for content verification

  • getSignature

    Get signature details for a specific CID

  • deleteSignature

    Remove a signature from a CID

  • createSignedUploadUrl

    Create a signed URL for client-side file uploads without exposing your API key

  • pinByCid

    Pin an existing CID from the IPFS network to your Pinata account

  • queryPinRequests

    Query the status of pin by CID requests

  • cancelPinRequest

    Cancel a pending pin by CID request

  • vectorizeFile

    Vectorize a file for AI/semantic search capabilities

  • deleteFileVectors

    Delete vectors for a file

  • queryVectors

    Query vectorized files in a group using semantic search

  • listAllowedDirectories

    List all directories that this MCP server is allowed to access for file operations

Dùng MCP Pinata IPFS với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Pinata IPFS, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Pinata IPFS làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Pinata IPFS.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "pinata-ipfs": {
      "command": "npx",
      "args": [
        "-y",
        "pinata-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Pinata IPFS, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Pinata IPFS.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Pinata IPFS giúp tôi làm việc này không?
Pinata IPFS
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Pinata IPFS.

Câu hỏi thường gặp

Máy chủ MCP Pinata IPFS dùng để làm gì?

Pinata IPFS là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Pinata IPFS với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Pinata IPFS với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Pinata IPFS với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Pinata IPFS, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Pinata IPFS với TypingMind?

Pinata IPFS hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Pinata IPFS cung cấp những công cụ nào trong TypingMind?

Pinata IPFS cung cấp 35 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Pinata IPFS không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Pinata IPFS yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇