# Add DoubleCrawl to LangChain

> Give LangChain and LangGraph agents web access that works when a plain fetch fails. One minute to set up, 5,000 free credits, pay only for delivered pages.

### 1. Install the adapter

DoubleCrawl is a standard MCP server, so the official adapter is all you need:

```bash
pip install langchain-mcp-adapters
```

### 2. Load DoubleCrawl as tools

Use your API key from the dashboard ([get one with 5,000 free credits](https://doublecrawl.com/signup?utm_source=integration&utm_content=langchain)):

```python
import os
from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
    "doublecrawl": {
        "transport": "streamable_http",
        "url": "https://mcp.doublecrawl.com/mcp",
        "headers": {"Authorization": f"Bearer {os.environ['DOUBLECRAWL_API_KEY']}"},
    }
})
tools = await client.get_tools()
```

### 3. Give the tools to your agent

Pass `tools` to any LangChain or LangGraph agent. It calls `fetch_page` when a plain fetch fails.

### Try asking

Research the five newest listings for 2-bedroom flats in Berlin and return them as JSON.

Web version: https://doublecrawl.com/integrations/langchain.html
