Skip to main content
Glama
crawldart MCP

crawldart MCP

Official
by crawldart
README.md
# crawldart MCP

crawldart MCP is one server that exposes every public [crawldart](https://crawldart.dev) scraper as a tool. Claude, Cursor, ChatGPT and any other MCP client can call them directly.

Each tool calls the Apify API with your own Apify token. The run is billed to your Apify account, and crawldart is paid per result. This package does not host the scrapers and it does not store your token.

The npm name is `crawldart-mcp`. This repo copy is ready to publish. It has not been published yet.

## What you need

- Node.js 20 or newer
- An Apify API token from [console.apify.com/account/integrations](https://console.apify.com/account/integrations)

Put the token in `APIFY_TOKEN`. Do not commit it.

## Claude Desktop

Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (on Linux, `~/.config/Claude/claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "crawldart": {
      "command": "npx",
      "args": ["-y", "crawldart-mcp"],
      "env": {
        "APIFY_TOKEN": "apify_api_YOUR_TOKEN"
      }
    }
  }
}
```

Restart Claude Desktop after saving.

Until `crawldart-mcp` is on npm, point `command` at the built file in a checkout instead:

```json
{
  "mcpServers": {
    "crawldart": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/actor-studio/mcp/dist/src/index.js"],
      "env": {
        "APIFY_TOKEN": "apify_api_YOUR_TOKEN"
      }
    }
  }
}
```

Build that file first with `npm install` and `npm run build` inside `mcp/`.

## Cursor

Edit `~/.cursor/mcp.json` and use the same `mcpServers` block as Claude Desktop.

## Claude Code

Add the same `mcpServers` block to `~/.claude.json`, or to `.mcp.json` in a project:

```json
{
  "mcpServers": {
    "crawldart": {
      "command": "npx",
      "args": ["-y", "crawldart-mcp"],
      "env": {
        "APIFY_TOKEN": "apify_api_YOUR_TOKEN"
      }
    }
  }
}
```

From a checkout, before the npm package exists, use `node` and the absolute path to `mcp/dist/src/index.js` in `args`, as in the Claude Desktop example.

## HTTP

Stdio is the default, for Claude Desktop and Cursor. For a hosted endpoint later, start Streamable HTTP:

```bash
PORT=8080 node dist/src/index.js --http
```

Clients POST JSON-RPC to `http://HOST:8080/mcp` and send the token on that request:

```
Authorization: Bearer apify_api_YOUR_TOKEN
Content-Type: application/json
Accept: application/json, text/event-stream
```

The process reads the header for that request and does not write it down. `GET /health` returns `{"ok":true}` and does not need a token. Listing tools and estimating cost also work without a token. A scrape tool without a token returns a clear error and does not call Apify.

## Tools

Two meta tools are free and do not call Apify:

| Tool | What it does |
|---|---|
| `crawldart_list_tools` | Catalogue of every scraper, with required input and Free/Gold cost per 1,000 |
| `crawldart_estimate_cost` | Input `tool`, `rows`, and optional `plan` (`free` or `gold`). Returns the USD cost |

Scraper tools, in catalogue order. `query` is required on every one. `maxResults` defaults to 20. This server never asks an actor for more than 200 rows, and some actors have a lower cap. `maxTotalChargeUsd` is optional on every scraper.

| Tool | Free per 1,000 | Gold per 1,000 | Max rows |
|---|---|---|---|
| `crawldart_tradeindia` | $3.60 | $2.16 | 200 |
| `crawldart_exportersindia` | $3.59 | $2.15 | 200 |
| `crawldart_goodfirms` | $4.00 | $2.40 | 200 |
| `crawldart_takealot` | $0.90 | $0.54 | 200 |
| `crawldart_bring_a_trailer` | $2.50 | $1.50 | 200 |
| `crawldart_quintoandar_rentals` | $1.80 | $1.08 | 200 |
| `crawldart_rakuten_japan` | $1.35 | $0.81 | 200 |
| `crawldart_steam_store` | $0.81 | $0.49 | 200 |
| `crawldart_luma_events` | $2.70 | $1.62 | 200 |
| `crawldart_tokopedia` | $1.35 | $0.81 | 200 |
| `crawldart_jumia` | $3.60 | $2.16 | 200 |
| `crawldart_foodpanda` | $3.60 | $2.16 | 200 |
| `crawldart_github` | $1.04 | $0.62 | 200 |
| `crawldart_youtube` | $0.45 | $0.27 | 200 |
| `crawldart_hackernews` | $0.18 | $0.11 | 200 |
| `crawldart_google_play_reviews` | $0.09 | $0.05 | 40 |
| `crawldart_wikipedia` | $1.04 | $0.62 | 40 |
| `crawldart_amazon_products` | $6.30 | $6.30 | 100 |
| `crawldart_google_maps_places` | $3.60 | $2.16 | 20 |
| `crawldart_whop` | $1.35 | $0.81 | 200 |

A successful call returns one summary line (row count and estimated Free-plan cost) and then compact JSON rows. Empty searches come back as "No results". A site block comes back as "Blocked" and does not present error rows as data.

## Pricing

Prices above are the suggested pay-per-event rates from each actor: one result event per row, plus a $0.00005 start event. You pay Apify. Apify pays crawldart per event. Error rows, duplicates and empty searches are not billed by the actors.

Set `maxTotalChargeUsd` (for example `0.10`) on a call when you want a hard cap. Apify stops the actor at that cap and keeps the rows it already found.

These are the planned rates. The live price on Apify wins if a listing differs. Check [crawldart.dev](https://crawldart.dev) or call `crawldart_list_tools`.

## Privacy

- Stdio: the token is the `APIFY_TOKEN` environment variable in your MCP config.
- HTTP: the token is the `Authorization` header on each request.
- The server sends it only to `https://api.apify.com` as a bearer token.
- It is not written to disk, not logged, and not kept after the request.
- The local smoke script can read `~/.apify/auth.json` when `APIFY_TOKEN` is unset. It never prints the token.

## Develop

```bash
cd mcp
npm install
npm test
npm run smoke
```

`npm test` builds `catalog.json` from `actors/*/.actor/actor.json` and `input_schema.json` (publish list only) and runs the unit tests. `npm run smoke` runs `crawldart_wikipedia` with `maxResults` 1 when a token is available, and skips otherwise.

## Links

- Site: [https://crawldart.dev](https://crawldart.dev)
- Apify token: [https://console.apify.com/account/integrations](https://console.apify.com/account/integrations)