连接器指南阅读约 4 分钟21 个 MCP 工具7 种语言

Semrush 接入 MCP:为任意 AI 代理提供 SEO 和关键词数据

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

HC作者:HelpCode 团队更新于 4 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Semrush

Semrush

Give your AI Semrush SEO data: domain overview and history, organic and paid keywords, competitors, keyword gap, keyword volume, difficulty and ideas, URL rankings and backlinks, with the API unit cost of every report.

个工具

21

区域

INTL

类别

数据分析

身份验证

Query Param Auth

所需环境变量

SEMRUSH_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 Semrush,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

试试这样问

Semrush 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Semrush · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Semrush、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Semrush

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

设置

  1. 使用 API 需要 Semrush SEO Business 订阅,外加一个 API 单位包,可在 Subscription info → API units(https://www.semrush.com/accounts/subscription-info/api-units/)中购买。新开通的 Business 套餐初始 API 单位为零。
  2. 打开 https://www.semrush.com/accounts/api-keys/active,复制一个有效的 v3 API 密钥。
  3. 将其粘贴到 SEMRUSH_API_KEY 并安装连接器。密钥加密存储,由连接器附加到每个请求中,且只发送到 semrush.com。
  4. 先使用 semrush_get_api_units:它免费,会显示该密钥还剩多少 API 单位。

从你自己的 Semrush API 单位中扣费:每份报告都会按返回的行数消耗你 Semrush 账户中的 API 单位。域名概览及其历史、自然关键词、排名页面、单个 URL 的关键词以及某个关键词的 Google 前 100 名,每行 10 个单位(批量概览中每个关键词 10 个);付费关键词和广泛匹配关键词建议每行 20 个;自然搜索竞争对手、相关关键词、问题关键词、反向链接和引荐域名每行 40 个(反向链接概览每次请求 40 个);Keyword Difficulty 每个关键词 50 个;Keyword Gap 每行 80 个。用 display_date 查询历史数据,费用是平时的五倍。除非你要求更多,报告默认返回 10 行,AI 只在你确实需要时才提高行数。减少列数可以让回答更短,但不会降低费用。单位不足时,Semrush 只返回已付费的那些行。

注意全部国家的关键词报告:semrush_keyword_overview_all_databases 每个国家返回一行,且无法限制行数:约 140 行,最多 1,400 个单位。只看一个市场时,semrush_keyword_overview 只需 10 个单位。

功能:Domain Overview 及其月度历史,可查看单个国家或全部国家;Organic Research 和 Advertising Research(某个域名有自然排名或投放 Google Ads 的关键词);自然搜索竞争对手和获得排名的页面;最多五个域名之间的 Keyword Gap(共有、缺失、独有和未开发的关键词);单个关键词或一次最多 100 个关键词的搜索量、CPC、竞争度、搜索意图、趋势和 Keyword Difficulty;相关关键词、广泛匹配关键词和问题关键词;Semrush 为某个关键词记录的 Google 前 100 名结果;单个 URL 的关键词;以及包含 Authority Score、反向链接和引荐域名的 Backlink Analytics。所有工具都是只读的。

数据库和筛选条件:database 是两个字母的国家代码(us、uk、de、it、fr、es 等)。移动端(mobile-us)和扩展(us-ext)数据库仅适用于域名报告。诸如“搜索量高于 1,000”或“排名第 1 到 10 位”这样的筛选条件,会由连接器编码成 Semrush 自己的筛选语法后发送。

解读回答:Semrush 以分号分隔的 CSV 返回结果,带有一行表头和它自己的列代码(Ph 关键词、Po 排名、Nq 搜索量、Cp 以美元计的 CPC、Kd Keyword Difficulty、In 搜索意图等)。AI 会替你解读这些代码。

常见错误:ERROR 50 :: NOTHING FOUND 表示 Semrush 没有该域名、关键词或数据库的数据;请检查拼写和数据库,不要反复重试。ERROR 120、122 或 402:API 密钥错误,请重新复制。ERROR 130 :: API DISABLED:该订阅没有 API 访问权限。ERROR 132:API 单位已用完(对于 Semrush 无法识别的密钥,反向链接报告也会返回此错误)。ERROR 133:套餐不包含该数据库。ERROR 429:同时发送的请求过多,请稍等片刻。

该连接器不涵盖 Projects、Position Tracking 或 Site Audit、Trends(流量)API、Local 和 Listing Management API,也不涵盖子域名和子目录报告。

前提条件: SEMRUSH_API_KEY

本地安装连接器

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

打开 http://localhost:3000/connectors/store,选择 Semrush 并填入前提条件中列出的环境变量。

可用工具

ToolWhat it does
semrush_get_api_unitsShow how many Semrush API units this key has left
semrush_domain_overviewDomain overview in one Semrush database: Semrush rank, organic keywords, organic traffic and traffic cost, paid keywords, paid traffic and…
semrush_domain_overview_all_databasesThe same overview for every Semrush regional database at once (one line per country)
semrush_domain_historyMonthly history of a domain's organic and paid metrics in one database (rank, keywords, traffic, cost, date), newest first
semrush_domain_organic_keywordsKeywords a domain ranks for in Google's top 100 (Organic Research): position, previous position, volume, CPC, URL, traffic share, intent
semrush_domain_paid_keywordsKeywords a domain buys Google Ads for (Advertising Research): ad position, volume, CPC, visible URL, traffic share
semrush_domain_organic_competitorsOrganic search competitors of a domain: competitor relevance, common keywords, their organic keywords, traffic and cost
semrush_domain_organic_pagesA domain's pages that rank in Google's top 100, with the number of ranking keywords and traffic per page
semrush_keyword_gapCompare the keywords of up to five domains (Keyword Gap): shared, all, unique, missing or untapped keywords with each domain's position
semrush_keyword_overviewVolume, CPC, competition, number of results, trend, intent and difficulty of one keyword in one database
semrush_keyword_overview_all_databasesVolume, CPC and competition of one keyword in every regional database at once (one line per country), to compare markets
semrush_batch_keyword_overviewOverview of up to 100 keywords in one database in a single call: volume, CPC, competition, results, trend, intent, difficulty
semrush_keyword_organic_resultsThe organic Google results (SERP) Semrush recorded for a keyword: position, domain, URL and SERP features
semrush_related_keywordsRelated keywords, synonyms and variations of a keyword with volume, CPC, competition, difficulty, intent and relevance
semrush_broad_match_keywordsBroad-match keyword ideas that contain the given keyword, with volume, CPC, competition, difficulty and intent
semrush_keyword_questionsQuestion keywords (how, what, why...) that contain the given keyword, with volume, CPC, competition and difficulty
semrush_keyword_difficultyKeyword Difficulty (0 to 100) of up to 100 keywords: how hard it is to reach Google's top 10
semrush_url_organic_keywordsKeywords one URL ranks for in Google's top 100: position, volume, CPC, traffic share, intent
semrush_backlinks_overviewBacklink summary of a domain or URL: Authority Score, total backlinks, referring domains, URLs and IPs, follow and nofollow links, text and…
semrush_backlinksBacklinks of a domain or URL: Authority Score of the linking page, source title and URL, target URL, anchor, nofollow, first and last seen…
semrush_referring_domainsDomains that link to a domain or URL: Authority Score, number of backlinks, IP, country, first and last seen (Unix time)

示例提示

  • “给我 example.com 在德国数据库中的 Semrush 域名概览,以及它今年自然流量的逐月变化。”
  • “在美国数据库中对 example.com、competitor-a.com 和 competitor-b.com 做关键词差距分析:哪些关键词他们排进了前 10 名而我们没有?返回 20 行。”
  • “在美国数据库中找出与 ‘heat pump’ 相关、月搜索量超过 500 的问题关键词,然后查看它们的关键词难度。”
  • “显示 competitor-a.com 的反向链接概览和 Authority Score,以及它最强的 20 个引荐域名。”
  • “我们还剩多少 Semrush API 单位?”

下一步

这份指南对你有帮助吗?

你的 Semrush 智能体只差一次点击。

安装连接器,粘贴密钥,向你的 AI 客户端提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Semrush 连接到 ChatGPT

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

连接器

如何通过 MCP 将 Semrush 连接到 Claude

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

连接器

如何通过 MCP 将 Semrush 连接到 Cursor

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

连接器

如何通过 MCP 将 Semrush 连接到 Gemini

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

连接器

如何通过 MCP 将 Semrush 连接到 Meta Muse

为你的 AI 提供 Semrush SEO 数据:域名概览及历史、自然和付费关键词、竞争对手、关键词差距、关键词搜索量、难度和关键词建议、URL 排名和反向链接,并显示每份报告消耗的 API 单位。

连接器

Avito 接入 MCP:在任意 AI 智能体中管理 Avito 广告、价格和数据

让你的 AI 使用你的 Avito 企业账户:列出广告并修改价格,读取浏览、联系和来电统计,检查自动上传 (autoload) 的上传记录及其错误、Feed 格式和钱包,并读取 Avito Messenger 聊天。发送消息和修改自动上传设置为可选功能,默认关闭。