semrush cli
Commands

Keyword research

Commands and options for keyword research.

keyword-overview

Volume, difficulty, CPC, intent and trends.

semrush keyword-overview --help

MCP tool: keyword_overview.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-ideas

Overview sample of related keywords or questions.

semrush keyword-ideas --help

MCP tool: keyword_ideas.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--questions-onlybooleanfalse
--limitinteger10
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-ideas-summary

Total related keyword count and volume.

semrush keyword-ideas-summary --help

MCP tool: keyword_ideas_summary.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--questions-onlybooleanfalse
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-serp

Ranked URLs and SERP features.

semrush keyword-serp --help

MCP tool: keyword_serp.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--limitinteger10
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-ads

Search ad copies for a keyword.

semrush keyword-ads --help

MCP tool: keyword_ads.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--limitinteger10
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.

keyword-clusters

Keyword topics and search intents.

semrush keyword-clusters --help

MCP tool: keyword_clusters.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-gap-totals

Counts for keyword overlap and opportunity types.

semrush keyword-gap-totals --help

MCP tool: keyword_gap_totals.

OptionTypeDefaultDescription
--databasestring"us"
--domainsarrayRequired. Two to five root domains, first is your site
--filtersstring""Semrush spectrum filter expression

keyword-gap-overlap

Organic keyword profile overlaps.

semrush keyword-gap-overlap --help

MCP tool: keyword_gap_overlap.

OptionTypeDefaultDescription
--databasestring"us"
--domainsarrayRequired. Two to five root domains, first is your site
--filtersstring""Semrush spectrum filter expression

keyword-countries

Native keyword metrics across country databases, without calculating a synthetic global total.

semrush keyword-countries --help

MCP tool: keyword_countries.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-bulk

Read native Bulk Analysis for one to 100 keywords in the current database and currency.

semrush keyword-bulk --help

MCP tool: keyword_bulk.

OptionTypeDefaultDescription
--keywordsarrayRequired. One to 100 unique keywords. JSON preserves commas within a phrase.
--databasestring"us"
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringDomain for already available native personalized metrics. Does not start a domain update.

keyword-product-ads

Read native Keyword Overview Product Listing Ads previews.

semrush keyword-product-ads --help

MCP tool: keyword_product_ads.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--limitinteger10

keyword-serp-organic-metrics

Read native organic keyword counts and traffic for selected SERP URLs.

semrush keyword-serp-organic-metrics --help

MCP tool: keyword_serp_organic_metrics.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--urlsarrayRequired. Exact HTTP(S) URLs from keyword-serp; repeated URLs are allowed.

Read native authority, backlink and referring-domain metrics for selected SERP URLs.

semrush keyword-serp-backlink-metrics --help

MCP tool: keyword_serp_backlink_metrics.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--urlsarrayRequired. Exact HTTP(S) URLs from keyword-serp; repeated URLs are allowed.

keyword-bulk-export

Download native Bulk Analysis as CSV, semicolon CSV or XLSX. Starts one export job and retries only a pending wait.

semrush keyword-bulk-export --help

MCP tool: keyword_bulk_export.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--keywordsarrayRequired. One to 100 unique keywords. JSON preserves commas within a phrase.
--databasestring"us"
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringDomain for already available native personalized metrics. Does not start a domain update.
--formatstring"csv"Native CSV, semicolon CSV or XLSX. Values: "csv", "csv_semicolon", "xlsx".
--columnsarray["keyword","intent","volume","trend","difficulty","cpc","serp_features"]Exported data fields in native field order. Personalized fields require domain.

keyword-serp-export

Download the native full SERP URL report as CSV, semicolon CSV or XLSX.

semrush keyword-serp-export --help

MCP tool: keyword_serp_export.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--formatstring"csv"Native CSV, semicolon CSV or XLSX. Values: "csv", "csv_semicolon", "xlsx".

keyword-serp-domains-export

Download the native full SERP domain report as CSV, semicolon CSV or XLSX.

semrush keyword-serp-domains-export --help

MCP tool: keyword_serp_domains_export.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--formatstring"csv"Native CSV, semicolon CSV or XLSX. Values: "csv", "csv_semicolon", "xlsx".

keyword-locations

Find native local keyword locations and recent selections for a database.

semrush keyword-locations --help

MCP tool: keyword_locations.

OptionTypeDefaultDescription
--databasestring"us"
--inputstring""Location search text; empty requests native discovery.

keyword-local-overview

Read cached native global and local keyword metrics without refreshing them.

semrush keyword-local-overview --help

MCP tool: keyword_local_overview.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--location-idintegerRequired. Positive native location ID from keyword-locations. Current desktop data only.
--currencystring"USD"Three-letter currency code supported by Semrush.

keyword-local-serp

Read current desktop SERP rows for a native local location.

semrush keyword-local-serp --help

MCP tool: keyword_local_serp.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--location-idintegerRequired. Positive native location ID from keyword-locations. Current desktop data only.
--currencystring"USD"Three-letter currency code supported by Semrush.
--limitinteger10

keyword-local-serp-organic-metrics

Read native organic keyword counts for selected local SERP URLs.

semrush keyword-local-serp-organic-metrics --help

MCP tool: keyword_local_serp_organic_metrics.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--location-idintegerRequired. Positive native location ID from keyword-locations. Current desktop data only.
--currencystring"USD"Three-letter currency code supported by Semrush.
--urlsarrayRequired. Exact HTTP(S) URLs from keyword-serp; repeated URLs are allowed.

keyword-local-serp-export

Download the native local desktop SERP report as CSV, semicolon CSV or XLSX.

semrush keyword-local-serp-export --help

MCP tool: keyword_local_serp_export.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--location-idintegerRequired. Positive native location ID from keyword-locations. Current desktop data only.
--formatstring"csv"Native CSV, semicolon CSV or XLSX. Values: "csv", "csv_semicolon", "xlsx".

keyword-serp-domain-organic-metrics

Read native organic traffic for selected SERP domains.

semrush keyword-serp-domain-organic-metrics --help

MCP tool: keyword_serp_domain_organic_metrics.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainsarrayRequired. Distinct bare domains from the SERP rows, without schemes or paths.

Read native authority and backlink counts for selected SERP domains.

semrush keyword-serp-domain-backlink-metrics --help

MCP tool: keyword_serp_domain_backlink_metrics.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainsarrayRequired. Distinct bare domains from the SERP rows, without schemes or paths.

keyword-refresh

Request an explicit keyword metric refresh using the native account allowance. Never retries or polls.

semrush keyword-refresh --help

MCP tool: keyword_refresh.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--keywordsarrayRequired. One to 100 unique keywords. JSON preserves commas within a phrase.
--databasestring"us"
--location-idinteger0Native local location ID; zero selects national data.
--confirmbooleanfalse
--dry-runbooleanfalse

keyword-refresh-status

Read native keyword refresh status once without starting or polling an update.

semrush keyword-refresh-status --help

MCP tool: keyword_refresh_status.

OptionTypeDefaultDescription
--keywordsarrayRequired. One to 100 unique keywords. JSON preserves commas within a phrase.
--databasestring"us"
--location-idinteger0Native local location ID; zero selects national data.
--status-updated-atnumber0Native epoch seconds; zero requests the current state.
--currencystring"USD"Three-letter currency code supported by Semrush.
--domainstringOptional domain for already available personalized national metrics. Cannot be combined with a local location.

keyword-domain-suggestions

Read native recent, project and competitor domain suggestions.

semrush keyword-domain-suggestions --help

MCP tool: keyword_domain_suggestions.

keyword-domain-root

Read the native root domain for a bare input hostname.

semrush keyword-domain-root --help

MCP tool: keyword_domain_root.

OptionTypeDefaultDescription
--domainstringRequired. Bare input hostname for native root-domain lookup.

keyword-domain-prepare

Normalize a domain and request native personalized keyword preparation once. Returns job state without polling.

semrush keyword-domain-prepare --help

MCP tool: keyword_domain_prepare.

Use --confirm to send the change or --dry-run to preview it.

OptionTypeDefaultDescription
--domainstringRequired. Bare input hostname. Semrush resolves and prepares its root domain after confirmation.
--confirmbooleanfalse
--dry-runbooleanfalse

keyword-domain-status

Read native personalized-domain preparation state using a nonempty pending job ID. Never starts a new job.

semrush keyword-domain-status --help

MCP tool: keyword_domain_status.

OptionTypeDefaultDescription
--domainstringRequired. Normalized root domain from the preparation result.
--job-idstringRequired. Nonempty native ID from a pending keyword-domain-prepare receipt.

keyword-ai-databases

Read the native databases available for Keyword Overview AI topic data.

semrush keyword-ai-databases --help

MCP tool: keyword_ai_databases.

keyword-ai-summary

Read native Keyword Overview AI LLM volumes and total topic count.

semrush keyword-ai-summary --help

MCP tool: keyword_ai_summary.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-ai-topics

Read native Keyword Overview AI top topic samples with native volumes.

semrush keyword-ai-topics --help

MCP tool: keyword_ai_topics.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--domainstringBare root domain for already prepared native personalized data. Does not start preparation.

keyword-overview-pdf

Generate the native Keyword Overview PDF and save its Essential report in My Reports. Uses reporting allowance; no email or schedule.

semrush keyword-overview-pdf --help

MCP tool: keyword_overview_pdf.

Use --confirm to send the change or --dry-run to preview it.

Pass --output <path> to save the file. Existing files are not overwritten. MCP returns an artifact resource.

OptionTypeDefaultDescription
--keywordstringRequired.
--databasestring"us"
--devicestring"desktop"Native desktop or mobile search results. Values: "desktop", "mobile".
--datestring""Monthly YYYYMM snapshot; empty selects the current data. Account access applies.
--currencystring"USD"Three-letter currency code supported by Semrush.
--confirmbooleanfalseConfirm report creation, privacy acceptance and PDF generation.
--dry-runbooleanfalsePreview the export without account access.
--ai-summarybooleanfalseInclude the native AI Summary widget. Uses your account AI summary allowance.

On this page