Pro · MCP server

Let your coding agent fix your GEO

Connect Claude Code, Cursor, Codex or Claude Desktop to ghrefs. The agent audits your site, applies the fix plan in your repository and re-audits to prove the changes landed.

The audit, inside the agent

Your agent scores the site itself and reads every failing check, so it starts from what is actually wrong, not a generic checklist.

The same tailored fix plan

Each finding comes with the concrete deliverable: a drafted llms.txt, the robots.txt patch, JSON-LD with your real company facts, the copy to write.

Proof, not promises

When the agent is done it reports back. ghrefs re-audits the live site and shows what now passes, what still fails and what regressed.

Get started in three steps

About two minutes, inside the repository that serves your website.

1Create an API key
Keys belong to your ghrefs account and work while it is on Pro.

Sign in to create a key

Keys are tied to your account. Sign in with Google, then upgrade to Pro if you haven't yet.

2Connect your coding agent
The server speaks MCP over HTTP at https://www.ghrefs.com/api/mcp. Pick your agent; replace <your ghrefs key> with your key.

Run once in your terminal, inside the repo that serves your site.

claude mcp add --transport http ghrefs https://www.ghrefs.com/api/mcp --header "Authorization: Bearer <your ghrefs key>"
3Tell it to fix your site
Open the agent in the repository that serves your website and paste this. It audits, fixes, then reports back so ghrefs can re-audit.
Use the ghrefs tools: audit <your-site.com>, get the full fix plan, make the changes in this repo, then report the outcome with report_fix_outcome so the site is re-audited.

What the agent can call

Eight tools. The agent picks them itself; you only need the prompt from step 3.

audit_site

Scores the site 0–100 across the four GEO dimensions and returns the report id. Reuses an audit from the last hour unless told to run fresh.

get_fix_plan

The fix prompt for the whole report, one dimension or one check, written for this company from its real pages and offerings. Opens a fix session.

get_fix_kit_file

A ready-to-commit llms.txt, robots.txt patch or JSON-LD block for the site.

report_fix_outcome

The agent says what it applied, skipped and changed. ghrefs re-audits the live site and returns what now passes, still fails or regressed.

get_report

Every check with its status, points, what the audit found and how to fix it, plus the score history.

get_ai_visibility

What ChatGPT, Perplexity, Gemini and Claude say about the brand, from your latest visibility check.

list_projects / track_site

The sites you track, and adding one so it gets the weekly GEO report.

Questions

Which agents work?
Anything that speaks MCP over HTTP with a bearer header: Claude Code, Cursor, OpenAI Codex, and Claude Desktop (through mcp-remote). Claude.ai in the browser needs OAuth connectors, which we don't offer yet.
Is the fix plan different from the one on the report page?
No. It is the same prompt the "Get your agent to fix this" button writes, produced by the same code, so what the agent sees is what you would have pasted. The MCP route just removes the copy-paste and lets the agent re-audit itself.
What does the agent change?
Only files in the repository you run it in. ghrefs never touches your site; it reads the public pages to audit them and to tailor the plan. Review the diff like any other change before you deploy.
What does ghrefs record?
Each tool call, the fix plans served, and what the agent reports back with the re-audit delta. We use it to improve the recommendations. Your API key is stored as a hash and shown to you once.
Are there limits?
Up to 5 active keys per account and 60 fresh audits per hour. Reading an existing report is unlimited. A key stops working the moment the account is no longer on Pro.