SEO Performance MCP
A MCP server that turns your scattered SEO and analytics data into one clear verdict per URL. Plug it into Claude, Cursor, or any MCP-aware client and ask: "Which three posts should I update this week?" - and get an answer backed by hard numbers.
README
seo-performance-mcp
Know which blog posts to refresh, expand, merge, or kill - without guessing.
A MCP server that turns your scattered SEO and analytics data into one clear verdict per URL. Plug it into Claude, Cursor, or any MCP-aware client and ask: "Which three posts should I update this week?" - and get an answer backed by hard numbers.
What it does
seo-performance-mcp unifies post-publish signals from every channel you already pay for:
- Google Search Console - clicks, impressions, CTR, position, top queries
- Matomo or GA4 - visits, dwell time, bounce rate
- Microsoft Clarity - scroll depth, rage clicks, dead clicks
- AI citation tracking - which LLMs cite your URL today vs. last month
- Sitemap / CMS - publish dates, tags, word counts (any platform via XML sitemap; optional Ghost integration for richer metadata)
It then runs a deterministic rule engine over those signals and emits a verdict per URL:
refresh/expand/merge/kill/double_down/hold
with reason codes, evidence, and a 0-1 confidence score. Reporting only - the server never mutates your posts.
Why it matters
Most content teams have analytics in five tabs and a gut feeling. That's how good posts rot quietly, mediocre posts get over-promoted, and the obvious "rewrite this one" is invisible until traffic has already cratered.
This MCP closes the loop:
- One question, one URL in, one verdict out.
- Same logic across the whole cohort, so the ranking is comparable.
- All decisions traceable to numeric thresholds you can pin in
src/verdict/rules.ts. - AI clients (Claude, Cursor, MCP hosts) can drive the entire content audit in plain English.
Who it's for
- Content marketers running a blog of 50+ posts and tired of guessing what to refresh.
- SEO consultants doing audits who want a portable, deterministic scoring layer instead of bespoke spreadsheets.
- AI-first content teams wiring up rewrite agents - this MCP is the upstream signal layer.
- Indie publishers on Ghost, WordPress, Hugo, Astro, Next, Webflow, or any CMS that exposes a sitemap.
What you get
After one cohort run you have:
- A ranked table of every post with a verdict and confidence score.
- A markdown brief per "refresh" URL: numbers + top queries + suggested actions an editor (or a writing agent) can act on immediately.
- A list of "quick wins": queries sitting at positions 5-15 with below-expected CTR - the fastest title-rewrite wins on the property.
- A historical AI-citation diff: which LLMs cited you and stopped.
Install
npx -y @automatelab/seo-performance-mcp
In a Claude, Claude Code, or Cursor MCP config:
{
"mcpServers": {
"seo-performance": {
"command": "npx",
"args": ["-y", "@automatelab/seo-performance-mcp"],
"env": {
"POSTS_SITEMAP_URL": "https://example.com/sitemap.xml",
"GSC_SERVICE_ACCOUNT_JSON": "<base64-encoded service-account JSON>",
"GSC_SITE_URL": "sc-domain:example.com",
"MATOMO_URL": "https://example.com/analytics",
"MATOMO_TOKEN": "...",
"MATOMO_SITE_ID": "1",
"GA4_PROPERTY_ID": "123456789",
"GA4_SERVICE_ACCOUNT_JSON": "<base64-encoded service-account JSON>",
"CLARITY_PROJECT_ID": "...",
"CLARITY_API_TOKEN": "...",
"CITATION_INTELLIGENCE_URL": "https://citation.example.com"
}
}
}
}
Every env var is optional. Adapters that lack their env config skip their slice of the snapshot; the server still boots. The verdict engine works on whatever slices are present.
Platform integration
Point it at any site, no CMS plugin required. The post-discovery layer resolves in priority order:
POSTS_LIST- JSON array of{url, title?, published_at?, tags?, word_count?}. Use this when you already have a content index and want exact control.- Ghost Admin API - if both
GHOST_ADMIN_API_URLandGHOST_ADMIN_API_KEYare set, Ghost is used as a richer metadata source. Optional. - HTML extraction - per-URL
og:title,article:published_time, and JSON-LDdatePublishedare read live from the URL. - XML sitemap - set
POSTS_SITEMAP_URLto your sitemap (or sitemap index) and the server enumerates posts from<loc>+<lastmod>.
Most users only need POSTS_SITEMAP_URL. WordPress, Hugo, Astro, Next.js, Webflow, Framer, Wix, Squarespace, Notion-as-a-site, Substack-mirror sites all expose a sitemap by default.
To add a brand-new platform: nothing to build - just point POSTS_SITEMAP_URL at it.
Tools exposed
| Tool | What it returns |
|---|---|
posts.list |
Posts with {url, title, age_days, tags} from sitemap, Ghost, or your POSTS_LIST. |
posts.snapshot |
Per-URL unified rollup for a 30/60/90-day window: GSC + Matomo + GA4 + Clarity + citations + meta. |
posts.decay_curve |
Weekly GSC clicks/impressions/position buckets + a decay/plateau/growth trend label. |
posts.verdict |
Verdict (refresh/expand/merge/kill/double_down/hold) + reason codes + 0-1 confidence. |
posts.refresh_brief |
Markdown brief for a human or downstream LLM editor: numbers, top queries, suggested actions. |
cohort.report |
Cohort verdict table sorted by priority + confidence. "Which three posts should I refresh this week?" |
posts.cite_loss |
LLM citations that dropped off for a given URL. Needs CITATION_INTELLIGENCE_URL. |
gsc.quick_wins |
(page, query) pairs at positions 5-15 with low CTR - fastest title-rewrite wins. |
Use as a GitHub Action
Run any of the tools on a cron from CI and post the output to a GitHub Issue, Discussion, or PR. The action is published on the GitHub Marketplace.
- uses: AutomateLab-tech/seo-performance-mcp@v1
with:
tool: cohort.report
format: markdown
input: '{"window": 90, "min_age_days": 90, "limit": 20}'
gsc-service-account-json: ${{ secrets.GSC_SERVICE_ACCOUNT_JSON }}
gsc-site-url: ${{ secrets.GSC_SITE_URL }}
posts-sitemap-url: ${{ secrets.POSTS_SITEMAP_URL }}
Outputs:
| Output | Description |
|---|---|
result |
Tool output as a multi-line string (markdown or JSON, per format). |
result-file |
Path of the file the tool output was written to. Hand to peter-evans/create-issue-from-file etc. |
rows |
For cohort.report with format: json only: number of rows returned. |
A complete weekly-audit workflow that opens a GitHub Issue with the cohort report is in examples/weekly-cohort-report.yml.
Use as a one-shot CLI
The package also ships a seo-perf-cli bin so you can run a single tool without an MCP client:
npx -p @automatelab/seo-performance-mcp seo-perf-cli cohort.report \
--input '{"window": 90, "limit": 20}' \
--format markdown
Same env vars as the MCP server. --format markdown is supported for cohort.report and posts.refresh_brief; other tools fall back to fenced JSON.
Companion skills + Cursor rule
Three thin routing files ship in the repo so the LLM in your client knows when to reach for these tools:
skills/seo-performance/SKILL.md- tool-routing skill. Drop into~/.claude/skills/seo-performance/(or.claude/skills/per project) to auto-load in Claude Code. Routes a single question to the right tool.skills/weekly-audit/SKILL.md- one-shot weekly audit playbook. Composesgsc.quick_wins+cohort.report+posts.cite_lossinto a deduped, cross-signal ranked digest with proposed edits per URL. Drop in alongside the routing skill.cursor/rules/seo-performance.mdc- copy to.cursor/rules/seo-performance.mdcin any Cursor workspace.
All optional. The MCP server works without them; they just shorten the "which tool do I call" round-trip.
MCP prompts
The server exposes three prompts that bundle the playbook. Any MCP client (Claude Desktop, Claude Code, Cursor, Continue) can list and invoke them:
| Prompt | What it runs |
|---|---|
audit_cohort |
cohort.report on posts >=90d, then posts.refresh_brief per refresh/expand/merge row. The weekly audit. |
find_quick_wins |
gsc.quick_wins (positions 5-15) + per-URL posts.snapshot, then proposes verbatim-query meta_title rewrites. |
citation_loss_sweep |
posts.cite_loss per URL, refresh_brief for any with losses, targeted H1/lead phrasing recommendations. |
Verdict engine
Deterministic, rule-based, traceable. Reason codes:
ctr_below_position_expectedposition_driftdecay_30d_over_30pct/decay_60d_over_50pctstagnant_no_clicksthin_content_low_dwellrising_impressions_low_ctr/rising_clicks_continue_investmentcitation_loss/citation_growthduplicate_or_cannibalizinghigh_bounce_low_scrollfresh_post_too_young
The mapping (reasons → verdict) and every threshold lives in src/verdict/rules.ts. Edit it, pin it in tests, ship your own rule book.
Development
npm install
npm run dev # tsx src/index.ts
npm run build # tsc
npm test # vitest
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。