Skip to main content

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI assistants like Claude to interact with external tools and services. MCP servers expose capabilities that AI models can use to perform actions on your behalf. The Pinata MCP server gives Claude (and other MCP-compatible assistants) the ability to:
  • Upload and manage files on IPFS (public and private)
  • Search, retrieve, and delete files
  • Organize files into groups
  • Create gateway links for sharing content
  • Set up content monetization with x402 payment instructions
  • Vectorize files for semantic search
  • Pin existing CIDs from the IPFS network

Two ways to connect

  • Hosted server at https://mcp.pinata.cloud: add the URL to any client that supports remote MCP servers (Claude Code, Claude Desktop and claude.ai, ChatGPT, Codex, Cursor, VS Code, Gemini CLI, Windsurf), then sign in with your Pinata account or use an API key. Nothing to install.
  • Local server (pinata-mcp on npm, below): runs on your machine with npx, and can read files and directories from your disk directly, so the assistant can upload large files and whole folders on its own.
Both have the same tools for files, groups, links, x402 payments, signatures, pins and vectors, with the same names, so the same prompts work on both. When you sign in to the hosted server instead of using an API key, the x402 payment tools aren’t available. The Tools Reference notes where they differ.

Local server

Prerequisites

Installation

The local Pinata MCP server is available on npm and can be run via npx. Installation depends on which client you’re using.

Claude Code

Run claude mcp add and follow the prompts:

Claude Desktop

Add the following to your claude_desktop_config.json:
The directory arguments are optional and control which local directories the MCP server can access for file uploads. If not provided, the server only allows access to the current working directory. You can specify multiple directories.

Configuration

Verifying the Connection

Once installed, ask Claude to test the connection:
Claude will use the testAuthentication tool to check the connection and show which account it acts as. This works the same on the hosted and the local server.

Next Steps

See the Tools Reference for a complete list of available tools with parameters and example prompts. To also teach your coding agent how to build with Pinata (the SDK, presigned uploads, gateways), install the Agent Skill: npx skills add PinataCloud/skills.