How to integrate Semrush MCP with Grok Build

Connect Grok Build to Semrush MCP. Show top anchor texts for example.com, compare backlink profiles for three domains, and more from your terminal, with authentication handled for you.

Semrush logoSemrush
Api Key

Semrush is a leading SEO tool suite for keyword research, competitor analysis, and campaign tracking. It empowers marketers to improve search rankings and optimize online visibility.

74 Tools

How to integrate Semrush MCP with Grok Build

Grok Build is xAI's terminal coding agent. It runs on Grok 4.5, plans its work before it acts, and can run multiple sub-agents in parallel. It also reads Claude Code's MCP configuration, so any server you already have in a .mcp.json is picked up with no changes.

In this guide, I will show you how to connect your Semrush account to Grok Build through Composio, so it can show top anchor texts for example.com, compare backlink profiles for three domains, get keyword overview for 'organic coffee', and more without leaving the terminal. Composio holds the OAuth tokens for you, and Grok Build only calls the tools you approve.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Semrush with

Why use Composio over a standalone MCP server?

  • Read and write access. Composio's Semrush integration lets Grok Build take real actions like creating drafts, sending updates, and labeling records, not just reading data.
  • 1,700+ SaaS toolkits out of the box. One endpoint gives you a full catalog of pre-built connectors, from Gmail and Slack to Notion, Linear, and Salesforce.
  • One MCP server for every app. Wire up a single Composio server instead of maintaining a separate MCP entry for each app.
  • Smart, context-aware tool loading. Grok Build caps how many tools it holds in a single request. Composio loads only the tools a task needs, so you do not spend that budget on tools you are not using.
  • Cross-app automation. Chain actions across apps in one run. Pull a thread, summarize it in Notion, and post the highlights to Slack from a single prompt.

Prerequisites

  • Grok Build installed and signed in. Install with curl -fsSL https://x.ai/cli/install.sh | bash on macOS or Linux, or irm https://x.ai/cli/install.ps1 | iex on Windows PowerShell. On first launch Grok opens a browser to authenticate; for headless or CI use, set an XAI_API_KEY environment variable instead (create the key at console.x.ai).
  • Access to the Semrush account you want to connect.
  • The Composio MCP endpoint. Composio's server is remote and hosted, so there is nothing to run locally and no tunnel to set up.

Step-by-step: Connect Semrush to Grok Build

1. Install and verify Grok Build

Install the CLI, then restart your shell so the grok binary lands on your PATH:

bash
curl -fsSL https://x.ai/cli/install.sh | bash
which grok

On Windows, install with PowerShell instead: irm https://x.ai/cli/install.ps1 | iex. If which grok returns a path, you are set. Grok Build runs on Grok 4.5 by default; you can switch models inside the session with /model <name>.

2. Add the Composio server

Add Composio as a remote HTTP MCP server with the grok mcp add command:

bash
grok mcp add --transport http composio https://connect.composio.dev/mcp

You can also add and manage servers from inside a session. Run /mcps to open the extensions modal on the MCP tab, then add a new server and paste the Composio URL. Added this way, Grok auto-detects the name from the URL and lists the server as connect:

bash
https://connect.composio.dev/mcp
Grok Build /mcps extensions modal listing MCP servers Grok Build adding the Composio MCP server with its URL

Grok also reads Claude Code-style config, so an entry in ~/.grok/config.toml or a project .mcp.json works the same way.

3. Authenticate

Composio uses OAuth. In the /mcps modal, select the Composio server and press i to authenticate (Grok also triggers this browser flow automatically the first time it uses a Composio tool). Click Allow to authorize access. Grok stores the tokens under ~/.grok/mcp_credentials.json, and /mcps shows Composio as connected.

Grok Build prompting to authenticate the Composio MCP server Composio authorization screen with the Allow button for Grok Build

4. Start building

Ask Grok to work with your Semrush account through Composio. On the first Semrush action, Composio prompts you to connect the account through OAuth. Approve the scopes once, and Composio handles token refresh from there.

What you can do after connecting Semrush

  • Show top anchor texts for example.com
  • Compare backlink profiles for three domains
  • Get keyword overview for 'organic coffee'
  • List ad copies seen for your competitor

Security + privacy notes (important)

  • Use least-privilege access. Grant only the Semrush scopes you actually need.
  • Review OAuth scopes before approving. Check that the requested scopes match what you expect Composio and Grok Build to do.
  • Keep write actions human-reviewed. Grok Build proposes a plan before it acts. Leave that approval step on for actions like sending messages or editing records.
  • Keep secrets out of version control. Your XAI_API_KEY and any tokens should never be committed. Use environment variables or a secrets manager.
TOOLS

Supported Tools

Every Semrush action and event your agent gets out of the box.

Check Semrush account units balance (v3)

Requires a Semrush v3 API key.

Add Semrush review comment (v4)

Requires a Semrush v4 API key.

Get ad copies (v3)

Requires a Semrush v3 API key.

Get competitors in organic search (v3)

Requires a Semrush v3 API key.

Get competitors in paid search (v3)

Requires a Semrush v3 API key.

Create Semrush GBP post (v4)

Requires a Semrush v4 API key.

Create Listing Management location (v4)

Requires a Semrush v4 API key.

Create location image (v4)

Requires a Semrush v4 API key.

Manage Semrush GBP suggestion (v4)

Requires a Semrush v4 API key.

Delete Semrush GBP post (v4)

Requires a Semrush v4 API key.

Delete Listing Management location (v4)

Requires a Semrush v4 API key.

Delete location image (v4)

Requires a Semrush v4 API key.

Delete Semrush review comment (v4)

Requires a Semrush v4 API key.

Disable location listing (v4)

Requires a Semrush v4 API key.

Get domain ad history (v3)

Requires a Semrush v3 API key.

Get domain organic pages (v3)

Requires a Semrush v3 API key.

Get domain organic search keywords (v3)

Requires a Semrush v3 API key.

Get domain organic subdomains (v3)

Requires a Semrush v3 API key.

Get domain paid search keywords (v3)

Requires a Semrush v3 API key.

Get PLA search keywords for a domain (v3)

Requires a Semrush v3 API key.

Compare domains (v3)

Requires a Semrush v3 API key.

Enable location listing (v4)

Requires a Semrush v4 API key.

Get Semrush GBP metrics (v4)

Requires a Semrush v4 API key.

Get Listing Management location (v4)

Requires a Semrush v4 API key.

Get Semrush review auto-reply config (v4)

Requires a Semrush v4 API key.

Get Semrush review overview (v4)

Requires a Semrush v4 API key.

List Semrush GBP additional-hour types (v4)

Requires a Semrush v4 API key.

List Semrush GBP attributes (v4)

Requires a Semrush v4 API key.

List Semrush GBP categories (v4)

Requires a Semrush v4 API key.

List Semrush GBP posts (v4)

Requires a Semrush v4 API key.

List Semrush GBP suggestions (v4)

Requires a Semrush v4 API key.

List Listing Management locations (v4)

Requires a Semrush v4 API key.

List location categories (v4)

Requires a Semrush v4 API key.

List location images (v4)

Requires a Semrush v4 API key.

List location listings (v4)

Requires a Semrush v4 API key.

List location payment options (v4)

Requires a Semrush v4 API key.

List Semrush location reviews (v4)

Requires a Semrush v4 API key.

Collect Map Rank Tracker campaign data (consumes credits) (v4)

Requires a Semrush v4 API key.

Create Map Rank Tracker campaign (v4)

Requires a Semrush v4 API key.

Delete Map Rank Tracker campaign (v4)

Requires a Semrush v4 API key.

Get Map Rank Tracker campaign (v4)

Requires a Semrush v4 API key.

Get Map Rank Tracker heatmap (v4)

Requires a Semrush v4 API key.

Get Map Rank Tracker keyword statuses (v4)

Requires a Semrush v4 API key.

Get Map Rank Tracker metrics (v4)

Requires a Semrush v4 API key.

Get Map Rank Tracker user limits (v4)

Requires a Semrush v4 API key.

List Map Rank Tracker campaigns (v4)

Requires a Semrush v4 API key.

List Map Rank Tracker top competitors (v4)

Requires a Semrush v4 API key.

Update Map Rank Tracker campaign (v4)

Requires a Semrush v4 API key.

Get PLA competitors (v3)

Requires a Semrush v3 API key.

Get PLA copies (v3)

Requires a Semrush v3 API key.

Update Semrush GBP post (v4)

Requires a Semrush v4 API key.

Update Listing Management location (v4)

Requires a Semrush v4 API key.

Update location image (v4)

Requires a Semrush v4 API key.

Replace Semrush review auto-reply config (v4)

Requires a Semrush v4 API key.

Update Semrush review comment (v4)

Requires a Semrush v4 API key.

List v4 backlink anchors (v4)

Requires a Semrush v4 API key.

Get v4 authority score profile (v4)

Requires a Semrush v4 API key.

List v4 backlink competitors (v4)

Requires a Semrush v4 API key.

List v4 backlinks (v4)

Requires a Semrush v4 API key.

Compare v4 backlink summaries (v4)

Requires a Semrush v4 API key.

Get v4 backlinks historical summary (v4)

Requires a Semrush v4 API key.

Get v4 backlinks matrix (v4)

Requires a Semrush v4 API key.

Get v4 backlinks overview (v4)

Requires a Semrush v4 API key.

Create v4 project (v4)

Requires a Semrush v4 API key.

Delete v4 project (v4)

Requires a Semrush v4 API key.

Get v4 project (v4)

Requires a Semrush v4 API key.

List v4 indexed pages (v4)

Requires a Semrush v4 API key.

Get v4 keyword metrics (v4)

Requires a Semrush v4 API key.

List v4 projects (v4)

Requires a Semrush v4 API key.

List v4 referring domains (v4)

Requires a Semrush v4 API key.

List v4 referring IPs (v4)

Requires a Semrush v4 API key.

Update v4 project (v4)

Requires a Semrush v4 API key.

Validate Listing Management location creation (v4)

Requires a Semrush v4 API key.

Validate Listing Management location update (v4)

Requires a Semrush v4 API key.

FAQ

Frequently asked questions

Start with Semrush.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Semrush tool your agent needs.Free to start.

Start building