Spicrawl plugin for OpenCode. It adds the Spicrawl MCP server to your OpenCode config, so agents can scrape pages to Markdown or JSON, run batch jobs, use persistent login sessions, look up request history and usage, and search the Spicrawl docs.
-
Create an API key at app.spicrawl.com.
-
Export it where OpenCode runs:
export SPICRAWL_API_KEY=spicrawl_live_... -
Add the plugin to
opencode.json(project) or~/.config/opencode/opencode.json(global):{ "$schema": "https://opencode.ai/config.json", "plugin": ["opencode-spicrawl"] }
OpenCode installs the package from npm on start. Check the connection with:
opencode mcp listspicrawl should show as connected. Its tools are named spicrawl_*; ask the agent to scrape a URL and it will pick the right one.
On startup the plugin adds this entry to OpenCode's config, in memory. It does not write to your config files:
{
"mcp": {
"spicrawl": {
"type": "remote",
"url": "https://mcp.spicrawl.com/mcp",
"oauth": false,
"enabled": true,
"headers": { "Authorization": "Bearer <SPICRAWL_API_KEY>" }
}
}
}- If
SPICRAWL_API_KEYis unset or blank, no server is added, so there is no failing connection. OpenCode logs one warning (opencode run --print-logsshows it). - If your config already has an
mcp.spicrawlentry, the plugin leaves it alone. - Other MCP servers are untouched.
The same result with no plugin, in opencode.json:
{
"mcp": {
"spicrawl": {
"type": "remote",
"url": "https://mcp.spicrawl.com/mcp",
"oauth": false,
"enabled": true,
"headers": { "Authorization": "Bearer {env:SPICRAWL_API_KEY}" }
}
}
}- Docs: https://docs.spicrawl.com/agents/opencode
- API keys: https://app.spicrawl.com
Apache-2.0