Skip to content

Use Crawler MCP with OpenCode

OpenCode is an open-source terminal agent that speaks the Model Context Protocol. Once crawler-mcp is installed (guide), declare it in your opencode.json.

~/.config/opencode/opencode.json

Available to every directory you launch OpenCode from.

  1. which crawler-mcp
  2. {
    "$schema": "https://opencode.ai/config.json",
    "mcp": {
    "crawler-sh": {
    "type": "local",
    "command": ["/Users/you/.crawler/bin/crawler-mcp"],
    "enabled": true
    }
    }
    }

    Use the absolute path from step 1. OpenCode passes the binary the way it appears in the array, with no shell expansion.

  3. Close any running session and start a new one. The three tools (crawl_site, fetch_page, discover_links) show up under the crawler-sh server.

Set CRAWLER_TOKEN in the environment block to raise the per-crawl cap from 50 to 400 pages (or 10,000 with a Pro subscription). See Tier caps.

{
"mcp": {
"crawler-sh": {
"type": "local",
"command": ["/Users/you/.crawler/bin/crawler-mcp"],
"enabled": true,
"environment": { "CRAWLER_TOKEN": "your-token" }
}
}
}

In OpenCode, ask:

Use crawler-sh to fetch https://crawler.sh and summarise it.

OpenCode will call fetch_page and reason over the Markdown response.