Claude Code
Add the official server, open /mcp, and sign in to the Semrush account with the intended subscription. Check that report discovery is available before calling a report.
claude mcp add semrush https://mcp.semrush.com/v2/mcp -t httpConnect the official Semrush MCP server and compare up to three sampled organic keyword rows per domain. Keep the country, device and month fixed across the comparison.
US · Desktop · October 2026
“Roof repair Brooklyn”
Positions 11 and 4 in the two sampled domains
The official server uses OAuth and Streamable HTTP. Account plans determine report access and available API units. Open Subscription info before a metered run and only approve the reads you need.
Hosted endpoint https://mcp.semrush.com/v2/mcp
Add the official server, open /mcp, and sign in to the Semrush account with the intended subscription. Check that report discovery is available before calling a report.
claude mcp add semrush https://mcp.semrush.com/v2/mcp -t httpUse Semrush’s connector or app in your client, sign in when prompted, and check the selected subscription. For other Streamable HTTP clients, use the vendor endpoint if the client supports its OAuth flow.
Semrush MCP client and account setupPractice with two saved responses or use the same bounded request on two public domains you choose. This uses Semrush’s monthly organic position dataset.
Find Get Monthly Organic Positions using the connected server’s discovery tools. Call get_report_schema for the report you found. If your account cannot access it, stop and record the missing report.
Use one report call for your domain and one for the competitor. Keep ROOT_DOMAIN, country, device, explicit month, ORGANIC position type and limit 3 the same. Change only the url parameter. Check the required inputs and rate from the report schema before approval.
Return each observed query with its position and ranking URL from each domain. If a query has multiple rows for one domain, use the smallest position and keep its URL. Mark missing rows as absent from the sample.
Record the report name, scope, row count and actual units if your account exposes them. Pick one shared query or competitor-only sample to inspect. Check its intent and landing page before suggesting a change.
Use semrush-mcp-competitor-keywords.json. Default to offline and read its two saved sample responses. Match query text exactly, keeping the lowest numeric position and its URL per domain. Keep missing sides null and label them own_sample_only or competitor_sample_only. Label shared rows both_samples. Compare your positions and labels with expected after calculating. In live mode only, use the operator’s two public domains, one explicit month and approved unit budget. Find Get Monthly Organic Positions and inspect get_report_schema. Keep the country, device, organic scope and limit 3 fixed across two reads. Stop on a scope mismatch, missing access or insufficient budget. Report the scope, positions, URLs, usage if available, and one follow-up. Treat null as absent from this sample.
Save both files together and run the command with Node.js 18+. The replay reads local data.
node seo-mcp-replay.mjs semrush-mcp-competitor-keywords.json --verifyverified: true means the replay matches the expected fields in the JSON.
| Query | Your domain | Competitor |
|---|---|---|
| emergency roof repair brooklyn | Absent from sample | 9 |
| roof inspection brooklyn | 6 | Absent from sample |
| roof repair brooklyn | 11 | 4 |