Logo vun Pinata IPFS

Pinata IPFS

Organisatioun
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.

EditeurPinataCloud
Repositorypinata-mcp
SproochJavaScript
Forks
5
Stären
6
Disponibel Tools
35
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Pinata IPFS stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 35 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    6 Stären an 5 Forks aus dem verlinkte Repository.

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'"

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

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

Disponibel Tools

  • 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

Pinata IPFS MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Pinata IPFS verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Pinata IPFS als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Pinata IPFS an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "pinata-ipfs": {
      "command": "npx",
      "args": [
        "-y",
        "pinata-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Pinata IPFS. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Pinata IPFS.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Pinata IPFS?
Pinata IPFS
Jo. Ech hunn et gelies.
Dat hunn ech mat Pinata IPFS fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Pinata IPFS benotzt?

Pinata IPFS ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Pinata IPFS MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Pinata IPFS mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Pinata IPFS MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Pinata IPFS verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Pinata IPFS MCP mat TypingMind?

Pinata IPFS leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Pinata IPFS MCP an TypingMind zur Verfügung?

Pinata IPFS stellt 35 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Pinata IPFS MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Pinata IPFS eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇