https://mcp.pinata.cloud. Point your AI assistant at that URL with your Pinata API key and it can manage your files, groups, links and payment instructions, with no Node.js and nothing to install or update.
Hosted or local?
Choose the local server when the assistant should read large files or whole directories from your disk on its own; choose the hosted server everywhere else.
Before you start
You need an API key JWT. The tools act with that key’s permissions: an admin key can use every tool, and a key scoped to some endpoints limits what the assistant can do. For example, a key that can only read files lets the assistant search and fetch, but not upload or delete. The key needs at least permission to read files. Every tool call counts against your API rate limits like a REST call made with the same key. The examples below read the key from an environment variable:Connect your assistant
Every client needs the same two things:- URL:
https://mcp.pinata.cloud(Streamable HTTP transport) - Header:
Authorization: Bearer <your API key JWT>
X-Pinata-Gateway: <your gateway host> header next to Authorization, or, in clients that can’t set headers, put it in the URL as https://mcp.pinata.cloud/?gateway=<your gateway host>.
Claude Code
--scope user to use it in every project.
Codex
Codex CLI and the Codex IDE extension share~/.codex/config.toml. Export PINATA_JWT before starting Codex.
Cursor
In~/.cursor/mcp.json:
VS Code (GitHub Copilot)
In.vscode/mcp.json. VS Code asks for the key once and stores it securely.
Gemini CLI
In~/.gemini/settings.json:
Windsurf
In~/.codeium/windsurf/mcp_config.json:
Claude Desktop and claude.ai
Remote servers are added as custom connectors (Settings → Connectors → Add custom connector).- If the dialog has a Request headers section: enter the URL, choose no sign-in, and add a header named
authorizationwith the valueBearer <your API key JWT>, includingBearer. Add the connector to your own account: on Team and Enterprise plans, a connector an Owner adds for the organization sends the same header for every member, so everyone would act as one Pinata account. - Otherwise, in Claude Desktop, connect through the
mcp-remotebridge inclaude_desktop_config.json(requires Node.js):
ChatGPT and other sign-in-only clients
Clients that connect only by signing in to the server, with no way to set a header, are not supported yet: the hosted server needs the API key header.MCP Inspector
To see the tools and try them by hand:Check the connection
Ask your assistant:testAuthentication, which shows the account the key belongs to, and listGateways.
Working with the hosted server
Networks
Every file and group is on public or private IPFS.- Uploads ask for the network every time. There is no default: public content can be read by anyone with the CID and can stay cached on other IPFS nodes after you delete it. Say which one you want in the prompt, or the assistant asks.
- Searches, lists, new groups and links also need it.
- Tools that take a file or group ID (get, update, delete, group membership) find the item on either network when you don’t say which.
Gateways
Link and fetch tools use your default gateway unless you name another one. The default is the one you set when connecting (X-Pinata-Gateway header or ?gateway= in the URL), or else your account’s first dedicated gateway without access controls. listGateways shows them all, with their custom domains, whether they have access controls, and which one is the default. You can name any of them, including a custom domain, in a prompt:
createLink also returns a temporary_url anyone can open until it expires (10 minutes by default, at most 7 days), so you can share a file even when all your gateways have access controls. The assistant can still read your files through such a gateway.
Uploading content the assistant writes
uploadContent uploads one file and uploadFolderContent uploads a folder with one CID (a small website, a dataset, generated files) from content the assistant has in its context: text, JSON, or small binary files as base64. They take up to 2 MiB in total and a folder up to 150 files.
Uploading files from your disk
The hosted server can’t read your disk. For local files, or content over 2 MiB, the assistant creates a signed upload URL withcreateSignedUploadUrl and uploads to it from your machine, for example with curl:
- one file:
curl -F "file=@./photo.jpg" "<signed URL>" - a folder with one CID: one
filefield per file named<folder>/<path>, plus anamefield with the folder name, up to 150 files
Reading file content
fetchFromGateway returns a file’s content to the assistant: text up to 100 KB, other content up to 50 KB. For anything larger, ask for a link (createLink). Private links last 10 minutes by default and at most 7 days.
Safety
- File content is data, not instructions. File names, key-values, fetched content and error messages can be written by anyone who uploaded a file. The server tells assistants to treat them as data, and marks fetched content as untrusted.
- The assistant asks before acting for you when it uploads from your disk, makes anything public, creates links or signed upload URLs, deletes anything, or sets where x402 payments go (
pay_to). Deleting tools are marked as destructive, so clients that support it ask for confirmation. - Check
pay_toyourself. A payment instruction sends every payment to that wallet; confirm the address you give comes from you, never from a file or another tool’s output.