Connect your coding agent to crawlapi’s hosted MCP server to read web pages, JavaScript apps, PDFs, Office files, X posts, YouTube videos, and docs sites directly from chat. Authentication runs through browser OAuth so no API key sits in your editor config.
Let your agent wire it up
Paste this prompt into the coding agent you want to connect:
Your agent registers the MCP server in its own config, runs its OAuth sign-in command if supported, and tells you how to verify in a fresh session.
To make your agent prefer crawlapi automatically without naming it each time, follow Use crawlapi as default.
Connect manually
Pick the section for the client you are connecting — each client stores its own config and OAuth sign-in separately.
claude mcp add --transport http --scope user crawlapi https://mcp.crawlapi.dev/mcp
claude mcp login crawlapicodex mcp add crawlapi --url https://mcp.crawlapi.dev/mcp
codex mcp login crawlapiopencode mcp add --global crawlapi --url https://mcp.crawlapi.dev/mcp
opencode mcp auth crawlapipi mcp add crawlapi --exposure direct --url https://mcp.crawlapi.dev/mcp
pi mcp login crawlapi{
"mcpServers": {
"crawlapi": {
"url": "https://mcp.crawlapi.dev/mcp"
}
}
}code --add-mcp '{"name":"crawlapi","type":"http","url":"https://mcp.crawlapi.dev/mcp"}'- Claude Code: Omit
--scope userto register for the current project only. Pass--no-browsertoclaude mcp login crawlapiover SSH, or run/mcpand selectcrawlapiinside an active session. - Codex: For a single trusted project, add
[mcp_servers.crawlapi]withurl = "https://mcp.crawlapi.dev/mcp"to.codex/config.toml, then runcodex mcp login crawlapi. - OpenCode: Alternatively, add
"crawlapi": {"type": "remote", "url": "https://mcp.crawlapi.dev/mcp"}undermcp.serversinopencode.json, then runopencode mcp auth crawlapi. - Cursor: Add the JSON block above to
~/.cursor/mcp.json(global) or.cursor/mcp.json(project), then click Authenticate in Cursor’s MCP settings. - Amp & Grok: Run
amp mcp add crawlapi https://mcp.crawlapi.dev/mcp(Amp), orgrok mcp add --transport http crawlapi https://mcp.crawlapi.dev/mcpfollowed bygrok mcp login crawlapi(Grok). - Gemini CLI & Antigravity: Install the extension with
gemini extensions install https://github.com/crawlapi-dev/crawl(orgemini mcp add -s user -t http crawlapi https://mcp.crawlapi.dev/mcp), or add the JSON block above to~/.gemini/config/mcp_config.jsonin Antigravity. - Crush & Kimi Code: In Crush
crushrc, addmcp add crawlapi --type http --url https://mcp.crawlapi.dev/mcp --oauth true; in Kimi Code, run/mcp-configor addmcpServersto~/.kimi-code/mcp.json. - VS Code: For workspace scope instead of user profile, create
.vscode/mcp.jsonwith{"servers": {"crawlapi": {"type": "http", "url": "https://mcp.crawlapi.dev/mcp"}}}. - Windsurf & other clients: Add
"crawlapi": { "serverUrl": "https://mcp.crawlapi.dev/mcp" }insidemcpServersin~/.codeium/windsurf/mcp_config.json, or point any remote MCP client (Claude, ChatGPT, Gemini, Copilot, and others) athttps://mcp.crawlapi.dev/mcpwith OAuth discovery enabled.
Verify the connection
Open a new session and run:
Tools
| Tool | Inputs | What it does |
|---|---|---|
scrape |
url, format (markdown | json), timeout_ms (1000–60000), offset |
Reads one web page or document as clean markdown (default, full text) or structured JSON (metadata, JSON-LD, tables, links; no prose). Pass offset from next_offset to continue a long page |
site |
url, max_pages (1–50, default 10), max_depth (0–3, default 1), max_credits (1–500, default 25), format, include, exclude |
Crawls pages on the same host and port within page, depth, and credit bounds |
account |
{} |
Checks your email, credit balance, holds, and rate limits |
Authentication and output handling
Supported MCP clients sign in through your browser at app.crawlapi.dev using OAuth (PKCE), keeping API keys out of config files. Clients without OAuth support can send Authorization: Bearer <key> instead.
To stop an agent from spending too many credits during a crawl, pass max_credits (default 25, max 500) and max_pages (default 10, max 50) to site. See Credits and pricing for request billing. Signing out of all sessions or suspending an account revokes connected MCP clients immediately.
Page text is fenced as untrusted data before reaching your model. Very large pages return truncated=true with a next_offset value — call scrape again with offset set to next_offset to read the next chunk. Long site crawls return every page fetched so far.
Local MCP (crawl mcp)
If you already installed the CLI — or want full output from large pages written to local temp files on disk — run the local MCP server instead:
crawl login
crawl setupcrawl setup installs the CLI skill and prints the local crawl mcp config for each supported agent on your machine. Local crawl mcp also includes a login tool so agents can trigger browser approval straight from chat.
Manage access and delete data
- Disconnect an MCP client: Revoke access inside your AI platform’s connected-apps settings (which notifies our OAuth revocation endpoint immediately), or sign out of all sessions at app.crawlapi.dev/account to revoke every active MCP token right away. If you connected with a bearer API key instead of OAuth, revoke that key at app.crawlapi.dev/keys.
- What we store: crawlapi stores your account profile, credit ledger, and request receipts (host, status, timing, and credits — never URL paths, query strings, or page text in logs). See our privacy policy for full data handling and retention details.
- Delete your account: Email
support@crawlapi.devfrom your account address to suspend and permanently erase your account identity and connected OAuth grants.
Troubleshooting
| Symptom | Fix |
|---|---|
| Server missing or no tools listed | Confirm the URL ends in /mcp, restart or refresh your client, and verify the server is enabled for the current session. |
| Agent answers from memory without calling a tool | Name crawlapi explicitly in the prompt, ask for a live check, and require the agent to report which tool ran. |
401 Unauthorized or repeated OAuth prompts |
Re-authenticate from your client’s MCP menu, or check your Authorization: Bearer key at app.crawlapi.dev/keys. |
INSUFFICIENT_CREDITS |
Run the account tool to check your balance and top up at app.crawlapi.dev/billing. |
| Long page or crawl was trimmed | For scrape, call it again with offset set to next_offset to continue reading. For site, narrow the crawl with max_pages, include, or exclude (or run local crawl mcp to save full output to disk). |