Ahrefs from the shell.
Pull Domain Rating, backlinks, referring domains, organic keywords, top pages and SERP overviews from the Ahrefs API v3 — straight from Bash. No CSV exports, no manual Site Explorer clicking, just the Cogny CLI over the Ahrefs MCP.
cogny --who
TWO PATHSToday you open Ahrefs Site Explorer, run a report per tab, and export CSVs you then stitch together by hand. The CLI returns the exact rows you ask for as JSON you can sort, diff, or pipe into an agent in one call. Connect Ahrefs once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.
❯ start SoloSelf-onboard with one command. The CLI issues a key, wires nothing, and exposes every Ahrefs tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Ahrefs MCP. Send --input JSON, get JSON back.
mcp__Ahrefs__domain_ratingDomain Rating (0-100) for any target domain.mcp__Ahrefs__organic_keywordsKeywords a target ranks for, with volume, position and traffic.mcp__Ahrefs__backlinksList backlinks pointing to a target, newest first.cogny tools list
MOREA sample of the rest of the Ahrefs surface. Run cogny tools list --json for every tool and its input schema.
mcp__Ahrefs__subscription_infomcp__Ahrefs__backlinks_statsmcp__Ahrefs__refdomainsmcp__Ahrefs__site_explorer_overviewmcp__Ahrefs__organic_competitorsmcp__Ahrefs__top_pagesmcp__Ahrefs__keywords_explorermcp__Ahrefs__serp_overviewmcp__Ahrefs__batch_analysiscogny --faq
No — it is the Cogny CLI calling the Ahrefs MCP over the cogny-mcp-proxy. You connect your Ahrefs API token once inside Cogny and then call every endpoint from Bash. No bespoke API client to wire up.
Yes. The proxy calls the Ahrefs API v3 with your token, so each call consumes your account/subscription units exactly as a direct API call would. Use `subscription_info` to check remaining units.
Yes. After `npx @cogny/cli init` issues a key, an agent can call `cogny tools call mcp__Ahrefs__organic_keywords --input ...` from any shell — no MCP wiring or restart needed.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt