Semrush scriptable from Bash.
Query the Semrush Analytics API for domain overviews, organic and paid keywords, organic competitors, backlinks and keyword ideas — from the shell. The CLI parses Semrush CSV into clean JSON rows over the Semrush MCP.
cogny --who
TWO PATHSSemrush hands you semicolon-delimited CSV exports you reformat in a spreadsheet before you can read them. The CLI parses every response into structured JSON rows in one call, ready to sort, diff, or feed to an agent. Connect Semrush 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 Semrush tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Semrush MCP. Send --input JSON, get JSON back.
mcp__Semrush__domain_overviewSummary metrics for a domain: rank, organic traffic, keywords, ads.mcp__Semrush__domain_organic_keywordsKeywords a domain ranks for organically, by traffic.mcp__Semrush__phrase_relatedRelated keyword ideas for a seed phrase.cogny tools list
MOREA sample of the rest of the Semrush surface. Run cogny tools list --json for every tool and its input schema.
mcp__Semrush__domain_paid_keywordsmcp__Semrush__domain_organic_competitorsmcp__Semrush__backlinks_overviewmcp__Semrush__backlinksmcp__Semrush__keyword_overviewmcp__Semrush__phrase_organiccogny --faq
No — it is the Cogny CLI calling the Semrush MCP over the cogny-mcp-proxy. You connect your Semrush API key once inside Cogny and then call the Analytics API from Bash.
No. Semrush returns semicolon-delimited CSV; the proxy parses it into `{ rows, count }` JSON for you. The column codes (Ph, Po, Nq, …) follow Semrush export-column conventions.
Any Semrush regional database — pass `database` like us, uk, de, fr, es, se. It defaults to us when omitted.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt