Windsurf + pdfmcp: setup guide
Add pdfmcp to Windsurf Cascade via mcp_config.json.
What you need: a free pdfmcp API key — sign in with your email
(no password) and copy the key shown at first login. Then replace pdfmcp_live_YOUR_KEY in the config below.
Where it goes: ~/.codeium/windsurf/mcp_config.json (Windsurf → Settings → MCP also opens it)
{
"mcpServers": {
"pdfmcp": {
"serverUrl": "https://mcp.pdfmcp.org/mcp",
"headers": {
"X-API-Key": "pdfmcp_live_YOUR_KEY"
}
}
}
}Steps
- Get a free API key from the pdfmcp dashboard and replace pdfmcp_live_YOUR_KEY in the config.
- Save the config and restart Windsurf (or refresh the MCP panel).
- In Cascade, the pdfmcp tools show up in the MCP tools list.
- Try: “Use pdfmcp to split this PDF by pages”.
Windsurf calls the remote-URL field “serverUrl” (not “url”) — the config above already uses the right name.
Troubleshooting
- 401 / unauthorized: the key header is missing or mistyped. The header name is exactly
X-API-Key(Claude Code usesAuthorization: Bearer …— both work). - Tools don't appear: fully restart the client after editing its config; most clients only load MCP servers at startup.
- Server unreachable: check the public status page — and your network's outbound HTTPS to mcp.pdfmcp.org.
Try it with
On-devicePDF info & metadataPage count, page sizes, metadata, encryption status as JSON.On-deviceMerge PDFsCombine multiple PDF files into one, in upload order.On-devicePDF to textExtract plain text, one form-feed separated section per page.
More clients: Claude Desktop MCP setup · Claude Code MCP setup · ChatGPT MCP setup · All MCP setup guides · REST API quickstart