How to integrate Semrush MCP with Kimi Code

Connect Kimi Code to Semrush MCP. Show top anchor texts for example.com, compare backlink profiles for three domains, and more using natural language, 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 Kimi Code

Kimi Code is Moonshot AI's open-source coding agent, powered by Kimi K2.6. It runs in your terminal, reads and edits code, executes shell commands, and plans multi-step tasks, with native MCP support for extending it to outside tools.

In this guide, I will explain the easiest and most secure way to connect your Semrush account to Kimi Code via Composio Connect, 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 ever putting your account credentials at risk.

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

Also integrate Semrush with

Why use Composio?

Composio provides:

  • Access to 1,700+ managed apps from a single MCP endpoint. This makes it convenient for agents to run cross-app workflows.
  • Managed OAuth. You do not have to worry about authentication and authorization flows for every app.
  • Programmatic tool calling. Allows LLMs to write code in a remote workbench to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
  • Large tool response handling outside the LLM context. This minimizes context bloat from large tool responses.
  • Dynamic just-in-time access to thousands of tools across hundreds of apps. Composio loads the tools your agent needs, so LLMs are not overwhelmed by tools they do not need.

Connect Semrush to Kimi Code

Kimi Code is a TypeScript agent distributed through npm. It acts as an MCP client and reads server definitions from an mcp.json file, and it can also add and authenticate servers conversationally through /mcp-config. Composio is a remote HTTP server that authenticates with OAuth, so no API key is stored anywhere.

1. Install Kimi Code

The quickest way is the official install script, which requires no pre-installed Node.js and places the kimi executable on your PATH.

bash
# macOS or Linux
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash

# Windows PowerShell
irm https://code.kimi.com/kimi-code/install.ps1 | iex

# Confirm the installation
kimi --version

2. Log in

Start Kimi Code in your project directory, then sign in from the interactive UI:

bash
kimi

Run /login and choose Kimi Code OAuth using the device-code flow, or use a Moonshot API key.

3. Add Composio with /mcp-config

In current versions of Kimi Code, MCP servers are managed inside the app, not with a shell subcommand. From the interactive UI, run:

bash
/mcp-config
Kimi Code MCP config flow for adding the Composio MCP server

Tell it the server name and URL in plain language. For example:

Server name is Composio, and here is the server URL: https://connect.composio.dev/mcp

Kimi Code asks whether to add it globally, at ~/.kimi-code/mcp.json, or project-local for the current checkout, then writes the entry for you:

bash
{
  "mcpServers": {
    "Composio": {
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

There is no transport field to set. Kimi Code infers HTTP from the url.

4. Restart the session

The new server is picked up on a fresh session, not the current one. Start a new session:

bash
/new

On the new session, Kimi Code detects that the server needs authorization and prompts you to run:

bash
/mcp-config login Composio

5. Authorize with OAuth

Run the command Kimi suggests:

bash
/mcp-config login composio

Kimi Code opens Composio's authorization page or surfaces a URL. Approve access, then return to the session. You should see confirmation that the Composio MCP server is connected.

Composio authorization page for Kimi Code MCP setup

Check the connection status any time with /mcp. Composio should appear as connected with its tools listed.

Kimi Code showing Composio connected after OAuth authorization

Connect your Semrush account

Back in a Kimi Code session, ask the agent to connect to Semrush or give it any Semrush-related task.

For example, ask it to:

  • "Show top anchor texts for example.com"
  • "Compare backlink profiles for three domains"
  • "Get keyword overview for 'organic coffee'"

It will prompt you to authenticate and authorize access to Semrush.

That is it. Composio tools are now available in Kimi Code, and your Semrush account is ready to use.

Conclusion

You have successfully connected Semrush to Kimi Code using Composio Connect. Your agent can now manage Semrush from the terminal with natural language, without exposing credentials in prompts or local scripts.

Since the same Composio endpoint exposes 1,700+ apps, you can add Slack, Calendar, Linear, and more to the same server and chain them into cross-app workflows.

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