+

Add DoubleCrawl to Vercel AI SDK

Give apps built with the Vercel AI SDK web access that works when a plain fetch fails. One minute to set up, 5,000 free credits to start, and you pay only for pages we deliver.

✓ No credit card   ✓ 5,000 free credits   ✓ Failed pages cost 0
Terminal: node
$ npx tsx scripts/brief.ts
step 1 · tool-call fetch_page { url: "https://news.example/today", country: undefined }
step 1 · tool-result 200 delivered · 1 credit
text Today's top stories: a new open-source database engine, a post-mortem of a large cloud outage, and a long read on compilers.
Example session. Illustration of a real workflow.
Setup

Set up in one minute

3 steps · about a minute · works on every plan, including Free

  1. 1

    Install the MCP client

    Add the AI SDK's MCP package:

    Terminal
    npm install ai @ai-sdk/mcp
  2. 2

    Load DoubleCrawl as tools

    Use your API key from the dashboard (get one with 5,000 free credits):

    TypeScript
    import { createMCPClient } from '@ai-sdk/mcp';
    
    const doublecrawl = await createMCPClient({
      transport: {
        type: 'http',
        url: 'https://mcp.doublecrawl.com/mcp',
        headers: { Authorization: `Bearer ${process.env.DOUBLECRAWL_API_KEY}` },
      },
    });
    const tools = await doublecrawl.tools();
  3. 3

    Pass the tools to generateText

    Give tools to generateText or streamText and close the client when you're done.

Pricing

Pay only for pages we deliver

Vercel AI SDK uses your DoubleCrawl credits. Failed pages are free, and annual billing saves 10%.

Free
$0
5,000 credits once
≈ 5,000 Level 1 · 1,250 Level 2 pages
5 concurrent requests
Start
$29/mo
250,000 credits
≈ 250k Level 1 · 62.5k Level 2 pages
20 concurrent requests
Growth
$99/mo
1,000,000 credits
≈ 1M Level 1 · 250k Level 2 pages
50 concurrent requests
Business
$299/mo
4,000,000 credits
≈ 4M Level 1 · 1M Level 2 pages
150 concurrent requests
Scale
$699/mo
12,000,000 credits
≈ 12M Level 1 · 3M Level 2 pages
500 concurrent requests

A page costs 1 credit at Level 1, 4 at Level 2 or 25 at Level 3. Full pricing and Enterprise →

FAQ

Vercel AI SDK and DoubleCrawl

Something missing? Write to us.

Do I need an API key to use DoubleCrawl in Vercel AI SDK?

Yes. Create a free account, copy your key from the dashboard and put it in the config above. You start with 5,000 free credits.

When does Vercel AI SDK use DoubleCrawl?

Whenever it needs a web page, and especially when a plain fetch fails. You can also ask for it directly: \"use DoubleCrawl to open ...\".

What does a page cost?

1 credit at Level 1, 4 at Level 2 and 25 at Level 3. Failed pages cost 0, and retries are on us.

Can I get the page as seen from another country?

Yes. Mention the country in your request ("from Germany") and Vercel AI SDK passes it to DoubleCrawl.

Does it work with streamText and edge runtimes?

The MCP client works with both generateText and streamText. Close the client when the response is finished.

Your agent's next page is on us.