# Semrush MCP

Connect 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.

## Connect the official server

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`

### 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.

```sh
claude mcp add semrush https://mcp.semrush.com/v2/mcp -t http
```

[Semrush MCP client and account setup](https://developer.semrush.com/api/v4/introduction/semrush-mcp/)

### Claude or ChatGPT

Use 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 setup](https://developer.semrush.com/api/v4/introduction/semrush-mcp/)

## Compare two domains’ organic keyword samples

Practice with two saved responses or use the same bounded request on two public domains you choose. This uses Semrush’s monthly organic position dataset.

1. **Discover the report and confirm access.** 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.
2. **Pull the same three-row sample twice.** 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.
3. **Join exact queries and keep both URLs.** 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.
4. **Hand off one follow-up.** 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.

### Prompt for your agent

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.

## Replay the example

Save both files in the same folder and run the command with Node.js 18+. The replay uses local fictional data.

- [Download example JSON](https://seotoolsforagents.com/examples/semrush-mcp-competitor-keywords.json)
- [Download Node runner](https://seotoolsforagents.com/examples/seo-mcp-replay.mjs)

```sh
node seo-mcp-replay.mjs semrush-mcp-competitor-keywords.json --verify
```

A result of verified: true means the output matches the expected fields.

US · Desktop · October 2026

| Query | Your domain | Competitor |
| --- | --- | --- |
| emergency roof repair brooklyn | Absent from sample | 9 |
| roof inspection brooklyn | 6 | Absent from sample |
| roof repair brooklyn | 11 | 4 |

## Provider references

- [Semrush MCP client and account setup](https://developer.semrush.com/api/v4/introduction/semrush-mcp/)
- [Get Monthly Organic Positions](https://developer.semrush.com/api/v4/seo/domain-analytics/#get-monthly-organic-positions)
- [Semrush’s MCP workflows](https://github.com/semrush/skills)

## Where to go next

- [Try DataForSEO for a location-specific SERP](https://seotoolsforagents.com/mcp-servers/dataforseo.md)
- [Compare AI visibility tools](https://seotoolsforagents.com/compare/ai-search-visibility-tools.md)
- [Compare AI SEO tools](https://seotoolsforagents.com/compare/ai-seo-tools.md)
