Quickstart
The easiest way to use Spidra is through the hosted MCP server. There is nothing to install or keep running.The hosted MCP server uses your Spidra account and consumes credits in the same way as direct API requests. There is no separate keyless usage tier.
Connect your client
Pick your client below. Most of them open a Spidra page in your browser to sign in. The page names the app asking for access and where you go back to. Click Approve, log in to Spidra if you aren’t already, and you’re connected. Every client can also use an API key instead.- Claude
- Claude Code
- ChatGPT
- Cursor
- VS Code
- Codex
- Gemini CLI
- Windsurf
- Cline
- Zed
- Goose
- Antigravity
- GitHub Copilot CLI
- OpenCode
This covers claude.ai, Claude Desktop and the mobile apps.Quit and reopen Claude Desktop afterward.
- Open Customize → Connectors, click +, then Add custom connector.
- Paste
https://mcp.spidra.io/mcpand click Add. - Ask Claude something that needs Spidra. The first time, Claude shows a Connect button. Click it and approve.
claude_desktop_config.json. To run Spidra locally in Claude Desktop with an API key, open Settings → Developer → Edit Config and add:https://mcp.spidra.io/mcp. If the client supports OAuth for MCP, it finds the sign-in settings itself. Otherwise send Authorization: Bearer spd_YOUR_API_KEY. If the client has a tool timeout setting, set it to 300 seconds. You can also run the server locally.
Try it
Once Spidra is connected, ask for web data in normal language.“Search for the best espresso machines of 2026 and summarize the top 3.”
“Scrape https://news.ycombinator.com and give me the top five stories with their points.”
“Compare the pricing pages for stripe.com and paddle.com and tell me which is cheaper for a small SaaS.”
“Here are 12 product URLs. Get the name, price, and rating from each one and return a table.”
“Crawl the first 10 pages of docs.spidra.io and summarize what the product does.”If the assistant returns data from the requested pages, the connection is working. The assistant handles tool selection, polling, and result retrieval automatically.
Tools
The server has 28 tools. You never call them yourself; the assistant picks one from what you ask. The guidance below is also in the tool descriptions, so the assistant follows it on its own.- Don’t know the URL?
spidra_search. Know the site but not the page?spidra_map, then read the pages you need. - One URL:
spidra_scrape. Two or more, even to compare two:spidra_batch_scrape, so each gets its own result. - Many pages of one kind on a site, URLs unknown:
spidra_crawl. - A PDF, Word, Excel or PowerPoint file:
spidra_parse. - A common job on a well-known site, such as Google Maps leads or Amazon keyword rank:
spidra_find_templates, thenspidra_run_template. - Something to keep an eye on:
spidra_create_monitor.
spidra_get_job instead of starting the job again.
Credit-efficient behavior
Agents can repeat work if a server doesn’t tell them what’s already running. The tools are built to avoid that:- Descriptions steer the assistant to the narrowest tool and small limits, and
spidra_accountlets it check the balance before a big job. - Templates, monitors and documents can be priced first, for free, with
estimateordryRun. spidra_scraperuns once. If a page comes back nearly empty, the result says so and suggests Stealth Mode, instead of quietly paying for a second run.- Jobs that don’t finish in the call return an id with instructions to check it, never to start again.
- Errors say what to do: how long to wait, which fields to fix, or not to retry (out of credits, an overdue payment, a plan limit).
- Cancelling returns the credits held for work that hadn’t started, and retries re-run only what failed.
Output limits
Results are kept small enough for the assistant to use:- any one string is capped at 20,000 characters, and a whole result at 80,000 (about 20,000 tokens), with a note saying how to get the rest
- long lists page with
offsetandlimit - template rows come back with the template’s columns; ask for full detail to get every field
- crawl results leave out per-page file links, which
spidra_crawl_pagesreturns - results also come back as
structuredContent, for clients that read fields directly
Run Spidra locally
You can also run the MCP server on your own machine using the standard input/output transport. This is useful when your client does not support remote MCP servers, when you want to manage the process locally, or when you need to point the server at a different Spidra API environment.Run with npx
No global installation is required:Install globally
/mcp to confirm that Spidra is connected.
Self-host over Streamable HTTP
The package can also run as a Streamable HTTP server. Use this when you want to host your own MCP endpoint, place it behind your own network controls, or point it at a different Spidra API environment.HOST to anything other than localhost and also set SPIDRA_API_KEY, anyone who can reach the port can spend that key’s credits. If the server needs to serve multiple users, omit SPIDRA_API_KEY from the server environment and send the appropriate API key with each request instead:
Configuration
These environment variables apply when you run the MCP server yourself.
For HTTP connections, you can also send the API key with each request:
Error handling
Spidra returns API failures as MCP tool errors rather than crashing the server. Error messages are designed to tell the client what to do next:- Rate-limit errors indicate when the request can be retried.
- Validation errors identify the input that needs to change.
- Permanent errors explain when retrying the same request will not help.
- Jobs that outlast the call return an id to check with
spidra_get_job.
What’s new in 0.8.0
If you used 0.7.0, this is what you’ll notice:- Clients on the newest MCP revision connect. Current Claude apps and other clients that speak the
2026-07-28revision were refused by 0.7.0 with “Unsupported protocol version”. The server now answers that revision and every 2025-era one, over stdio and HTTP, with no setting on your side. - Sign-in starts when you connect. The hosted server asks you to sign in as soon as your client first connects, instead of on the first tool call. Cursor needed this to show the sign-in at all.
- Approving works in Chrome, Safari and Firefox. The consent page is new. It shows the app’s logo only when its identity is verified on its own domain, and says where you’ll be sent back.
- Waits are capped at 45 seconds.
spidra_get_jobcan wait for a job withwaitSeconds(up to 45), no call waits longer than that, and while it waits the server sends progress to clients that show it. A job that takes longer keeps running, and the assistant checks it again. - Local setups no longer read a
.envfile. Clients startnpx spidra-mcpin your open project’s folder, and 0.7.0 loaded a.envfile from there. A.envin a repo you cloned could pointSPIDRA_API_URLat another server and send it your API key. If you ran 0.7.0 locally in a project you didn’t write, check that project for a.envthat setsSPIDRA_API_URL, and create a new API key if it did. Put your key in the client’s MCP config (env) instead. - You can disconnect an app. Apps you approved on the sign-in page are listed under Connected apps on the API keys page. Revoke signs the app out: it can’t refresh its sign-in, and loses access within 15 minutes. To use it again, connect it and approve it again.
Troubleshooting
The assistant does not see any Spidra tools. Check that the MCP server appears as connected in your client’s MCP settings. If you edited a configuration file manually, reload the MCP server or restart the client. In Claude Code, run/mcp to inspect the connection.
“No Spidra API key configured.” For a local stdio setup, make sure SPIDRA_API_KEY is inside the server’s environment configuration, for example:
Authorization: Bearer spd_YOUR_API_KEY. Also confirm that the key still exists under API Keys in your Spidra dashboard.
The hosted server returns a 401. Without a key, that’s the sign-in prompt: clients that support OAuth open the Spidra sign-in page, and others need an API key. With a key, check that the header is exactly Authorization: Bearer spd_... (or X-Spidra-Api-Key: spd_...). A key that was revoked under API Keys fails on the tool call instead, with a message saying so.
Cursor shows Spidra as connected, but tools fail with “Unauthorized”. Cursor didn’t start the sign-in. Use the API key setup in the Cursor tab above.
You want to remove an app’s access. An app that signed in through the browser is under Connected apps on the API keys page. Click Revoke. An app that connected with an API key is disconnected by turning that key off or deleting it.
OAuth does not start. Check that your client supports OAuth for remote MCP servers. Some clients need you to start it: claude mcp login spidra in Claude Code, codex mcp login spidra in Codex, /mcp auth spidra in Gemini CLI. If your client doesn’t support OAuth, use an API key or run the server locally.
Sign-in says “This sign-in has expired” or “This sign-in can’t be confirmed”. The attempt took longer than 10 minutes, or the sign-in link was opened in a different browser from the one that started it. Start the connection again from your client and finish it in the same browser.
Sign-in says “Unknown client_id”. Your client registered with an older version of the server. Most clients register again when you reconnect. If yours doesn’t, remove Spidra and add it again.
A tool call stops after exactly 60 seconds. That’s your client’s limit, not Spidra’s. Codex and Cline default to 60 seconds. Raise it to 300: tool_timeout_sec in Codex, timeout in Cline, timeoutSeconds in Antigravity. The job keeps running either way, so ask for the result with spidra_get_job instead of starting it again.
A scrape “timed out.” This does not mean the job failed. The job continues running on Spidra, and the timeout response includes its job ID so the assistant can retrieve it with spidra_get_job. A timed-out wait window is not a reason to submit the same scrape again. Bot-protected sites can take longer to process.
Structured results are empty. Check the schema you provided. Every field you expect Spidra to return must be defined with a type:
npx cannot start the server. This only affects local setups. Confirm that node --version reports Node.js 20 or newer, and that your network can reach the npm registry. The hosted MCP server does not use npx and is unaffected by local Node.js issues.
