Integrations
MCP
Coming soon
PaperPurr runs a remote MCP server, so AI coding tools and agents can call citation lookup, reference verification and usage directly. It works on every plan and shares usage with the REST API.
Server
| Item | Value | Notes |
|---|---|---|
| Address | https://paperpurr.com/mcp | Same domain as REST |
| Transport | Streamable HTTP | Stateless: POST only, one JSON-RPC message per request, no Mcp-Session-Id and no SSE stream |
| Authentication | Authorization: Bearer <API key> | The same key as REST |
| Protocol versions | 2025-11-25 2025-06-18 2025-03-26 | If initialize asks for a version the server doesn’t know, it falls back to 2025-11-25. Any other MCP-Protocol-Version header returns 400 unsupported_protocol_version |
Setup
Set an environment variable
Most clients read the key from
PAPERPURR_API_KEY:macOS / Linux
export PAPERPURR_API_KEY="pp_live_..."Windows PowerShell
$env:PAPERPURR_API_KEY = "pp_live_..."Add the server to your client
Claude Code
claude mcp add --transport http paperpurr https://paperpurr.com/mcp \ --header "Authorization: Bearer $PAPERPURR_API_KEY"Claude Desktop
{ "mcpServers": { "paperpurr": { "command": "npx", "args": [ "mcp-remote", "https://paperpurr.com/mcp", "--header", "Authorization:${AUTH_HEADER}" ], "env": { "AUTH_HEADER": "Bearer pp_live_..." } } } }Cursor
{ "mcpServers": { "paperpurr": { "url": "https://paperpurr.com/mcp", "headers": { "Authorization": "Bearer ${env:PAPERPURR_API_KEY}" } } } }VS Code
{ "servers": { "paperpurr": { "type": "http", "url": "https://paperpurr.com/mcp", "headers": { "Authorization": "Bearer ${env:PAPERPURR_API_KEY}" } } } }Cline
{ "mcpServers": { "paperpurr": { "type": "streamableHttp", "url": "https://paperpurr.com/mcp", "headers": { "Authorization": "Bearer pp_live_..." } } } }Zed
{ "context_servers": { "paperpurr": { "url": "https://paperpurr.com/mcp", "headers": { "Authorization": "Bearer pp_live_..." } } } }Codex
[mcp_servers.paperpurr] url = "https://paperpurr.com/mcp" bearer_token_env_var = "PAPERPURR_API_KEY"Gemini CLI
{ "mcpServers": { "paperpurr": { "httpUrl": "https://paperpurr.com/mcp", "headers": { "Authorization": "Bearer $PAPERPURR_API_KEY" } } } }Other MCP clients
URL https://paperpurr.com/mcp Transport Streamable HTTP Header Authorization: Bearer $PAPERPURR_API_KEYRestart the client
After saving, restart the client or refresh its tool list. You should see
paperpurrand its tools.Confirm the connection
Ask the client to call
verify_connection. See the next section.
| Client | Config location | Status |
|---|---|---|
| Claude Code | claude mcp add on the command line | Coming soon |
| Cursor | ~/.cursor/mcp.json | Coming soon |
| VS Code | .vscode/mcp.json | Coming soon |
| Claude Desktop | claude_desktop_config.json, bridged with mcp-remote | Coming soon |
| Codex | ~/.codex/config.toml | Coming soon |
| Gemini CLI | ~/.gemini/settings.json | Coming soon |
| Cline | cline_mcp_settings.json | Coming soon |
| Zed | context_servers in settings.json | Coming soon |
| Other MCP clients | Streamable HTTP + Authorization header | Coming soon |
| Windsurf | — | Planned |
| Claude on the web | Needs an OAuth connector, phase two | Planned |
| ChatGPT | Needs an OAuth connector, phase two | Planned |
Confirm the connection
Tell the client “call paperpurr’s verify_connection”. If it returns your account email and key prefix, you’re connected. This step is free:
{
"ok": true,
"account": {
"email": "you@example.com"
},
"key": {
"id": "key_3f9a0c1d7b2e4a65",
"prefix": "pp_live_a1B2",
"name": "thesis-laptop"
}
}- If the prefix matches the key in your account, the client is using the right key.
- Then have it verify one reference with
verify_referencesand callget_usage. If usage went up by 1 unit, the whole path works.
Tool
| Tool | Arguments | Response | Status |
|---|---|---|---|
verify_connection | None | Your account email and key prefix, to confirm the connection. Free | First release |
lookup_citation | query | Matching works, up to 8. Costs 1 unit | First release |
verify_references | references (1–20 items) | Per-reference results, charged per reference checked | First release |
get_usage | None | This month’s trial allowance and rate limit. Free | First release |
rewrite_text | text (required), variants (1–4, default 1) | job_id | Opens with rewriting |
get_job | job_id | Job status, with drafts when done | Opens with rewriting |
Arguments and defaults are identical to the REST API, and metering and rate limits follow the same path. When a tool fails (arguments, allowance, upstream), the result has isError: true and the standard error object. Unknown tool names return JSON-RPC error -32602.
Until rewriting opens, tools/list shows only the first four tools. Calling rewrite_text or get_job directly returns isError: true with coming_soon. Every tool is marked read-only (readOnlyHint), and the two lookup tools are also marked as reaching external databases (openWorldHint).
Protocol errors
| Case | Response |
|---|---|
| The body isn’t valid JSON | 400 · -32700 |
| Not a single JSON-RPC 2.0 message (batches included) | 400 · -32600 |
| Unsupported method | -32601 |
| Unknown tool name | -32602 |
A GET or DELETE request | 405 |
| A body over 256 KB | 413 · body_too_large |
| A notification or response message | 202 with no body |
Troubleshooting
| Symptom | Cause | What to do |
|---|---|---|
503 coming_soon | Not launched yet | Join the waitlist |
401 missing_api_key | The client didn’t pick up the environment variable or didn’t expand it in the header | Launch the client from a terminal where the variable is set. For Claude Desktop, use the env block |
401 invalid_api_key | The key is incomplete or has extra spaces | Copy it again |
401 revoked_api_key | The key has been revoked | Create a new key and update the config |
403 origin_not_allowed | The request came from a web page | Use a desktop or command-line client |
400 unsupported_protocol_version | The client is too old | Update the client |
| Tools don’t show up | The config wasn’t loaded | Check the JSON syntax and file location, then restart the client |
rewrite_text returns coming_soon | The rewrite tools open with the rewriting API | Use the citation tools for now |
- Workflow examples: How to choose between the three ways to get results, plus two complete recipes: batch-verifying references after you finish a paper, and having an agent in Claude Code find and insert citations.
- Rate limits and metering: The three rate-limit layers and their headers, how each endpoint is metered and how the trial allowance works.