@adsim/semrush-mcp-server
Provides tools for interacting with the SEMrush SEO analytics API, including domain organic and paid analytics, keyword research, backlink analysis, keyword and backlink gap analysis, traffic analytics, AI recommendations, position tracking, site audits, API credit and usage management, and keyword cluster enrichment across 71 regional databases.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@adsim/semrush-mcp-server find quick-win keywords for example.com in the US"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@adsim/semrush-mcp-server
SEMrush MCP Server for Claude — 10 tools, 40 actions. Full access to SEMrush SEO analytics from Claude Code and Claude Desktop.
Install
npm install -g @adsim/semrush-mcp-serverRequires Node.js >= 18 and a SEMrush API key.
Related MCP server: Google Search Console MCP Server
Quick Start
Claude Code
Add to ~/.claude.json:
{
"mcpServers": {
"semrush": {
"type": "stdio",
"command": "semrush-mcp-server",
"env": {
"SEMRUSH_API_KEY": "your_api_key",
"SEMRUSH_DEFAULT_DATABASE": "fr"
}
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"semrush": {
"command": "semrush-mcp-server",
"env": {
"SEMRUSH_API_KEY": "your_api_key",
"SEMRUSH_DEFAULT_DATABASE": "fr"
}
}
}
}Restart your client. 10 tools (40 actions) are now available.
Tools
Tool | Actions | Description |
| 9 | Domain analytics (organic, paid, competitors, history) |
| 8 | Keyword research (volume, difficulty, SERP, questions, bulk) |
| 7 | Backlink profiles (overview, anchors, TLD, geo) |
| 3 | Gap analysis (keyword gap, backlink gap, content gap) |
| 3 | Traffic analytics (summary, sources, top pages) |
| 3 | AI recommendations (quick wins, traffic growth, competitor) |
| 2 | Position tracking (current + history) |
| 2 | Site audit (issues + pages) |
| 2 | Account management (balance + usage stats) |
| 1 | Keyword cluster enrichment with scoring |
Each tool uses an action parameter to select the analysis type. This grouped design keeps the context window lean (10 tool definitions instead of 40).
semrush_domain — Domain Analytics (9 actions)
Action | Description |
| Organic keywords, positions, traffic estimates |
| Paid search (Google Ads) keywords |
| Overview across all SEMrush databases |
| Detailed overview for a single database |
| Historical ranking data over time |
| Organic search competitors |
| Paid search (Google Ads) competitors |
| Organic keywords for a specific URL |
| Paid keywords for a specific URL |
semrush_keyword — Keyword Research (8 actions)
Action | Description |
| Search volume, CPC, competition, trends |
| Related keyword variations |
| Question-based keywords (PAA, featured snippets) |
| Difficulty index (batch up to 100, semicolon-separated) |
| Domains ranking in Google's top 100 |
| Domains bidding on a keyword in Google Ads |
| Broad match variations and long-tail alternatives |
| Batch keyword analysis (up to 100 keywords) |
semrush_backlinks — Backlinks Analysis (7 actions)
Action | Description |
| Total backlinks, referring domains, follow/nofollow |
| Individual backlinks with source URLs and anchors |
| Referring domains with authority scores |
| Anchor text distribution |
| Distribution by TLD (.com, .fr, .edu, .gov...) |
| Geographic distribution of backlinks by country |
| Pages that attract the most backlinks |
semrush_gap — Gap Analysis (3 actions)
Action | Description |
| Keywords your competitor ranks for but you don't |
| Domains linking to competitors but not to you |
| Content topics missing from your domain |
semrush_traffic — Traffic Analytics (3 actions)
Action | Description |
| Traffic summary (visits, bounce rate, duration) |
| Most visited pages |
| Traffic source breakdown |
semrush_recommend — AI Recommendations (3 actions)
Action | Description |
| Keywords in positions 11-30 with traffic potential |
| Comprehensive traffic growth plan |
| Head-to-head competitive analysis with action plan |
semrush_tracking — Position Tracking (2 actions)
Action | Description |
| Current keyword positions |
| Historical position data |
semrush_audit — Site Audit (2 actions)
Action | Description |
| Technical SEO issues found |
| Audited pages with scores |
semrush_credits — Account Management (2 actions)
Action | Description |
| Remaining API units |
| Session statistics (calls, errors, success rate) |
semrush_enrich_cluster — Cluster Enrichment (1 action)
Accepts a keyword array and returns enriched data with:
Search volume, CPC, keyword difficulty per keyword
cluster_score(0-100) andcluster_grade(A-D)opportunity_scorefor prioritizationOptional: current positions when
target_domainprovided
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Your SEMrush API key |
| No |
| Default regional database |
| No |
| Max results per API call |
| No |
| Cache duration in seconds |
| No |
| Max requests per second |
Example Queries
"Give me an overview of nike.com"
"Top organic keywords for lequipe.fr"
"Who ranks for 'credit immobilier' in France?"
"Backlink audit of my-domain.com"
"Quick wins for my-site.com — keywords close to page 1"
"Compare my-site.com vs competitor.com"
"Enrich this cluster: seo, backlinks, netlinking"
"Keyword gap between my-site.com and competitor.com"Built-in Governance
Rate limiter — token bucket, 10 req/sec (configurable)
Response cache — differentiated TTL per endpoint category (30min to 24h)
Quota management — per-user daily budgets with action-based cost tracking
Audit trail — JSON logs on stderr (tool, endpoint, params, status, duration)
French summaries — automatic human-readable analysis in French
Supported Databases
71 regional databases: us, uk, ca, fr, de, es, it, nl, be, ch, at, dk, no, se, fi, pl, ie, pt, hu, cz, sk, ro, bg, gr, hr, si, lt, lv, ee, cy, mt, rs, ua, jp, in, au, sg, hk, kr, my, ph, th, tw, id, vn, il, tr, za, ng, ke, br, ar, mx, co, cl, pe, ec, ve, bo, py, uy, cr, gt, pa, do, sv, hn, ni, pr, tt, jm
Development
npm run dev # Watch mode
npm run build # Build
npm test # Run tests (71 tests)
npm run test:coverage # Coverage report
npm run release # Bump version + changelog + tagTech Stack
TypeScript 5.7 (strict) + Zod validation
@modelcontextprotocol/sdk ^1.12.0
Vitest — 71 tests across 6 suites
Node.js built-in
fetch— zero external HTTP dependencystdio transport
License
MIT — Georges Cordewiener / AdSim
Available Tools
10 toolssemrush_auditSEMrush SEO AuditARead-onlyIdempotent
Basic SEO audit using SEMrush Analytics data. Available actions:
get_issues: Analyze a domain's organic keywords and URLs to detect common SEO issues (missing opportunities, thin content, cannibalization, position drops).
get_pages: Audit individual pages — keyword coverage, positions, traffic share, and potential issues per URL.
Inputs: action (required), domain (required), limit, database.
semrush_backlinksSEMrush Backlinks AnalysisARead-onlyIdempotent
Analyze backlink profiles for any domain or URL. Available actions:
overview: Summary with total backlinks, referring domains, follow/nofollow counts
list: Individual backlinks with source URLs, anchors, page scores
refdomains: Referring domains with authority scores and backlink counts
anchors: Anchor text distribution (essential for netlinking audits)
tld: Distribution by TLD (.com, .fr, .edu, .gov...)
geo: Geographic distribution of backlinks by country
pages: Pages that attract the most backlinks
Inputs: action (required), target (required), limit, offset, +1 more.
semrush_creditsSEMrush Account & CreditsARead-onlyIdempotent
Check SEMrush API credits and usage. Available actions:
balance: Current API units balance. Shows warning if < 1000 units remaining.
usage_stats: API consumption from the current session (calls count, endpoints used, errors).
Inputs: action (required).
semrush_domainSEMrush Domain AnalyticsARead-onlyIdempotent
Analyze a domain's SEO performance. Available actions:
organic: Get organic keywords, positions, traffic estimates
adwords: Get paid search (Google Ads) keywords
overview: Get overview across ALL SEMrush databases
overview_single: Get detailed overview for ONE database
history: Get historical ranking data over time
competitors: Get organic search competitors
paid_competitors: Get paid search (Google Ads) competitors
url_organic: Get organic keywords for a specific URL (not just domain)
url_adwords: Get paid keywords for a specific URL
Inputs: action (required), domain (required), sort, limit, +2 more.
semrush_enrich_clusterSEMrush Cluster EnrichmentARead-onlyIdempotent
Enrich a keyword cluster with SEMrush data. Accepts a list of keywords, fetches volume/CPC/competition/KD for each, and computes a cluster_score.
Input: array of keywords (max 100) or semicolon-separated string. Output: enriched keywords + cluster summary with weighted score.
cluster_score = average of: volume_normalized * 0.4 + (100 - KD) * 0.4 + CPC_normalized * 0.2
Use this to prioritize which keyword clusters to target first.
Inputs: keywords (required), database, cluster_name, target_domain.
semrush_gapSEMrush Gap AnalysisARead-onlyIdempotent
Competitive gap analysis combining multiple SEMrush endpoints. Available actions:
keyword_gap: Find keywords where competitors rank top 20 but you don't. Returns opportunities sorted by volume with opportunity_score.
backlink_gap: Find referring domains linking to competitors but not to you. Returns missing domains sorted by authority with priority level.
content_gap: Compare top organic URLs across competitors to find topics you're missing. Returns topic clusters with opportunity counts.
Inputs: action (required), domains (required), limit, database.
semrush_keywordSEMrush Keyword ResearchARead-onlyIdempotent
Research keywords for SEO and paid search. Available actions:
overview: Search volume, CPC, competition, trends for a keyword
related: Related keyword variations for a seed keyword
questions: Question-based keywords (People Also Ask, featured snippets)
difficulty: Keyword difficulty index (batch up to 100 keywords separated by semicolons)
organic_results: Domains ranking in Google's top 100 for a keyword
ad_results: Domains bidding on a keyword in Google Ads
broad_match: Broad match keyword variations and long-tail alternatives
bulk_overview: Batch analysis of up to 100 keywords at once (volume, KD, CPC, trend)
Inputs: action (required), keyword (required), sort, limit, +2 more.
semrush_recommendSEMrush RecommenderARead-onlyIdempotent
Meta-tool that orchestrates multiple SEMrush queries to produce actionable SEO recommendations. Available objectives:
quick_wins: Find keywords on pages 2-3 (positions 11-30) with high volume. Quick improvements for fast traffic gains.
increase_traffic: Comprehensive audit — current traffic, keyword gaps, missed opportunities, and prioritized action plan.
beat_competitor: Head-to-head analysis against a competitor — keyword gaps, backlink gaps, and content opportunities.
Each objective runs 3-5 internal API calls and returns a structured recommendation with priority actions.
Inputs: domain (required), objective (required), limit, database, +1 more.
semrush_trackingSEMrush Position TrackingARead-onlyIdempotent
Track keyword positions over time. Available actions:
get_positions: Current positions for a domain on specific keywords. Shows position, delta vs previous, and trend (up/down/stable).
get_history: Historical ranking data for a domain over time. Shows month-by-month organic keywords, traffic, and rank changes.
Inputs: action (required), domain (required), limit, database, +1 more.
semrush_trafficSEMrush Traffic EstimationsARead-onlyIdempotent
Traffic estimations using SEMrush Analytics API (no Trends subscription needed). Available actions:
domain_traffic: Monthly organic/paid traffic estimates, cost, and keyword counts across all databases or a single one.
top_pages: Pages generating the most estimated organic traffic (via top organic keywords and their URLs).
traffic_sources: Breakdown of organic vs paid search traffic with keyword counts and cost estimates.
Inputs: action (required), domain (required), limit, database.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The 10 tools are broadly separated by SEMrush domain area, but several analytical paths overlap: traffic estimates can come from semrush_domain, semrush_traffic, or semrush_tracking; competitor/keyword opportunity work can come from semrush_gap or semrush_recommend; and batch keyword metrics overlap between semrush_keyword and semrush_enrich_cluster. These overlaps are explained in descriptions, but an agent may still misselect when asked for a high-level SEO analysis.
All tool names use the same semrush_ prefix and snake_case convention, producing a predictable namespace. The mixture of resource-oriented names (semrush_domain, semrush_keyword) and action-oriented names (semrush_enrich_cluster, semrush_recommend) is still readable and consistent enough not to cause confusion.
Ten top-level tools is a well-scoped surface for a broad SEMrush analytics server. Each tool maps to a recognizable SEO analysis area, and the large number of underlying actions is consolidated into a manageable set of entry points.
The surface covers domain analysis, keyword research, backlinks, competitive gaps, rank tracking, traffic estimation, audits, credits, cluster enrichment, and recommendations. Minor gaps remain around full site-audit/project workflows and some advanced SEMrush endpoints, but core SEO workflows are well covered.
Maintenance
Related MCP Connectors
SEO research, Search Console, GA4 and PPC tools for Claude and ChatGPT.
SEO audits, Search Console, GA4, keyword and backlink data for Claude, ChatGPT and Cursor.
Keyword research, Google SERPs, backlinks, rank checks and SEO audits in Claude.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides AI assistants with access to Semrush SEO API functionality including domain analytics, keyword research, backlink analysis, and competitor insights.716MIT
- AlicenseAqualityCmaintenanceLets you ask Claude questions about your Google Search Console data and get real analysis, not raw API rows. Provides 20 tools for analysis, indexing, and safety.292,053 npm194Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables users to securely connect Claude to their own Google Search Console data, providing custom SEO analyses such as quick wins, content decay, and cannibalization, plus optional BigQuery bulk export, with per-user token scoping and read-only tools.-
- AlicenseBqualityCmaintenanceEnables AI assistants to run live Semrush SEO analysis—keyword research, domain analytics, backlink analysis, competitor intelligence, and traffic insights—through natural language MCP tools.1850MIT