FetchPan for AI agents.
Let your agent download from file hosts and Chinese cloud drives with your FetchPan account: 3 free files a day, plus your traffic. Claude, ChatGPT and other apps sign you in; other tools use a free token.
What is the FetchPan MCP server?
FetchPan is a download service for file hosts (Rapidgator, Katfile, Nitroflare, Turbobit and others) and Chinese cloud drives (Baidu Netdisk, Quark, PikPak and others). Its MCP server lets an AI agent use it: the agent sends a link and gets back a direct download URL.
It works with any MCP client that supports remote servers (Streamable HTTP). Clients with MCP sign-in (Claude, ChatGPT, Claude Code, Cursor, VS Code) open fetchpan.com once, so you can sign in and allow them. Other clients send a free token as a Bearer header. Below are step-by-step guides. The same token also works on the REST API.
https://fetchpan.com/mcp
To try calls online and see the server address, there is also the MCP page: MCP server
1. Create an API token
A token lets a program act as your account. Treat it like a password: anyone who has it can use your free files and your traffic balance.
Checking that you're signed in…
2. Connect your agent
Pick your tool and paste. Tools that can sign in (Claude Code, Cursor, VS Code, Claude Desktop) open fetchpan.com the first time: sign in and click Allow. Codex and WorkBuddy need a token: sign in above and create one.
Add this to ~/.codex/config.toml
[mcp_servers.fetchpan]
url = "https://fetchpan.com/mcp"
http_headers = { Authorization = "Bearer YOUR_TOKEN" }Then ask your agent: “List the FetchPan tools.” If it names download, check_link and get_account, you are connected.
Install guides
Run this line in your terminal, then click Allow once in your browser. Claude Code, Codex, Cursor and WorkBuddy on this computer all get connected.
curl -fsSL https://fetchpan.com/setup.sh | shClaude Code
One command, then one Allow in the browser.
- 01
Run this line in your terminal
Works on macOS and Linux. Codex, Cursor and WorkBuddy on this computer get connected too. Run it again any time to update.
curl -fsSL https://fetchpan.com/setup.sh | sh - 02
Click Allow once in your browser
The page opens by itself (if not, copy the address the terminal shows). Sign in to FetchPan, check the code and click Allow.
- 03
Restart Claude Code
Quit and reopen it if it is open, so it picks up FetchPan. Then ask: “Download this link with FetchPan: …”.
Rather not run a script (on Windows, say)? Run the command below, then type /mcp in Claude Code, choose fetchpan → Authenticate, and sign in and allow in your browser.
claude mcp add --transport http --scope user fetchpan https://fetchpan.com/mcpCodex (CLI, IDE extension and app)
One command, then one Allow in the browser.
- 01
Run this line in your terminal
Works on macOS and Linux. It adds the connection to ~/.codex/config.toml and leaves the rest as it is.
curl -fsSL https://fetchpan.com/setup.sh | sh - 02
Click Allow once in your browser
The page opens by itself (if not, copy the address the terminal shows). Sign in to FetchPan, check the code and click Allow.
- 03
Restart Codex
Quit and reopen it if it is open. When /mcp lists fetchpan, you are connected.
Rather not run a script (on Windows, say)? Create a token on the developers page, add the block below to ~/.codex/config.toml and replace YOUR_TOKEN.
[mcp_servers.fetchpan]
url = "https://fetchpan.com/mcp"
http_headers = { Authorization = "Bearer YOUR_TOKEN" }Cursor
One command, then one Allow in the browser.
- 01
Run this line in your terminal
Works on macOS and Linux. It adds the connection to ~/.cursor/mcp.json and keeps your other servers.
curl -fsSL https://fetchpan.com/setup.sh | sh - 02
Click Allow once in your browser
The page opens by itself (if not, copy the address the terminal shows). Sign in to FetchPan, check the code and click Allow.
- 03
Restart Cursor
Quit it completely and reopen it. When fetchpan shows as on under MCP in the settings, you are connected.
Rather not run a script (on Windows, say)? Add the block below to mcpServers in ~/.cursor/mcp.json. The first time Cursor uses FetchPan it opens fetchpan.com for you to sign in.
{
"mcpServers": {
"fetchpan": {
"url": "https://fetchpan.com/mcp"
}
}
}WorkBuddy
One command, then one Allow in the browser.
- 01
Run this line in your terminal
Works on macOS and Linux. It adds the connection to ~/.workbuddy-ai/mcp.json and keeps your other servers.
curl -fsSL https://fetchpan.com/setup.sh | sh - 02
Click Allow once in your browser
The page opens by itself (if not, copy the address the terminal shows). Sign in to FetchPan, check the code and click Allow.
- 03
Press Trust in WorkBuddy
Open its MCP settings, find fetchpan, press Trust, then start a new chat. Still missing? Quit WorkBuddy with ⌘Q and open it again.
Rather not run a script (on Windows, say)? Create a token on the developers page, add the block below to mcpServers in ~/.workbuddy-ai/mcp.json (keep the entries already there), replace YOUR_TOKEN, then press Trust.
{
"mcpServers": {
"fetchpan": {
"type": "http",
"url": "https://fetchpan.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Claude (web and desktop app)
Paste the address, then sign in once from the app.
- 01
Add a custom connector
In Claude, open Settings → Connectors and click Add custom connector.
- 02
Paste the address
Name it FetchPan, paste the address below as the URL and click Add.
https://fetchpan.com/mcp - 03
Sign in and allow
Click Connect. fetchpan.com opens: sign in and click Allow. Then turn FetchPan on in a chat’s tools menu.
Menu names can differ a little between Claude plans and versions.
ChatGPT
Paste the address, then sign in once from the app.
- 01
Turn on developer mode
Settings → Apps & Connectors → Advanced settings, and turn on Developer mode.
- 02
Create a connector
Click Create, name it FetchPan, paste the address below as the URL and choose OAuth as the authentication.
https://fetchpan.com/mcp - 03
Sign in and allow
Click Connect. fetchpan.com opens: sign in and click Allow. In a chat, add FetchPan from the + menu.
Developer mode and the menu names depend on your ChatGPT plan and version.
VS Code
Paste the address, then sign in once from the app.
- 01
Add the server
Add the block below to .vscode/mcp.json in your project, or run MCP: Add Server from the command palette, choose HTTP and paste the address.
{ "servers": { "fetchpan": { "type": "http", "url": "https://fetchpan.com/mcp" } } } - 02
Sign in and allow
The first time FetchPan is used, VS Code asks you to sign in: fetchpan.com opens in your browser, sign in and click Allow.
- 03
Use it in Copilot chat
Switch to Agent mode and ask: “Download this link with FetchPan: …”.
Other apps
Paste the address, then sign in once from the app.
- 01
Add a remote MCP server
In your app, add a remote MCP server (Streamable HTTP) with the address below.
URL: https://fetchpan.com/mcp Type: Streamable HTTP (remote MCP) Auth: sign in when the app asks (OAuth), or Authorization: Bearer YOUR_TOKEN - 02
Sign in, or use a token
Apps that support MCP sign-in (OAuth) open fetchpan.com: sign in and click Allow. For the others, create a token on the developers page and send it as Authorization: Bearer YOUR_TOKEN.
What the agent can do
Eleven tools. Your agent normally needs only download. Every tool works with your FetchPan account, so the app signs you in first (or sends your token).
- downloadGive it a link; it waits for the file and returns a download URL. If the file is not ready in time, it returns a job id to continue with. A share with several files returns its list to pick one from.1 free file, or traffic (fast)
- download_socialGive it a post on X, Douyin, Xiaohongshu or Instagram; it returns direct URLs for the post's video and photos. Small files, made for an AI to fetch and analyze.1 of 20 free posts a day
- check_linkIs this site supported and working right now?nothing
- list_supported_sitesAll supported sites with live status.nothing
- list_filesOpen a folder of a Quark or PikPak share to find the file you want (then download it with share_id and file_id).nothing
- start_downloadStart a job without waiting. Returns a job id.nothing
- get_jobJob status, and what a free or fast download would cost.nothing
- get_download_linkThe URL for a finished job (free or fast).1 free file, or traffic (fast)
- get_accountYour email, traffic balance, free files per day and recent downloads.nothing
- list_packagesTraffic packs you can buy.nothing
- create_payment_linkA payment page for a pack, to give to you. Only a person can pay it.nothing
How a download works
- The agent calls download with the link you gave it.
- FetchPan opens the link and returns a URL on fetchpan.com. It works for 12 hours and supports resume (HTTP Range).
- The agent fetches the file from that URL (curl, aria2, a browser, anything).
- Free downloads: a few files a day, up to 2 GB, speed limited. Fast downloads use traffic from your balance. See Free vs Fast for the numbers.
Prefer plain HTTP?
The same token works on the website's REST API. Base URL: https://fetchpan.com/v1/web, header Authorization: Bearer YOUR_TOKEN.
| POST /jobs | Start a job. Body: {"url": "…", "password": "…"} |
| GET /jobs/{id} | Job status and offers. |
| POST /jobs/{id}/download | Get the URL. Body: {"tier": "free"} or {"tier": "fast"} |
| GET /session | Account, balance and free limits. |
| GET /account | Balance and recent orders and downloads. |
| GET /sites, GET /hosts | Supported sites with live status. |
| GET /packages, POST /orders | Traffic packs; create a payment page. |
Good to know
- A token acts as you. If it leaks, delete it above: it stops working at once.
- Limits are the website's: up to 10 new links per hour per account, free files per day as shown on Free vs Fast, 2 GB per free file.
- Errors come back as a code and a sentence, for example sign_in_required, daily_limit, too_many_links, not_ready, insufficient_balance. Free-limit errors say when to retry.
- Only download files you have the right to. See Copyright / abuse. We do not host files; we open the link you give.
Questions
What is the FetchPan MCP server?
A Model Context Protocol server at https://fetchpan.com/mcp. It gives an AI agent eleven tools to check a link, fetch it from a supported file host or Chinese cloud drive, and get a download URL.
How do I add FetchPan to Codex?
Create a token on this page, export it as FETCHPAN_TOKEN, and add a [mcp_servers.fetchpan] block with url = "https://fetchpan.com/mcp" and bearer_token_env_var = "FETCHPAN_TOKEN" to ~/.codex/config.toml. Then run /mcp in Codex to check.
How do I add FetchPan to WorkBuddy?
In WorkBuddy open Connectors, Custom connector, Configure MCP, and add a fetchpan entry with type http, the URL https://fetchpan.com/mcp and an Authorization header "Bearer YOUR_TOKEN" to mcp.json. Save, then switch it on in My MCP.
Is it free?
Yes, to start: with your free FetchPan account (sign in with Google) your agent gets 3 free files a day. Free files are up to 2 GB and speed limited; faster downloads use traffic you bought. The agent can tell you which one a download would use before it spends anything.
Does FetchPan host the files?
No. It opens the link you give it and returns a temporary URL on fetchpan.com that works for 12 hours. Only download files you have the right to.
Is my token safe?
We store only a fingerprint of it, so it is shown once. Anyone who has the token can use your free files and traffic, so keep it private. You can delete it on this page and it stops working at once.
Can I add it to ChatGPT or claude.ai as a connector?
Yes. Add https://fetchpan.com/mcp as a custom connector (the guides above show where). The first time, fetchpan.com opens: sign in and click Allow. You can disconnect it on this page at any time.
Questions or something missing?
Tell us on the feedback page what your agent needs. We read every message. Send feedback →