
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.
概覽
一個本機 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。需要網路存取以擷取被稽核頁面及其連結資源。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SEO & GEO,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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.
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
GPTBotstops training. BlockingOAI-SearchBotstops 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,PerplexityBotandCCBotlargely 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
GEO
On-page
Technical
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.txtis 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 — andgeo_auditdeliberately does not score it. (llms-full.txtis a docs-tooling convention, not part of the proposal.)- Some robots.txt blocks are advisory.
Perplexity-User,ChatGPT-Userandmeta-externalfetcherare 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
Use it with Claude Desktop or Cursor
Add to claude_desktop_config.json (or ~/.cursor/mcp.json) — see examples/:
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.
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:
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):
Develop
evals/ holds a 10-question LLM evaluation set (stable, verifiable)
and instructions for running it — see evals/README.md.
How it works
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版本歷史
3- v1.2.2最新Oct 16, 2026
- v1.2.1Oct 7, 2026
- v1.2.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
