# Sonjoo MCP tools and agent skills

> Discover all Sonjoo MCP tools, retained and saved report workflows, and ways to install the sonjoo-audit skill for coding agents.

Canonical documentation: <https://sajaddehshiri.ir/sonjoo-seo-audit/features/mcp-agent-skills/>

Sonjoo supports two complementary integrations for AI assistants. The local MCP server exposes structured audit tools. The `sonjoo-audit` skill gives compatible coding agents a workflow for choosing scope, running the CLI or MCP, and citing evidence from reports. Both start from an authorized URL or a supplied report.

## Run the MCP server through standard input and output

Configure your client to launch `sonjoo mcp`. It exchanges JSON-RPC messages over stdio. Every desktop installer includes this command, and a portable executable works as well. Use the absolute executable path if the client has a different `PATH`. Pass `--config /path/to/sonjoo.toml` for project settings. A dashboard process is not required. [Setup for Codex, Claude Code, and Antigravity](https://sajaddehshiri.ir/sonjoo-seo-audit/ai/mcp/#register-the-local-executable)

The local server supports the `2026-07-28` protocol and legacy handshakes for `2025-11-25`, `2025-06-18`, `2025-03-26`, and `2024-11-05`. Client support determines how structured results are surfaced. Sonjoo has no hosted MCP endpoint or official MCP Registry package. [Protocol and client setup](https://sajaddehshiri.ir/sonjoo-seo-audit/ai/mcp/)

## MCP tool capabilities

| Tool             | What it does                                                                        | Inputs and scope                                                                                                                                                                                                                                                         |
| ---------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `audit_url`      | Queues a page audit or bounded crawl and returns its run ID.                        | Supply `url`; optional fields include `crawl`, `maxPages`, `maxDurationS`, `categories`, `respectCrawlDelay`, `render`, `save`, and `waitS` (up to 25 seconds).                                                                                                          |
| `audit_status`   | Reports run state, errors, and the summary on completion.                           | Supply `runId` and poll with a delay and a client-side deadline.                                                                                                                                                                                                         |
| `cancel_run`     | Requests cancellation of the specified active run.                                  | Supply `runId` and read the subsequent state to confirm the outcome.                                                                                                                                                                                                     |
| `list_audits`    | Lists saved local audits.                                                           | Optional domain filter and `limit` of 1–100 (default 20). Use the returned `auditId` to reopen the report.                                                                                                                                                               |
| `get_audit`      | Returns an AI-readable text report.                                                 | Supply a saved `id` or a retained `runId`. Optional `maxFindings` accepts 1–500 (default 50).                                                                                                                                                                            |
| `get_findings`   | Returns grouped, paginated findings with counts and up to 20 sample URLs per group. | Supply `id` or `runId`, then filter by rule, URL, or status (`fail`, `warn`, or `not-measured`). Continue with the returned cursor and the same filters. `limit` accepts 1–200 (default 50).                                                                             |
| `get_rule_pages` | Returns exact per-URL rows for one rule.                                            | Supply `ruleId` and either `id` or `runId`. Set `url` for an exact match. `status` accepts `pass`, `warn`, `fail`, `not-measured`, or `issues` for non-advisory warnings and failures. `limit` accepts 1–200 (default 100) and `offset` accepts 0–1,000,000 (default 0). |
| `compare_audits` | Compares two saved audits.                                                          | Supply the current audit ID as `a` and the baseline as `b`. Check comparable profiles before interpreting a score change.                                                                                                                                                |
| `list_rules`     | Searches the rule catalog by category or a query.                                   | Call this without fetching a site to verify MCP tool discovery.                                                                                                                                                                                                          |
| `explain_rule`   | Describes a rule and its configuration.                                             | Supply a stable `ruleId`, for example `core-title-present`.                                                                                                                                                                                                              |

[Tool argument and result schemas](https://github.com/sajaddp/sonjoo-seo-audit/blob/main/assets/mcp/tools.json) · [Rule catalog](https://sajaddehshiri.ir/sonjoo-seo-audit/features/rules/)

For one-off work pass `save: false` and use `runId` to read the most recent completed result before another run starts or the MCP process exits. Use a saved audit ID for durable follow-up. Omit `save` to use the effective project setting. A group's sample can omit affected URLs. Use `get_rule_pages` when you need to cite exact per-page evidence, and check measured coverage before drawing conclusions. [MCP run and findings example](https://sajaddehshiri.ir/sonjoo-seo-audit/ai/mcp/#run-an-audit-and-get-its-findings)

## Bound requests and choose when to render

MCP accepts at most one active audit per server process. The effective crawl page count is clipped to 1–1,000 pages. With `maxPages` omitted it uses the project configuration (10 by default). `maxDurationS` accepts 1–86,400 seconds and falls back to a positive configured duration or 3,600 seconds. Set both bounds explicitly for unattended tasks. The crawl collection deadline is separate from the client's polling deadline. The `audit_url` schema does not include a URL list or a local answer question. To use those modes, [choose another interface](https://sajaddehshiri.ir/sonjoo-seo-audit/features/).

By default, MCP allows public network destinations and blocks browser rendering. For a trusted local fixture, `--allow-host` can allow the exact host and port for HTTP requests. It does not enable browser rendering. Prefer running Chromium checks in the local CLI and sharing the resulting export. Read the [MCP rendering and network policy](https://sajaddehshiri.ir/sonjoo-seo-audit/ai/mcp/#local-urls-and-browser-rendering) before granting broader access with `--allow-private`.

## Install and use the Sonjoo agent skill

Install `sonjoo-audit` through `npx skills` for Codex, Claude Code or Google Antigravity, or use the Sonjoo plugin from the Codex or Claude Code marketplace. The package can also be copied from a local checkout. The `npx` setup requires a compatible Node.js version. The skill package supplies instructions, so separately install the CLI or configure the MCP executable when you want to run a new audit. [Install and verify the agent skill](https://sajaddehshiri.ir/sonjoo-seo-audit/ai/agent-skills/)

Ask for a single-page check, a bounded crawl, or review of an existing exported report. The skill defaults to a single page and unsaved history unless the request says otherwise. It selects evidence by rule ID and URL, distinguishes warnings from unmeasured findings, and asks for source evidence when AI citations or actual search performance are at issue. [Review an existing report](https://sajaddehshiri.ir/sonjoo-seo-audit/ai/review-reports/)
