Skip to main content
The Spidra MCP server lets AI assistants use Spidra as a set of tools: search the web, read pages, crawl and map sites, parse documents, run ready-made templates, save presets, watch pages with monitors, and check jobs, credits and history. Use the hosted server with nothing to install, or run it yourself. It’s open source on GitHub.

Quickstart

The easiest way to use Spidra is through the hosted MCP server. There is nothing to install or keep running.
Add this URL to your MCP client. If the client supports OAuth, it will prompt you to sign in to Spidra and approve access. For automated environments, CI, or clients where you prefer a static credential, you can use a Spidra API key instead. Create an API key under API Keys at app.spidra.io, then send it with each request:
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.
This covers claude.ai, Claude Desktop and the mobile apps.
  1. Open Customize → Connectors, click +, then Add custom connector.
  2. Paste https://mcp.spidra.io/mcp and click Add.
  3. Ask Claude something that needs Spidra. The first time, Claude shows a Connect button. Click it and approve.
On Team and Enterprise plans, an owner adds the connector under Organization settings → Connectors, and each member clicks Connect.Claude Desktop only reads remote servers from Connectors, not from claude_desktop_config.json. To run Spidra locally in Claude Desktop with an API key, open Settings → Developer → Edit Config and add:
Quit and reopen Claude Desktop afterward.
For any other client, add a remote Streamable HTTP server with the URL 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, then spidra_run_template.
  • Something to keep an eye on: spidra_create_monitor.
Tools that don’t wait to the end return an id, and the assistant checks it with 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_account lets it check the balance before a big job.
  • Templates, monitors and documents can be priced first, for free, with estimate or dryRun.
  • spidra_scrape runs 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 offset and limit
  • 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_pages returns
  • 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

Then start the server from any MCP client that supports local stdio servers. For example, Claude Code:
Start a new Claude Code session and run /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.
The default endpoint is:
If you set 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:
If a request includes both an API key header and an authenticated OAuth session, Spidra uses the API key from the 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.
Example:

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-28 revision 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_job can wait for a job with waitSeconds (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 .env file. Clients start npx spidra-mcp in your open project’s folder, and 0.7.0 loaded a .env file from there. A .env in a repo you cloned could point SPIDRA_API_URL at 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 .env that sets SPIDRA_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.
Tool names and arguments are unchanged, so prompts and allow-lists you already have keep working.

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:
For the hosted server with API-key authentication, confirm that the request contains 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:
An object schema with no defined properties gives the extraction model no fields to populate. 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.