Skip to main content
Glama
@adsim/semrush-mcp-server

@adsim/semrush-mcp-server

by GeorgesAdSim

@adsim/semrush-mcp-server

npm version npm downloads node version license

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-server

Requires 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

semrush_domain

9

Domain analytics (organic, paid, competitors, history)

semrush_keyword

8

Keyword research (volume, difficulty, SERP, questions, bulk)

semrush_backlinks

7

Backlink profiles (overview, anchors, TLD, geo)

semrush_gap

3

Gap analysis (keyword gap, backlink gap, content gap)

semrush_traffic

3

Traffic analytics (summary, sources, top pages)

semrush_recommend

3

AI recommendations (quick wins, traffic growth, competitor)

semrush_tracking

2

Position tracking (current + history)

semrush_audit

2

Site audit (issues + pages)

semrush_credits

2

Account management (balance + usage stats)

semrush_enrich_cluster

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

Organic keywords, positions, traffic estimates

adwords

Paid search (Google Ads) keywords

overview

Overview across all SEMrush databases

overview_single

Detailed overview for a single database

history

Historical ranking data over time

competitors

Organic search competitors

paid_competitors

Paid search (Google Ads) competitors

url_organic

Organic keywords for a specific URL

url_adwords

Paid keywords for a specific URL

semrush_keyword — Keyword Research (8 actions)

Action

Description

overview

Search volume, CPC, competition, trends

related

Related keyword variations

questions

Question-based keywords (PAA, featured snippets)

difficulty

Difficulty index (batch up to 100, semicolon-separated)

organic_results

Domains ranking in Google's top 100

ad_results

Domains bidding on a keyword in Google Ads

broad_match

Broad match variations and long-tail alternatives

bulk_overview

Batch keyword analysis (up to 100 keywords)

Action

Description

overview

Total backlinks, referring domains, follow/nofollow

list

Individual backlinks with source URLs and anchors

refdomains

Referring domains with authority scores

anchors

Anchor text distribution

tld

Distribution by TLD (.com, .fr, .edu, .gov...)

geo

Geographic distribution of backlinks by country

pages

Pages that attract the most backlinks

semrush_gap — Gap Analysis (3 actions)

Action

Description

keyword_gap

Keywords your competitor ranks for but you don't

backlink_gap

Domains linking to competitors but not to you

content_gap

Content topics missing from your domain

semrush_traffic — Traffic Analytics (3 actions)

Action

Description

domain_traffic

Traffic summary (visits, bounce rate, duration)

top_pages

Most visited pages

traffic_sources

Traffic source breakdown

semrush_recommend — AI Recommendations (3 actions)

Action

Description

quick_wins

Keywords in positions 11-30 with traffic potential

increase_traffic

Comprehensive traffic growth plan

beat_competitor

Head-to-head competitive analysis with action plan

semrush_tracking — Position Tracking (2 actions)

Action

Description

get_positions

Current keyword positions

get_history

Historical position data

semrush_audit — Site Audit (2 actions)

Action

Description

get_issues

Technical SEO issues found

get_pages

Audited pages with scores

semrush_credits — Account Management (2 actions)

Action

Description

balance

Remaining API units

usage_stats

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) and cluster_grade (A-D)

  • opportunity_score for prioritization

  • Optional: current positions when target_domain provided


Environment Variables

Variable

Required

Default

Description

SEMRUSH_API_KEY

Yes

—

Your SEMrush API key

SEMRUSH_DEFAULT_DATABASE

No

fr

Default regional database

SEMRUSH_MAX_RESULTS_PER_CALL

No

100

Max results per API call

SEMRUSH_CACHE_TTL

No

3600

Cache duration in seconds

SEMRUSH_RATE_LIMIT

No

10

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 + tag

Tech 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 dependency

  • stdio transport


License

MIT — Georges Cordewiener / AdSim

Full documentation on GitHub

Available Tools

10 tools
semrush_auditSEMrush SEO AuditA
Read-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_creditsSEMrush Account & CreditsA
Read-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 AnalyticsA
Read-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 EnrichmentA
Read-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 AnalysisA
Read-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 ResearchA
Read-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 RecommenderA
Read-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 TrackingA
Read-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 EstimationsA
Read-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

    A3.9/5.0

    Scored across 10 tools

    Disambiguation3/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides AI assistants with access to Semrush SEO API functionality including domain analytics, keyword research, backlink analysis, and competitor insights.
      7
      16
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Lets 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.
      29
      2,053 npm
      194
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to run live Semrush SEO analysis—keyword research, domain analytics, backlink analysis, competitor intelligence, and traffic insights—through natural language MCP tools.
      18
      50
      MIT