SEO & GEO

io.github.OrtaMarco由 GitHub 账号 OrtaMarco 发布v1.2.2更新于 Oct 24, 2026

Audit a page's SEO and its readiness for AI answer engines: meta, schema, robots, sitemaps, AI bots.

概览

AI 生成的概览

一个本地 MCP 服务器,让助手审计页面的 SEO 以及被 AI 答案引擎抓取和引用的准备程度。

可以做什么
对网址执行完整的 SEO 与 GEO 审计,返回加权 0–100 评分、A–F 等级和按优先级排列的修复建议;SEO 审计可选加入 GEO 维度,另有专门的 AI 答案引擎就绪评分,涵盖爬虫访问、服务端渲染内容、结构化数据、可提取结构、作者信息、新鲜度和深度。对照 robots.txt 检查 AI 爬虫访问权限,区分训练爬虫与引用爬虫,并标出厂商声明无法强制执行的屏蔽规则,同时检测内容在无 JavaScript 时是否仍可读取。校验 llms.txt 并报告其真实采用状况。检查页面元素:meta 标签、社交预览及 og:image 是否可加载、标题层级、结构化数据是否符合富媒体结果要求、内容可读性、图片 SEO、robots.txt、站点地图、规范主机、重定向链、链接和 hreflang。
适用场景
当你希望助手检查页面的站内 SEO,并判断 ChatGPT、Claude、Perplexity 和 Gemini 等 AI 助手能否抓取和引用该页面,同时在与修改代码相同的流程中获得带评分和优先修复建议的报告时使用。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 20.18 或更高版本。无需 API 密钥或账号。可选的 Streamable HTTP 自托管使用环境变量 TRANSPORT、PORT、HOST、ALLOWED_HOSTS、ALLOWED_ORIGINS 和 MCP_AUTH_TOKEN。需要网络访问以抓取被审计页面及其链接资源。
安装前请注意
工具会抓取调用方指定的网址以及被审计网站中出现的网址(链接、og:image、hreflang 替代页、站点地图子项、重定向),因此服务器会向第三方站点发起外部请求;每次连接都经过 SSRF 防护检查。所有工具均声明为只读。若将 HTTP 传输暴露到回环地址之外,请设置 ALLOWED_HOSTS 和 MCP_AUTH_TOKEN,因为绑定到非回环地址而未设置时仅会给出警告。

安装

在 SourceWeft 中

  1. 打开 控制台中的 SEO & GEO,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

seo-geo-mcp-server

An MCP server that lets an AI agent audit a page for SEO and GEO (Generative Engine Optimization) — on-page tags, structured data, robots.txt, sitemaps, hreflang, and whether ChatGPT, Claude, Perplexity and Gemini can actually crawl and cite you. No API keys required.

[ci] [npm] [MCP] [TypeScript] [License: MIT]

Built on the v2 MCP SDK: the server speaks the 2026-07-28 protocol revision and still accepts 2025-era clients (Claude Desktop, Claude Code, Cursor) from the same factory — one build, both eras, nothing to configure.

Ask Claude "how is this page doing, and will AI assistants cite it?" and it runs a full audit and hands you a graded report with prioritised fixes — instead of you pasting a URL into six different web tools.

> Audit https://example.com/guide and tell me if ChatGPT can cite it
  seo_audit(url="https://example.com/guide", include_geo=true)
  Overall: A (92/100) · indexable: yes    Meta tags & social preview   95 (A)    Heading structure           100 (A)    Structured data              75 (C)
  GEO readiness: B (85/100)    ✅ AI crawler access        25/25    ✅ Server-rendered content  20/20    ❌ Authorship & entity       2/10  1. Add author and Organization markup with `sameAs` links to official profiles.

Why this exists

Two gaps, one server.

The SEO gap: the on-page checkers are all web UIs. None of them let an agent run the audit, read the result and fix the code in the same loop.

The GEO gap: "generative engine optimization" tooling is mostly rank-tracking dashboards behind a subscription. The mechanics that actually decide whether an AI assistant can cite you are cheap to check and almost never checked:

  • Can the AI search crawlers reach you? Blocking GPTBot stops training. Blocking OAI-SearchBot stops you being cited. Most sites that meant to do the first have accidentally done the second. This server separates them.
  • Does your content exist without JavaScript? Googlebot renders JS. GPTBot, ClaudeBot, PerplexityBot and CCBot largely do not. A client-rendered page can rank fine in Google and be invisible to every AI assistant.

It is the agent-facing companion to the tools at ortamarco.me, and shares its core (the connect-time SSRF guard and host validation) with domain-security-mcp-server.

Tools

Audits

ToolWhat it does
seo_audit ⭐One fetch → seven weighted sections (meta, headings, content, schema, images, links, crawlability) → 0–100 score, A–F grade, prioritised fixes. include_geo=true adds the GEO dimension
geo_audit ⭐AI answer-engine readiness: crawler access (25), server-rendered content (20), structured data (15), extractable structure (15), authorship (10), freshness (8), depth (7)

GEO

ToolWhat it does
ai_crawler_accessResolves ~35 AI crawler tokens against robots.txt. Separates training from citation bots, flags blocks that vendors document as unenforceable, handles the Applebot→Googlebot fallback
render_checkWhether content survives without JavaScript — detects unhydrated SPA shells that AI crawlers cannot read
llms_txt_checkDetects and validates /llms.txt against the llmstxt.org proposal — and reports its real adoption status rather than implying it earns visibility

On-page

ToolWhat it does
meta_tags_checkTitle, description, canonical, robots (meta and X-Robots-Tag), lang, charset, viewport
social_preview_checkOpen Graph + Twitter Card, and verifies the og:image actually loads
heading_structureFull h1–h6 outline, multiple h1s, skipped levels, question-shaped headings
structured_data_checkJSON-LD/microdata/RDFa extraction, parse errors, and Google rich-result requirements for 21 schema types
content_analysisWord count, Flesch reading ease, thin-content detection, text-to-HTML ratio, term density (EN + ES stopwords)
image_seo_checkMissing alt text, missing dimensions (layout shift), lazy loading, WebP/AVIF adoption

Technical

ToolWhat it does
robots_txt_checkRFC 9309 parse; flags wildcard Disallow: / and 5xx responses (which Google reads as disallow-all)
sitemap_checkDiscovery via robots.txt → conventional paths; index following, gzip, 50k/50MiB limits, lastmod validity
canonical_host_checkAll four http/https × apex/www variants — do they converge on one canonical URL, and via 301 or 302?
redirect_traceHop-by-hop chain with loop and temporary-redirect detection
link_auditInternal/external split, rel attributes, generic anchor text, optional broken-link sampling
hreflang_checkBCP-47 validity, self-reference, x-default, duplicates — plus optional reciprocity verification

Every tool is read-only, declares an outputSchema and returns structuredContent (validated by the SDK) alongside human-readable Markdown (default) or JSON (response_format="json"), plus actionable error messages.

Honesty notes

This server deliberately refuses to overstate two things that most GEO content gets wrong. Both are surfaced in tool output, not buried here:

  • llms.txt is not an adopted standard. It is a community proposal from September 2024. No major AI vendor has documented that its crawlers read it from third-party sites, and Google has publicly said it does not. The tool reports presence and validates shape — and geo_audit deliberately does not score it. (llms-full.txt is a docs-tooling convention, not part of the proposal.)
  • Some robots.txt blocks are advisory. Perplexity-User, ChatGPT-User and meta-externalfetcher are documented by their own vendors as ignoring or possibly ignoring robots.txt. Reporting those as cleanly "blocked" would be misleading, so they are listed separately as unenforceable.

Crawler tokens carry a provenance field distinguishing first-party vendor documentation from community aggregators, and vendors that publish no token at all (xAI/Grok, Microsoft Copilot) are named explicitly — because a missing rule cannot be read as either allowed or blocked.

Install

Requires Node.js 20.18+. Nothing to clone — every MCP client can run it with npx.

Use it with Claude Code

bash
claude mcp add seo-geo -- npx -y seo-geo-mcp-server

Use it with Claude Desktop or Cursor

Add to claude_desktop_config.json (or ~/.cursor/mcp.json) — see examples/:

json
{  "mcpServers": {    "seo-geo": {      "command": "npx",      "args": ["-y", "seo-geo-mcp-server"]    }  }}

On Windows use "command": "cmd" with "args": ["/c", "npx", "-y", "seo-geo-mcp-server"]. Restart the client, then ask: "Audit the SEO and GEO of example.com."

Self-host (HTTP transport)

The same server speaks stateless Streamable HTTP for remote or multi-client use. One endpoint serves both protocol eras; there is no session state and no Mcp-Session-Id to carry.

bash
TRANSPORT=http npx -y seo-geo-mcp-server# POST JSON-RPC to http://127.0.0.1:3000/mcp   ·   health at /healthz

It is safe by default: it binds to 127.0.0.1 and only accepts localhost Host and Origin headers, which blocks DNS-rebinding attacks from a web page. To expose it — for example behind Coolify or Traefik — opt in explicitly:

VariableDefaultPurpose
TRANSPORTstdiohttp to serve Streamable HTTP
PORT3000Listening port
HOST127.0.0.1Bind address; 0.0.0.0 to accept remote connections
ALLOWED_HOSTS—Comma-separated hostnames the Host header may carry (e.g. mcp.example.com)
ALLOWED_ORIGINS—Comma-separated origins allowed to call from a browser
MCP_AUTH_TOKEN—If set, every request needs Authorization: Bearer <token>

Binding to a non-loopback address without ALLOWED_HOSTS or MCP_AUTH_TOKEN works, but the server says so on stderr. With Docker (the image sets HOST=0.0.0.0):

bash
docker build -t seo-geo-mcp .docker run -p 3000:3000 -e ALLOWED_HOSTS=mcp.example.com -e MCP_AUTH_TOKEN=change-me seo-geo-mcp

Develop

bash
npm run dev      # tsx watch (stdio)npm test         # deterministic unit tests: SSRF guard, robots matcher, nesting guard,                 # gzip sitemaps, SPA detection, JSON-LD, HTTP transport defaultsnpm run smoke    # call all 17 tools over MCP, in BOTH protocol eras, and validate                 # structuredContent vs outputSchemanpm run inspect  # open the MCP Inspector against the built servernpm run build    # type-check + emit dist/

evals/ holds a 10-question LLM evaluation set (stable, verifiable) and instructions for running it — see evals/README.md.

How it works

src/├── index.ts        # transport selection: serveStdio | createMcpHandler + Express├── server.ts       # the factory: registers every tool on one McpServer├── schemas.ts      # Zod 4 outputSchema for each tool├── core/           # pure logic, no MCP coupling — reusable & testable│   ├── validate.ts     # host/URL validation and the address classifier│   ├── netguard.ts     # connect-time SSRF guard (every socket's address is checked)│   ├── fetch.ts        # fetch: guarded dispatcher, manual redirects, loop detection, byte caps│   ├── page.ts         # HTML loading + the shared parsed-document model│   ├── meta.ts         # title/description/canonical/robots, Open Graph, hreflang│   ├── content.ts      # headings, readability, word counts, image SEO│   ├── structured-data.ts # JSON-LD/microdata + Google rich-result requirements│   ├── robots.ts       # RFC 9309 parser and rule matcher│   ├── ai-crawlers.ts  # the AI crawler registry (token, purpose, compliance, provenance)│   ├── sitemap.ts      # discovery, index following, gzip, protocol limits│   ├── links.ts        # link classification + broken-link sampling│   ├── redirects.ts    # chain tracing + host canonicalisation│   ├── geo.ts          # llms.txt, JS-rendering detection, GEO scoring│   └── seo-audit.ts    # the composite audits (one fetch, every analyser)└── tools/          # thin MCP wrappers (Zod schemas, descriptions, formatting)

The core/ layer is deliberately free of any MCP types, so the same logic can power both this server and a web UI.

Security

The tools fetch URLs the caller names and URLs the audited site names (links, og:image, hreflang alternates, sitemap children, redirects), so every outbound connection is screened against server-side request forgery:

  • Private, loopback, link-local (cloud metadata), shared (CGNAT), multicast and reserved addresses are refused in every spelling, including IPv4 embedded in IPv6 ([::ffff:127.0.0.1]).
  • The check runs at connect time, on the address the socket is about to use, so DNS rebinding and names only an internal resolver knows are refused too. Redirects are followed by hand, every hop is screened, and loops are reported.
  • Untrusted input is bounded: 2 MB of HTML, 512 levels of nesting (what browsers keep), a backtracking-free robots.txt matcher, 10 MiB per sitemap (gzip output included), six link checks at a time, and at most 200 items per list in a result.

Found a problem? Please open a private security advisory.

License

MIT © Marco Orta

来源:README.md,提交 f9ab062

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v1.2.2最新Oct 16, 2026
  2. v1.2.1Oct 7, 2026
  3. v1.2.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分