semrush-cli
Skill by mrkooblu
Runs the local semrush CLI for keyword research, domain analytics, backlink checks and keyword gap analysis. Built for SEO and marketing users who have a SEMrush API key.
Install semrush-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mrkooblu/semrush-mcp /tmp/semrush-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/semrush-mcp/.claude/skills/semrush-cli ~/.claude/skills/semrush-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mrkooblu/semrush-mcp /tmp/semrush-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/semrush-mcp/.claude/skills/semrush-cli ~/.gemini/antigravity-cli/skills/semrush-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
semrush-cli is an agent skill that runs the locally installed semrush command-line tool for SEO and competitive research. It covers keyword overviews, related and question keywords, batch keyword difficulty, domain analytics, organic and paid keywords, backlinks, traffic analysis, and keyword gap analysis between two domains. The CLI is built from the unified semrush-mcp repo and shares its API client with the MCP server.
Commands accept a keyword or domain and return text or JSON output, with a database option for country codes such as us, uk and de. The skill requires the CLI to be installed globally and a SEMRUSH_API_KEY set in the environment or a .env file. Each API call consumes units per line returned, and the skill guides the assistant to pick the right command and summarize the results. It is aimed at SEO and marketing users who want Semrush data on keywords, competitors and backlinks.
Written from the project's SKILL.md and checked against it.
What it can do
- Quick overviewRuns a keyword or domain overview and detects which one the target is.
- Keyword researchReturns keyword overviews, related, question, broad match and SERP results.
- Batch keyword difficultyAnalyzes difficulty scores for several keywords in one command.
- Domain analyticsShows domain overviews, organic and paid keywords, and organic competitors.
- BacklinksLists backlink overviews and referring domains for a domain.
- Traffic analyticsReturns traffic summaries and traffic sources for a domain.
- Keyword gap analysisFinds keyword opportunities by comparing two domains.
- API units balanceChecks the remaining API units on the account.
What you need
- Semrush API key set as SEMRUSH_API_KEY
- semrush CLI installed globally from the semrush-mcp repo
- Semrush .Trends subscription for traffic analytics
Try asking
- Run a keyword overview for "project management software" in the uk database
- Show the organic keywords and top competitors for example.com
- Find keyword gaps between mysite.com and competitor.com, limit 50
Good to know
- Traffic analytics requires a Semrush .Trends subscription
- API calls consume units per line returned
- The skill is set to disable model invocation
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: .claude/skills/semrush-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashRead
Alternatives to semrush-cli
All alternatives →Generates 3 to 10 second short-form video clips for product reveals, motion teasers and ambient loops. It defaults to Seedance 2 and also works with Kling 3 and 4, Veo 3 and Sora 2, saving one MP4 to the project folder.
Builds a strategic SEO plan for new or existing websites, covering competitors, architecture, content, technical setup and a 12-month roadmap. It is aimed at people who need an SEO strategy rather than a one-time audit.
Audits and rewrites a LinkedIn profile for people who want their headline, About section and other parts improved. It scores the headline, audits the whole profile from 0 to 100 and drafts an About section that works above the fold.
Builds a LinkedIn plan covering content pillars, positioning, posting cadence and whether to start a newsletter. Aimed at people pursuing a career change, consulting, thought leadership or similar goals on LinkedIn.
Guides an AI assistant to design or rewrite a single-offer landing page for SaaS, apps and services. It covers structure, layout, copywriting, conversion tactics, and SEO/AEO.
Analyzes your own exported LinkedIn post data to show which posts worked, test whether a pattern is real, and plan posting experiments. Built for people who want to understand their own LinkedIn numbers. It refuses to draw conclusions from fewer than 10 posts.
Compare with video-shortform, seo-plan or linkedin-profile
semrush-cli: common questions
What does the semrush-cli skill do?
It runs the local semrush CLI to get keyword, domain, backlink and traffic data from Semrush. It also supports competitor and keyword gap analysis.
Does it need a Semrush account?
Yes, the source says SEMRUSH_API_KEY must be set in the environment or a .env file. Traffic analytics also needs a .Trends subscription.
How is API usage counted?
The source lists units per line for each operation, such as 10 for keyword overview and 50 for keyword difficulty. You can check your balance with the units command.
How do I install semrush-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is semrush-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is semrush-cli safe to use?
It scores 62 of 100. Grades: maintenance B, licence A, quality C. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to semrush-cli?
Similar skills: video-shortform, seo-plan, linkedin-profile, linkedin-strategy.
