{"_id":"seo-geo-mcp-server","_rev":"4-707282a30f1f932959297d0181f1ff0f","name":"seo-geo-mcp-server","dist-tags":{"latest":"1.2.3"},"versions":{"1.2.0":{"name":"seo-geo-mcp-server","version":"1.2.0","keywords":["mcp","model-context-protocol","seo","geo","generative-engine-optimization","answer-engine-optimization","structured-data","json-ld","schema-org","robots-txt","sitemap","hreflang","llms-txt","ai-crawlers","core-web-vitals"],"author":{"name":"Marco Orta","email":"https://ortamarco.me"},"license":"MIT","_id":"seo-geo-mcp-server@1.2.0","maintainers":[{"name":"marco.odev","email":"contacto@ortamarco.me"}],"homepage":"https://github.com/OrtaMarco/seo-geo-mcp-server#readme","bugs":{"url":"https://github.com/OrtaMarco/seo-geo-mcp-server/issues"},"bin":{"seo-geo-mcp-server":"dist/index.js"},"dist":{"shasum":"b5b50c4898b674d8e02a329bfd48867b5e8acd86","tarball":"https://registry.npmjs.org/seo-geo-mcp-server/-/seo-geo-mcp-server-1.2.0.tgz","fileCount":27,"integrity":"sha512-sZZW38ICXYe8i+3Fem6MNAoi69xdSKMXpaNCc3vmLvn13LEWZ5ydXOToESkeSe8abnQg35Fn+96Kjv7vmA9S7g==","signatures":[{"sig":"MEQCIBj5r/oQodW6pgfgjbqd1GWWMMsk8el21tMV9NEtG0vBAiB90V/VbEcgFfPQBK/SvxbAEnbzIzAGZzHnRevWXTQF3A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":256676},"type":"module","_from":"file:seo-geo-mcp-server-1.2.0.tgz","engines":{"node":">=20.18.1"},"mcpName":"io.github.OrtaMarco/seo-geo-mcp-server","scripts":{"dev":"tsx watch src/index.ts","test":"node --test scripts/units.test.mjs","build":"tsc","clean":"rm -rf dist","smoke":"node scripts/smoke-all.mjs","start":"node dist/index.js","inspect":"npx @modelcontextprotocol/inspector node dist/index.js","prepack":"npm run build","pretest":"npm run build","prebuild":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"","typecheck":"tsc --noEmit","start:http":"TRANSPORT=http node dist/index.js","prepublishOnly":"npm test"},"_npmUser":{"name":"marco.odev","email":"contacto@ortamarco.me"},"_resolved":"/tmp/claude-1000/-home-marco-code-ombackend/2ad1f51c-7325-47a2-ab5d-495b75744d6e/scratchpad/publicacion/seo-geo-mcp-server-1.2.0.tgz","_integrity":"sha512-sZZW38ICXYe8i+3Fem6MNAoi69xdSKMXpaNCc3vmLvn13LEWZ5ydXOToESkeSe8abnQg35Fn+96Kjv7vmA9S7g==","repository":{"url":"git+https://github.com/OrtaMarco/seo-geo-mcp-server.git","type":"git"},"_npmVersion":"11.19.1","description":"MCP server for SEO and GEO (Generative Engine Optimization) audits — on-page SEO, structured data, robots.txt, sitemaps, hreflang, and AI-crawler access for ChatGPT, Claude, Perplexity and Gemini. No API keys required.","directories":{},"_nodeVersion":"24.16.0","dependencies":{"zod":"^4.6.1","undici":"^7.29.1","cheerio":"^1.2.0","express":"^5.2.1","@modelcontextprotocol/node":"^2.0.0","@modelcontextprotocol/server":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0","@types/express":"^5.0.6","@modelcontextprotocol/client":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/seo-geo-mcp-server_1.2.0_1789098840342_0.20535592262884417","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"seo-geo-mcp-server","version":"1.2.1","keywords":["mcp","model-context-protocol","seo","geo","generative-engine-optimization","answer-engine-optimization","structured-data","json-ld","schema-org","robots-txt","sitemap","hreflang","llms-txt","ai-crawlers","core-web-vitals"],"author":{"name":"Marco Orta","email":"https://ortamarco.me"},"license":"MIT","_id":"seo-geo-mcp-server@1.2.1","maintainers":[{"name":"marco.odev","email":"contacto@ortamarco.me"}],"homepage":"https://github.com/OrtaMarco/seo-geo-mcp-server#readme","bugs":{"url":"https://github.com/OrtaMarco/seo-geo-mcp-server/issues"},"bin":{"seo-geo-mcp-server":"dist/index.js"},"dist":{"shasum":"f0fbab3f4175ae05429252c349a7067ddfcb0d90","tarball":"https://registry.npmjs.org/seo-geo-mcp-server/-/seo-geo-mcp-server-1.2.1.tgz","fileCount":27,"integrity":"sha512-w3ppOlshNBGvkfAkhyWwJB2lghRnV+YImx1OAI6utxBFytu30d8PqNn1m7rE12NeiklFfclXX5ranD6hYMmC0Q==","signatures":[{"sig":"MEUCIQDJc1+/13oZoDZw5oT5e/1KxzYZlHvZd1kKCcHenDed/AIgDLT6HeXeK6LqByDxE1De5BE9T4AE4ck3Agv+tVfce8s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDRfXcYzyQjFa+ziDgG+KHc8r3SEU7ghedWfS8ITmha2AIgLbpJ1n3sG2/GE5vM8oFzpF9iTdrxeoobgP6D4vK1jzM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/seo-geo-mcp-server@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":257092},"type":"module","engines":{"node":">=20.18.1"},"gitHead":"2979516889bc5a3bc65927ce1f18676be4de6de2","mcpName":"io.github.OrtaMarco/seo-geo-mcp-server","scripts":{"dev":"tsx watch src/index.ts","test":"node --test scripts/units.test.mjs","build":"tsc","clean":"rm -rf dist","smoke":"node scripts/smoke-all.mjs","start":"node dist/index.js","inspect":"npx @modelcontextprotocol/inspector node dist/index.js","prepack":"npm run build","pretest":"npm run build","prebuild":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"","typecheck":"tsc --noEmit","start:http":"TRANSPORT=http node dist/index.js","prepublishOnly":"npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"54b8bfd5-8ab8-46ab-876e-c16dad61b4b3"}},"repository":{"url":"git+https://github.com/OrtaMarco/seo-geo-mcp-server.git","type":"git"},"_npmVersion":"11.21.0","description":"MCP server for SEO and GEO (Generative Engine Optimization) audits — on-page SEO, structured data, robots.txt, sitemaps, hreflang, and AI-crawler access for ChatGPT, Claude, Perplexity and Gemini. No API keys required.","directories":{},"_nodeVersion":"22.23.3","dependencies":{"zod":"^4.6.1","undici":"^7.29.1","cheerio":"^1.2.0","express":"^5.2.1","@modelcontextprotocol/node":"^2.0.0","@modelcontextprotocol/server":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0","@types/express":"^5.0.6","@modelcontextprotocol/client":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/seo-geo-mcp-server_1.2.1_1791357135202_0.6122300901946454","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"seo-geo-mcp-server","version":"1.2.2","keywords":["mcp","model-context-protocol","seo","geo","generative-engine-optimization","answer-engine-optimization","structured-data","json-ld","schema-org","robots-txt","sitemap","hreflang","llms-txt","ai-crawlers","core-web-vitals"],"author":{"name":"Marco Orta","email":"https://ortamarco.me"},"license":"MIT","_id":"seo-geo-mcp-server@1.2.2","maintainers":[{"name":"marco.odev","email":"contacto@ortamarco.me"}],"homepage":"https://github.com/OrtaMarco/seo-geo-mcp-server#readme","bugs":{"url":"https://github.com/OrtaMarco/seo-geo-mcp-server/issues"},"bin":{"seo-geo-mcp-server":"dist/index.js"},"dist":{"shasum":"7d10d5f6c8edf73af1981014eee94e547e968a5b","tarball":"https://registry.npmjs.org/seo-geo-mcp-server/-/seo-geo-mcp-server-1.2.2.tgz","fileCount":27,"integrity":"sha512-1P/Rru3pYBW3OWmun1DTVB3HqNDwpfDACzm+qBqr6FptHUnSKPyBsRiquSSVm3fq5rFZDuniM96dTne3+mu0Dg==","signatures":[{"sig":"MEUCIQD24BeJM9LjWW/EyS6C3k4rudDWaIJIl3/vvd2b5/ascAIgcjbD8BO5Y5bYh+1ZTIZoqUCnTjqRpNuCLaFD1Gq/GHM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDZ7/h1hOs+YpCmgYK/BDpJqwXCD+F/gbJTQBK7GdaFfAIhANczwmRG7mCg0AxIU18Y6nmqSlPXPSYx/w5VG0grrr5u","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/seo-geo-mcp-server@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":257092},"type":"module","engines":{"node":">=20.18.1"},"gitHead":"438bd81f124a611daad7d63c2bee8a135954d663","mcpName":"io.github.OrtaMarco/seo-geo-mcp-server","scripts":{"dev":"tsx watch src/index.ts","test":"node --test scripts/units.test.mjs","build":"tsc","clean":"rm -rf dist","smoke":"node scripts/smoke-all.mjs","start":"node dist/index.js","inspect":"npx @modelcontextprotocol/inspector node dist/index.js","prepack":"npm run build","pretest":"npm run build","prebuild":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"","typecheck":"tsc --noEmit","start:http":"TRANSPORT=http node dist/index.js","prepublishOnly":"npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"54b8bfd5-8ab8-46ab-876e-c16dad61b4b3"}},"repository":{"url":"git+https://github.com/OrtaMarco/seo-geo-mcp-server.git","type":"git"},"_npmVersion":"11.21.1","description":"MCP server for SEO and GEO (Generative Engine Optimization) audits — on-page SEO, structured data, robots.txt, sitemaps, hreflang, and AI-crawler access for ChatGPT, Claude, Perplexity and Gemini. No API keys required.","directories":{},"_nodeVersion":"22.23.3","dependencies":{"zod":"^4.6.1","undici":"^7.29.1","cheerio":"^1.2.0","express":"^5.2.1","@modelcontextprotocol/node":"^2.0.0","@modelcontextprotocol/server":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0","@types/express":"^5.0.6","@modelcontextprotocol/client":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/seo-geo-mcp-server_1.2.2_1792109680621_0.9064245697063038","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"_id":"seo-geo-mcp-server@1.2.3","bin":{"seo-geo-mcp-server":"dist/index.js"},"bugs":{"url":"https://github.com/OrtaMarco/seo-geo-mcp-server/issues"},"dist":{"shasum":"42e6c86a92fa82f8c3af978ec4c5d058268bb260","tarball":"https://registry.npmjs.org/seo-geo-mcp-server/-/seo-geo-mcp-server-1.2.3.tgz","fileCount":27,"integrity":"sha512-GNWffPkpk5qc4ORovj1PyNJFLlqrjrjIV4gE/SPeCNZ3HammmWFBH79np4EJ2zqNRiyaX/8hy/igPCqMZPraww==","signatures":[{"sig":"MEYCIQCQxVoC/y5p4NqSVFl0t0cY6QpA1/ZtPPE20DrpjatvkwIhAMIhNcYAj7IVZr1Ychh0eX7E4QX2NsFzuHQSaDIsKWYq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIF3x6oAUFaXPbVWmah8J32YrT/0hi5OmDJLs6QOBI5kKAiEAvHBcnebalRB3CJh5siOgKwX+HxSB7Qe5rWVy1hKKdi4="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/seo-geo-mcp-server@1.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":257092},"name":"seo-geo-mcp-server","type":"module","author":{"name":"Marco Orta","email":"https://ortamarco.me"},"engines":{"node":">=20.18.1"},"gitHead":"db2103f15c79233b90cfb7141585b11bacd480d3","license":"MIT","mcpName":"io.github.OrtaMarco/seo-geo-mcp-server","scripts":{"dev":"tsx watch src/index.ts","test":"node --test scripts/units.test.mjs","build":"tsc","clean":"rm -rf dist","smoke":"node scripts/smoke-all.mjs","start":"node dist/index.js","inspect":"npx @modelcontextprotocol/inspector node dist/index.js","prepack":"npm run build","pretest":"npm run build","prebuild":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"","typecheck":"tsc --noEmit","start:http":"TRANSPORT=http node dist/index.js","prepublishOnly":"npm test"},"version":"1.2.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"54b8bfd5-8ab8-46ab-876e-c16dad61b4b3"}},"homepage":"https://github.com/OrtaMarco/seo-geo-mcp-server#readme","keywords":["mcp","model-context-protocol","seo","geo","generative-engine-optimization","answer-engine-optimization","structured-data","json-ld","schema-org","robots-txt","sitemap","hreflang","llms-txt","ai-crawlers","core-web-vitals"],"repository":{"url":"git+https://github.com/OrtaMarco/seo-geo-mcp-server.git","type":"git"},"_npmVersion":"11.21.2","description":"MCP server for SEO and GEO (Generative Engine Optimization) audits — on-page SEO, structured data, robots.txt, sitemaps, hreflang, and AI-crawler access for ChatGPT, Claude, Perplexity and Gemini. No API keys required.","directories":{},"maintainers":[{"name":"marco.odev","email":"contacto@ortamarco.me"}],"_nodeVersion":"22.23.4","dependencies":{"zod":"^4.6.1","undici":"^7.29.1","cheerio":"^1.2.0","express":"^5.2.1","@modelcontextprotocol/node":"^2.0.0","@modelcontextprotocol/server":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0","@types/express":"^5.0.6","@modelcontextprotocol/client":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/seo-geo-mcp-server_1.2.3_1794282322233_0.8049565935524478"}}},"time":{"created":"2026-09-11T03:54:00.154Z","modified":"2026-11-10T03:45:22.658Z","1.2.0":"2026-09-11T03:54:00.498Z","1.2.1":"2026-10-07T07:12:15.327Z","1.2.2":"2026-10-16T00:14:40.738Z","1.2.3":"2026-11-10T03:45:22.340Z"},"bugs":{"url":"https://github.com/OrtaMarco/seo-geo-mcp-server/issues"},"author":{"name":"Marco Orta","email":"https://ortamarco.me"},"license":"MIT","homepage":"https://github.com/OrtaMarco/seo-geo-mcp-server#readme","keywords":["mcp","model-context-protocol","seo","geo","generative-engine-optimization","answer-engine-optimization","structured-data","json-ld","schema-org","robots-txt","sitemap","hreflang","llms-txt","ai-crawlers","core-web-vitals"],"repository":{"url":"git+https://github.com/OrtaMarco/seo-geo-mcp-server.git","type":"git"},"description":"MCP server for SEO and GEO (Generative Engine Optimization) audits — on-page SEO, structured data, robots.txt, sitemaps, hreflang, and AI-crawler access for ChatGPT, Claude, Perplexity and Gemini. No API keys required.","maintainers":[{"name":"marco.odev","email":"contacto@ortamarco.me"}],"readme":"# seo-geo-mcp-server\n\n> An [MCP](https://modelcontextprotocol.io) 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.**\n\n[![ci](https://github.com/OrtaMarco/seo-geo-mcp-server/actions/workflows/ci.yml/badge.svg)](https://github.com/OrtaMarco/seo-geo-mcp-server/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/npm/v/seo-geo-mcp-server)](https://www.npmjs.com/package/seo-geo-mcp-server)\n[![MCP](https://img.shields.io/badge/MCP-server-blue)](https://modelcontextprotocol.io)\n[![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178c6)](https://www.typescriptlang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE)\n\nBuilt on the **v2 MCP SDK**: the server speaks the **2026-07-28** protocol revision\nand still accepts 2025-era clients (Claude Desktop, Claude Code, Cursor) from the\nsame factory — one build, both eras, nothing to configure.\n\nAsk Claude *\"how is this page doing, and will AI assistants cite it?\"* and it runs a\nfull audit and hands you a graded report with prioritised fixes — instead of you\npasting a URL into six different web tools.\n\n```\n> Audit https://example.com/guide and tell me if ChatGPT can cite it\n\n  seo_audit(url=\"https://example.com/guide\", include_geo=true)\n\n  Overall: A (92/100) · indexable: yes\n    Meta tags & social preview   95 (A)\n    Heading structure           100 (A)\n    Structured data              75 (C)\n\n  GEO readiness: B (85/100)\n    ✅ AI crawler access        25/25\n    ✅ Server-rendered content  20/20\n    ❌ Authorship & entity       2/10\n  1. Add author and Organization markup with `sameAs` links to official profiles.\n```\n\n---\n\n## Why this exists\n\nTwo gaps, one server.\n\n**The SEO gap:** the on-page checkers are all web UIs. None of them let an agent\nrun the audit, read the result and fix the code in the same loop.\n\n**The GEO gap:** \"generative engine optimization\" tooling is mostly rank-tracking\ndashboards behind a subscription. The mechanics that actually decide whether an\nAI assistant can cite you are cheap to check and almost never checked:\n\n- **Can the AI search crawlers reach you?** Blocking `GPTBot` stops *training*.\n  Blocking `OAI-SearchBot` stops you being *cited*. Most sites that meant to do\n  the first have accidentally done the second. This server separates them.\n- **Does your content exist without JavaScript?** Googlebot renders JS. `GPTBot`,\n  `ClaudeBot`, `PerplexityBot` and `CCBot` largely do not. A client-rendered page\n  can rank fine in Google and be invisible to every AI assistant.\n\nIt is the agent-facing companion to the tools at [ortamarco.me](https://ortamarco.me),\nand shares its core (the connect-time SSRF guard and host validation)\nwith [`domain-security-mcp-server`](https://github.com/OrtaMarco/domain-security-mcp-server).\n\n## Tools\n\n### Audits\n\n| Tool | What it does |\n|---|---|\n| **`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 |\n| **`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) |\n\n### GEO\n\n| Tool | What it does |\n|---|---|\n| `ai_crawler_access` | Resolves ~35 AI crawler tokens against robots.txt. Separates training from citation bots, flags blocks that vendors document as unenforceable, handles the Applebot→Googlebot fallback |\n| `render_check` | Whether content survives without JavaScript — detects unhydrated SPA shells that AI crawlers cannot read |\n| `llms_txt_check` | Detects and validates `/llms.txt` against the llmstxt.org proposal — and reports its real adoption status rather than implying it earns visibility |\n\n### On-page\n\n| Tool | What it does |\n|---|---|\n| `meta_tags_check` | Title, description, canonical, robots (meta **and** `X-Robots-Tag`), lang, charset, viewport |\n| `social_preview_check` | Open Graph + Twitter Card, and verifies the `og:image` actually loads |\n| `heading_structure` | Full h1–h6 outline, multiple h1s, skipped levels, question-shaped headings |\n| `structured_data_check` | JSON-LD/microdata/RDFa extraction, parse errors, and Google rich-result requirements for 21 schema types |\n| `content_analysis` | Word count, Flesch reading ease, thin-content detection, text-to-HTML ratio, term density (EN + ES stopwords) |\n| `image_seo_check` | Missing alt text, missing dimensions (layout shift), lazy loading, WebP/AVIF adoption |\n\n### Technical\n\n| Tool | What it does |\n|---|---|\n| `robots_txt_check` | RFC 9309 parse; flags wildcard `Disallow: /` and 5xx responses (which Google reads as disallow-all) |\n| `sitemap_check` | Discovery via robots.txt → conventional paths; index following, gzip, 50k/50MiB limits, `lastmod` validity |\n| `canonical_host_check` | All four http/https × apex/www variants — do they converge on one canonical URL, and via 301 or 302? |\n| `redirect_trace` | Hop-by-hop chain with loop and temporary-redirect detection |\n| `link_audit` | Internal/external split, rel attributes, generic anchor text, optional broken-link sampling |\n| `hreflang_check` | BCP-47 validity, self-reference, x-default, duplicates — plus optional **reciprocity** verification |\n\nEvery tool is **read-only**, declares an `outputSchema` and returns\n`structuredContent` (validated by the SDK) alongside human-readable Markdown\n(default) or JSON (`response_format=\"json\"`), plus actionable error messages.\n\n## Honesty notes\n\nThis server deliberately refuses to overstate two things that most GEO content\ngets wrong. Both are surfaced in tool output, not buried here:\n\n- **`llms.txt` is not an adopted standard.** It is a community proposal from\n  September 2024. No major AI vendor has documented that its crawlers read it\n  from third-party sites, and Google has publicly said it does not. The tool\n  reports presence and validates shape — and `geo_audit` deliberately does **not**\n  score it. (`llms-full.txt` is a docs-tooling convention, not part of the proposal.)\n- **Some robots.txt blocks are advisory.** `Perplexity-User`, `ChatGPT-User` and\n  `meta-externalfetcher` are documented *by their own vendors* as ignoring or\n  possibly ignoring robots.txt. Reporting those as cleanly \"blocked\" would be\n  misleading, so they are listed separately as unenforceable.\n\nCrawler tokens carry a `provenance` field distinguishing first-party vendor\ndocumentation from community aggregators, and vendors that publish no token at\nall (xAI/Grok, Microsoft Copilot) are named explicitly — because a missing rule\ncannot be read as either allowed or blocked.\n\n## Install\n\nRequires **Node.js 20.18+**. Nothing to clone — every MCP client can run it with `npx`.\n\n## Use it with Claude Code\n\n```bash\nclaude mcp add seo-geo -- npx -y seo-geo-mcp-server\n```\n\n## Use it with Claude Desktop or Cursor\n\nAdd to `claude_desktop_config.json` (or `~/.cursor/mcp.json`) — see [`examples/`](./examples/claude_desktop_config.json):\n\n```json\n{\n  \"mcpServers\": {\n    \"seo-geo\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"seo-geo-mcp-server\"]\n    }\n  }\n}\n```\n\nOn Windows use `\"command\": \"cmd\"` with `\"args\": [\"/c\", \"npx\", \"-y\", \"seo-geo-mcp-server\"]`.\nRestart the client, then ask: *\"Audit the SEO and GEO of example.com.\"*\n\n## Self-host (HTTP transport)\n\nThe same server speaks stateless **Streamable HTTP** for remote or multi-client\nuse. One endpoint serves both protocol eras; there is no session state and no\n`Mcp-Session-Id` to carry.\n\n```bash\nTRANSPORT=http npx -y seo-geo-mcp-server\n# POST JSON-RPC to http://127.0.0.1:3000/mcp   ·   health at /healthz\n```\n\nIt is **safe by default**: it binds to `127.0.0.1` and only accepts `localhost`\n`Host` and `Origin` headers, which blocks DNS-rebinding attacks from a web page.\nTo expose it — for example behind Coolify or Traefik — opt in explicitly:\n\n| Variable | Default | Purpose |\n|---|---|---|\n| `TRANSPORT` | `stdio` | `http` to serve Streamable HTTP |\n| `PORT` | `3000` | Listening port |\n| `HOST` | `127.0.0.1` | Bind address; `0.0.0.0` to accept remote connections |\n| `ALLOWED_HOSTS` | — | Comma-separated hostnames the `Host` header may carry (e.g. `mcp.example.com`) |\n| `ALLOWED_ORIGINS` | — | Comma-separated origins allowed to call from a browser |\n| `MCP_AUTH_TOKEN` | — | If set, every request needs `Authorization: Bearer <token>` |\n\nBinding to a non-loopback address without `ALLOWED_HOSTS` or `MCP_AUTH_TOKEN`\nworks, but the server says so on stderr. With Docker (the image sets `HOST=0.0.0.0`):\n\n```bash\ndocker build -t seo-geo-mcp .\ndocker run -p 3000:3000 -e ALLOWED_HOSTS=mcp.example.com -e MCP_AUTH_TOKEN=change-me seo-geo-mcp\n```\n\n## Develop\n\n```bash\nnpm run dev      # tsx watch (stdio)\nnpm test         # deterministic unit tests: SSRF guard, robots matcher, nesting guard,\n                 # gzip sitemaps, SPA detection, JSON-LD, HTTP transport defaults\nnpm run smoke    # call all 17 tools over MCP, in BOTH protocol eras, and validate\n                 # structuredContent vs outputSchema\nnpm run inspect  # open the MCP Inspector against the built server\nnpm run build    # type-check + emit dist/\n```\n\n[`evals/`](./evals/) holds a 10-question LLM evaluation set (stable, verifiable)\nand instructions for running it — see [`evals/README.md`](./evals/README.md).\n\n## How it works\n\n```\nsrc/\n├── index.ts        # transport selection: serveStdio | createMcpHandler + Express\n├── server.ts       # the factory: registers every tool on one McpServer\n├── schemas.ts      # Zod 4 outputSchema for each tool\n├── core/           # pure logic, no MCP coupling — reusable & testable\n│   ├── validate.ts     # host/URL validation and the address classifier\n│   ├── netguard.ts     # connect-time SSRF guard (every socket's address is checked)\n│   ├── fetch.ts        # fetch: guarded dispatcher, manual redirects, loop detection, byte caps\n│   ├── page.ts         # HTML loading + the shared parsed-document model\n│   ├── meta.ts         # title/description/canonical/robots, Open Graph, hreflang\n│   ├── content.ts      # headings, readability, word counts, image SEO\n│   ├── structured-data.ts # JSON-LD/microdata + Google rich-result requirements\n│   ├── robots.ts       # RFC 9309 parser and rule matcher\n│   ├── ai-crawlers.ts  # the AI crawler registry (token, purpose, compliance, provenance)\n│   ├── sitemap.ts      # discovery, index following, gzip, protocol limits\n│   ├── links.ts        # link classification + broken-link sampling\n│   ├── redirects.ts    # chain tracing + host canonicalisation\n│   ├── geo.ts          # llms.txt, JS-rendering detection, GEO scoring\n│   └── seo-audit.ts    # the composite audits (one fetch, every analyser)\n└── tools/          # thin MCP wrappers (Zod schemas, descriptions, formatting)\n```\n\nThe `core/` layer is deliberately free of any MCP types, so the same logic can\npower both this server and a web UI.\n\n## Security\n\nThe tools fetch URLs the caller names *and* URLs the audited site names (links,\n`og:image`, hreflang alternates, sitemap children, redirects), so every outbound\nconnection is screened against server-side request forgery:\n\n- Private, loopback, link-local (cloud metadata), shared (CGNAT), multicast and\n  reserved addresses are refused in every spelling, including IPv4 embedded in\n  IPv6 (`[::ffff:127.0.0.1]`).\n- The check runs **at connect time**, on the address the socket is about to use,\n  so DNS rebinding and names only an internal resolver knows are refused too.\n  Redirects are followed by hand, every hop is screened, and loops are reported.\n- Untrusted input is bounded: 2 MB of HTML, 512 levels of nesting (what browsers\n  keep), a backtracking-free robots.txt matcher, 10 MiB per sitemap (gzip output\n  included), six link checks at a time, and at most 200 items per list in a result.\n\nFound a problem? Please open a [private security advisory](https://github.com/OrtaMarco/seo-geo-mcp-server/security/advisories/new).\n\n## License\n\nMIT © [Marco Orta](https://ortamarco.me)\n","readmeFilename":"README.md"}