# SEO audits in OpenCode via MCP

> Add the Crawlwise MCP server to opencode.json as a remote server, authenticate with opencode mcp auth, and audit pages from OpenCode.

Canonical: https://crawlwise.site/docs/opencode

OpenCode reads remote MCP servers from opencode.json. Add Crawlwise and authenticate once with opencode mcp auth.

## 1. Add the server

Add the block below to opencode.json in your project (or ~/.config/opencode/opencode.json).

opencode.json

*json*

```
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "crawlwise": {
      "type": "remote",
      "url": "https://crawlwise.site/mcp",
      "enabled": true
    }
  }
}
```

## 2. Sign in

The first tool call opens the Crawlwise sign-in page. Approve it and the tools stay connected. If your client cannot do OAuth, create a key at /account/api (Growth and Agency) and send it as Authorization: Bearer cw_live_….

## 3. Check it worked

Start OpenCode and ask it to list crawlwise tools.

## 4. No MCP? Pipe the CLI

The CLI works without an account for a first look (1 page a day). Its llm format is written for an agent: only defects, each citing its check.

*bash*

```
npx crawlwise audit https://example.com --format llm
```

## Prompts to try

- `Audit https://example.com with crawlwise and fix the priority items. Re-audit until none are left.`
- `Use crawlwise to check whether GPTBot, ClaudeBot and PerplexityBot can read https://example.com.`
- `Crawl my verified site with crawlwise and list broken internal links and redirect chains.`

The agent should fix only what is under **priority**. Items marked **not measured** are tests that returned no result, not defects.

OpenCode calls a hosted server type remote.

[All agents](https://crawlwise.site/agents) · [Integrations](https://crawlwise.site/integrations) · [MCP reference](https://crawlwise.site/docs/mcp) · [Claude Code](https://crawlwise.site/docs/claude-code) · [OpenAI Codex](https://crawlwise.site/docs/codex) · [Gemini CLI](https://crawlwise.site/docs/gemini-cli) · [GitHub Copilot](https://crawlwise.site/docs/copilot) · [ChatGPT](https://crawlwise.site/docs/chatgpt) · [GitHub Action](https://crawlwise.site/docs/github-action)
