Логотип Semrush Ai Tool

Semrush Ai Tool

Сообщество
springvoiceswell

Semrush SEO AI-powered analysis tool MCP server & CLI for keyword research, domain analytics, backlink analysis

Издательspringvoiceswell
Репозиторийsemrush-ai-tool
ЯзыкJavaScript
Форки
0
Звёзды
588
Доступные инструменты
0
Тип транспортаstdio
Категории
ЛицензияMIT
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Semrush Ai Tool предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 588, форки: 0 — в связанном репозитории.

🚀 semrush-ai-tool

AI-Powered Semrush SEO Analysis — MCP Server & CLI for Keyword Research, Backlinks & Competitor Intelligence

Turn any AI assistant into a professional SEO analyst. Connect Claude, Cursor, or any MCP-compatible AI client directly to live Semrush data — keyword research, domain analytics, backlink analysis, traffic insights, and competitor intelligence — with a single install.

License: MIT Node.js MCP Platform PRs Welcome

⚡ Quick Install · 🤖 Connect Your AI · ⌨️ CLI Usage · 🧰 All 18 Tools · 👩‍💻 Developers


🎯 What is semrush-ai-tool?

semrush-ai-tool is a free, open-source Semrush SEO analysis tool that gives AI assistants real-time access to the Semrush API through the Model Context Protocol (MCP) — the open standard for connecting AI models to external data.

Instead of exporting CSVs and pasting them into a chat window, you simply ask your AI:

"Analyze the top organic keywords for mysite.com, compare them with competitor.com, score the keyword difficulty, and tell me which backlinks I'm missing."

The AI calls the Semrush API for you, reads the results, and delivers a complete SEO analysis — keyword gaps, backlink opportunities, traffic trends, and competitor strategy — in plain English.

It ships as two tools in one package:

Entry pointWho it's forWhat it does
🤖 MCP Server (semrush-ai-mcp)Marketers, SEOs, foundersGives Claude Desktop, Cursor & other AI clients 18 Semrush tools
⌨️ CLI (semrush-ai)Developers, power users, AI coding agentsRun Semrush reports straight from the terminal

✅ No build step — pure JavaScript, installs in seconds ✅ No Homebrew required — works with a standard Node.js setup ✅ Self-hosted & private — your API key never leaves your machine ✅ MIT licensed — free for personal and commercial use


✨ Features

  • 🔍 Keyword Research — search volume, CPC, competition, trends, related keywords, question keywords (People Also Ask gold), and batch Keyword Difficulty scoring for up to 100 keywords at once
  • 🌐 Domain Analytics — organic & paid keywords, traffic estimates, rank history, and visibility for any domain in any regional database (US, UK, DE, FR, and 100+ more)
  • 🕵️ Competitor Analysis — discover organic and paid competitors, reverse-engineer their keyword portfolios, and find the gaps in yours
  • 🔗 Backlink Analysis — backlink profile overviews, individual backlinks with anchors, and referring domains sorted by authority for link-building prospecting
  • 📈 Traffic Analytics — visits, unique visitors, bounce rate, and session duration via Semrush .Trends
  • 📊 SERP Snapshots — see exactly which domains and URLs rank for any keyword
  • 💳 API Units Tracking — check your Semrush API units balance before big jobs
  • ⚡ Built-in rate limiting — never trip Semrush's API limits
  • 🧩 Works everywhere MCP works — Claude Desktop, Cursor, Windsurf, Cline, and any MCP-compatible client

⚡ Installation

Choose your path:

🍎 macOS Installation for Non-Developers (Step by Step)

No Homebrew. No programming knowledge. Just open Terminal (press Cmd + Space, type Terminal, hit Enter) and follow these three steps.

Step 1 — Install Apple's command line tools

Copy, paste, and press Enter:

bash
xcode-select --install

A dialog pops up → click Install and wait for it to finish. (If it says they're already installed, great — move on.)

Step 2 — Install Node.js with nvm

Node.js is the engine this tool runs on, and nvm is the official, recommended way to install it — no Homebrew needed. Copy and paste this one line:

bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

Then close Terminal completely and open it again (this loads nvm). Now install Node.js:

bash
nvm install --lts

✅ Check it worked: type node -v — you should see something like v22.x.x.

💡 This is the same method shown on the official Node.js download page: https://nodejs.org/en/download

Step 3 — Install semrush-ai-tool (one line)

bash
mkdir -p 'semrushai' && cd 'semrushai' && npm install github:springvoiceswell/semrush-ai-tool

Done! 🎉 The tool now lives in a folder called semrushai in your home directory. Continue to Get your API key below.

👩‍💻 Quick Install (Developers)

Requires Node.js 18+.

bash
# Local project install
mkdir -p 'semrushai' && cd 'semrushai' && npm install github:springvoiceswell/semrush-ai-tool

# …or global install for the CLI everywhere
npm install -g github:springvoiceswell/semrush-ai-tool

# …or clone for hacking
git clone https://github.com/springvoiceswell/semrush-ai-tool.git
cd semrush-ai-tool && npm install

🔑 Get Your Semrush API Key

  1. Log in to Semrush and open Account → API to find your API key. (API access requires a Semrush Business subscription or purchased API units.)
  2. Tell your Mac about it — paste this into Terminal, replacing the placeholder with your real key:
bash
echo 'export SEMRUSH_API_KEY="paste_your_key_here"' >> ~/.zshrc && source ~/.zshrc
  1. Verify everything works:
bash
npx semrush-ai-tool units

If you see your API units balance — you're fully set up. 🎉


🤖 Connect Your AI Assistant (MCP Setup)

This is where the magic happens: your AI gets 18 live Semrush tools.

Claude Desktop

Open (or create) this file:

~/Library/Application Support/Claude/claude_desktop_config.json

Non-developers: in Finder press Cmd + Shift + G, paste the path above, and open the file with TextEdit. If it doesn't exist, create it.

Paste this in (replace the key with yours):

json
{
  "mcpServers": {
    "semrush-ai-tool": {
      "command": "npx",
      "args": ["-y", "github:springvoiceswell/semrush-ai-tool"],
      "env": {
        "SEMRUSH_API_KEY": "paste_your_key_here"
      }
    }
  }
}

Restart Claude Desktop. You should see 🔨 tools available — Claude can now run live Semrush SEO analysis.

Cursor

  1. Settings → MCP → Add new global MCP server
  2. Use the same JSON block as above, or:
    • Type: command
    • Command: npx -y github:springvoiceswell/semrush-ai-tool
    • Environment: SEMRUSH_API_KEY=your_key

Other MCP Clients (Windsurf, Cline, etc.)

Any MCP-compatible client can connect over stdio. Point it at:

npx -y github:springvoiceswell/semrush-ai-tool

with the SEMRUSH_API_KEY environment variable set.

💬 What to Ask Your AI

Once connected, just talk naturally:

  • "Give me a full SEO overview of example.com — traffic, top keywords, and how rankings changed over the last year."
  • "Find 20 low-difficulty question keywords related to 'email marketing' I could rank for."
  • "Who are the top organic competitors of mysite.com and what keywords do we share?"
  • "Audit the backlink profile of example.com and list the strongest referring domains."
  • "Score the keyword difficulty of these 10 keywords and tell me which to target first."

⌨️ CLI Usage

The semrush-ai CLI is built for humans and AI coding agents (Claude Code, etc.) that can run shell commands.

bash
semrush-ai q "seo tools"                 # 🔮 Smart lookup — auto-detects keyword vs domain
semrush-ai domain example.com            # 🌐 Domain overview
semrush-ai domain example.com --organic -l 30      # Top 30 organic keywords
semrush-ai domain example.com --competitors        # Organic competitors
semrush-ai domain example.com --history            # Rank history
semrush-ai kw "content marketing"                  # Keyword overview
semrush-ai kw "seo" --related -l 20                # Related keywords
semrush-ai kw "marketing" --questions -l 10        # Question keywords
semrush-ai kw "seo tools" --serp                   # Who ranks on the SERP
semrush-ai kd "seo" "link building" "ppc"          # Keyword Difficulty batch
semrush-ai bl example.com                          # Backlink overview
semrush-ai bl example.com --domains -l 20          # Top referring domains
semrush-ai traffic example.com                     # Traffic summary (.Trends)
semrush-ai units                                   # API units balance

Global flags: -d, --database <code> (default us) · -l, --limit <n> · -f, --format text|json

bash
semrush-ai domain example.com --organic -d uk -l 50 -f json

🧰 Available MCP Tools

🌐 Domain Analytics

ToolDescription
semrush_domain_overviewDomain overview across all databases — traffic, keywords, Semrush rank
semrush_domain_rankOrganic & paid visibility in one regional database
semrush_domain_rank_historyMonthly historical rankings, keywords and traffic
semrush_domain_organic_keywordsKeywords the domain ranks for in Google's top 100
semrush_domain_paid_keywordsKeywords the domain bids on in Google Ads
semrush_domain_competitorsOrganic search competitors with competition level
semrush_domain_paid_competitorsPaid search (Google Ads) competitors

🔍 Keyword Research

ToolDescription
semrush_keyword_overviewVolume, CPC & competition across all databases
semrush_keyword_overview_single_dbDetailed metrics + trends in one database
semrush_related_keywordsRelated phrases & variations for content ideation
semrush_keyword_questionsQuestion keywords for FAQs & featured snippets
semrush_keyword_difficultyDifficulty index (0–100), up to 100 keywords per call
semrush_keyword_serpDomains & URLs ranking organically for a keyword

🔗 Backlink Analysis

ToolDescription
semrush_backlinks_overviewBacklinks, referring domains, IPs, follow/nofollow
semrush_backlinksIndividual backlinks with anchors & first/last seen
semrush_backlinks_refdomainsReferring domains sorted by authority

📈 Traffic & 💳 Utility

ToolDescription
semrush_traffic_summaryVisits, uniques, bounce rate, duration (requires .Trends)
semrush_api_units_balanceRemaining Semrush API units

💰 API units: every Semrush API call consumes units from your account. Run semrush-ai units (or ask your AI) to check your balance before large batch jobs.


👩‍💻 Developer Guide

This section is for contributors and engineers who want to understand, extend, or embed semrush-ai-tool.

🏗️ Architecture

Deliberately minimal — zero build step, two runtime dependencies, plain ESM JavaScript:

semrush-ai-tool/
├── src/
│   ├── index.js    # MCP server entry (stdio transport, @modelcontextprotocol/sdk)
│   ├── cli.js      # CLI entry — dependency-free arg parsing, text/JSON output
│   ├── api.js      # SemrushClient: Analytics + Backlinks + .Trends APIs,
│   │               #   token-bucket rate limiter, CSV parser, typed errors
│   └── tools.js    # 18 MCP tool definitions (zod schemas → Semrush reports)
├── tests/          # node:test unit tests (no API key required)
├── .env.example
└── package.json

Design decisions:

  • No transpilation. The package runs as-shipped on Node 18+, so npm install github:... works instantly with no prepare/build surprises — critical for non-developer installs.
  • Thin tool layer. Each MCP tool maps 1:1 to a Semrush API report. Adding a tool = one server.registerTool() call with a zod schema. PRs that add reports are trivial to review.
  • Errors that explain themselves. Semrush returns logical errors as ERROR <code> with HTTP 200; the client normalizes these into actionable messages (check key / subscription / units).
  • stdout is sacred. The MCP server never writes to stdout except protocol frames — all logs go to stderr.

🔧 Local Development

bash
git clone https://github.com/springvoiceswell/semrush-ai-tool.git
cd semrush-ai-tool
npm install
cp .env.example .env   # add your SEMRUSH_API_KEY
bash
npm test                    # Unit tests (no API key needed)
npm start                   # Run the MCP server on stdio
npm run cli -- units        # Run the CLI
node --inspect src/index.js # Debug the server

Test the MCP server end-to-end with the official inspector:

bash
npx @modelcontextprotocol/inspector node src/index.js

⚙️ Configuration

VariableDefaultDescription
SEMRUSH_API_KEY(required)Your Semrush API key
SEMRUSH_RATE_LIMIT_PER_SECOND10Max API requests per second
SEMRUSH_TIMEOUT_MS30000Per-request timeout

➕ Adding a New Tool

  1. Find the report type in the Semrush API docs.
  2. Add a server.registerTool() block in src/tools.js with a zod input schema.
  3. Add the tool name to TOOL_NAMES and to the README table.
  4. Run npm test and open a PR. 🎉

🤝 Contributing

Contributions are welcome — new Semrush reports, CLI commands, docs, tests, and bug fixes.

  1. Fork the repo and create a feature branch: git checkout -b feat/my-report
  2. Keep the zero-build-step constraint (plain ESM JS, Node 18+).
  3. Add/adjust tests: npm test must pass.
  4. Open a PR with a clear description of the Semrush report or behavior added.

Please open an issue first for large changes.


🔒 Security

  • Never commit your API key. .env is git-ignored; use environment variables or your MCP client's env block.
  • Your key is sent only to Semrush's official API endpoints over HTTPS — this tool is fully self-hosted and makes no other network calls.
  • Anyone with your key can spend your API units. Rotate it immediately if exposed.

❓ FAQ

Do I need a paid Semrush account? Yes — the Semrush API requires a Business subscription or purchased API units. The tool itself is free and open source.

Is this an official Semrush product? No. This is a community-built, open-source project and is not affiliated with or endorsed by Semrush. Semrush also offers an official hosted MCP connector at https://mcp.semrush.com/v1/mcp if you prefer a managed option.

Does it work on Windows/Linux? Yes — anywhere Node.js 18+ runs. The step-by-step guide above is macOS-specific, but developers on any OS can use the quick install.

The AI says the tool failed with an API error? Run semrush-ai units — most failures are an unset SEMRUSH_API_KEY, an exhausted units balance, or a report your subscription doesn't include (e.g. .Trends).

🗺️ Roadmap

  • Keyword Gap analysis (domain-vs-domain)
  • Site Audit & Projects API tools
  • Full .Trends traffic & audience suite
  • Cached responses with configurable TTL
  • npm registry release (npm i semrush-ai-tool)

⭐ Support the Project

If semrush-ai-tool saves you time, please star the repo — it helps other SEOs and developers find it. Shares, issues, and PRs are all appreciated.

📄 License

MIT © 2026 springvoiceswell — free for personal and commercial use.


Keywords: Semrush SEO tool · Semrush API · MCP server · Model Context Protocol · AI SEO analysis · keyword research tool · backlink analysis · competitor analysis · domain analytics · keyword difficulty · SERP analysis · SEO automation · Claude SEO · Cursor MCP · AI marketing tools

Установка

TypingMind
{
  "mcpServers": {
    "semrush-ai-tool": {
      "command": "npx",
      "args": [
        "-y",
        "github:springvoiceswell/semrush-ai-tool"
      ],
      "env": {
        "SEMRUSH_API_KEY": "<SEMRUSH_API_KEY>"
      }
    }
  }
}

Используйте MCP Semrush Ai Tool с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Semrush Ai Tool вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте Semrush Ai Tool как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для Semrush Ai Tool.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "semrush-ai-tool": {
      "command": "npx",
      "args": [
        "-y",
        "semrush-ai-tool"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Semrush Ai Tool, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Semrush Ai Tool.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью Semrush Ai Tool?
Semrush Ai Tool
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Semrush Ai Tool.

Часто задаваемые вопросы

Для чего используется сервер MCP Semrush Ai Tool?

Semrush Ai Tool — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Semrush Ai Tool с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Semrush Ai Tool с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP Semrush Ai Tool с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Semrush Ai Tool, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP Semrush Ai Tool к TypingMind?

Semrush Ai Tool работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP Semrush Ai Tool в TypingMind?

Semrush Ai Tool предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Semrush Ai Tool?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Semrush Ai Tool требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇