Auditing JSON-LD Entity Graphs & llms.txt GEO Readiness with Model Context Protocol (noir-seo-geo-mcp)
When engineering teams ship marketing or documentation sites today, technical discoverability has to satisfy two distinct parsers at once: classical search crawlers (Googlebot, Bingbot) and retrieval crawlers powering AI
When engineering teams ship marketing or documentation sites today, technical discoverability has to satisfy two distinct parsers at once: classical search crawlers (Googlebot, Bingbot) and retrieval crawlers powering AI answer engines (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot).
Across dozens of technical audits at Noir Digital Agency, the same three regressions show up repeatedly even on otherwise fast Astro and Next.js builds:
-
Dangling
@idpointers inside Schema.org JSON-LD graphs: Inner pages emitService,Article, orFAQPagenodes referencing{"@id": "https://example.com/#org"}, while a layout refactor quietly changed or omitted the rootOrganization@id. -
301redirect hops andnew Date()churn on/sitemap.xml: Static generators emitsitemap-index.xmlwhile redirecting/sitemap.xml -> /sitemap-index.xml, or stamp every URL with today's build date so crawlers stop trusting<lastmod>. -
Missing
/llms.txt&/llms-full.txtor accidental AI bot disallow rules: High-intent service and documentation routes lack clean Markdown entity summaries for retrieval pipelines.
To automate those checks right inside Claude Desktop, Cursor, Windsurf, and CI without paid SaaS crawlers, we open-sourced noir-seo-geo-mcpβa zero-dependency Node.js (>=20) Model Context Protocol (MCP) server.
1. Designing a Connected JSON-LD @graph Instead of Isolated Snippets
Most sites paste disconnected JSON-LD blocks onto individual templates. A cleaner pattern is emitting one site-wide @graph in your base layout defining stable @id URIs for your Organization, Person, and WebSite, and having page-level schemas point back via {"@id": "..."}:
{
"@context": "https://schema.org",
"@graph": [
{
"@type": ["Organization", "ProfessionalService"],
"@id": "https://noirdigitalagency.com/#org",
"name": "Noir Digital Agency",
"url": "https://noirdigitalagency.com/",
"sameAs": [
"https://github.com/Trippyshetty/noir-seo-geo-mcp"
]
},
{
"@type": "WebSite",
"@id": "https://noirdigitalagency.com/#website",
"url": "https://noirdigitalagency.com/",
"publisher": { "@id": "https://noirdigitalagency.com/#org" }
},
{
"@type": "Service",
"@id": "https://noirdigitalagency.com/services/ai-automation/#service",
"name": "AI Adoption & Workflow Automation",
"provider": { "@id": "https://noirdigitalagency.com/#org" }
}
]
}
In noir-seo-geo-mcp, the audit_entity_graph tool walks every JSON-LD block on a live URL, collects all declared @id nodes, and flags any single-key {"@id": "..."} reference that fails to resolve on the same page:
const definedIds = new Set(nodes.map((n) => n['@id']).filter(Boolean));
const referencedIds = [];
function walk(node) {
if (!node || typeof node !== 'object') return;
if (Array.isArray(node)) return node.forEach(walk);
if (node['@id'] && Object.keys(node).length === 1) {
referencedIds.push(node['@id']);
}
Object.values(node).forEach(walk);
}
nodes.forEach(walk);
const unresolvedRefs = referencedIds.filter((id) => !definedIds.has(id));
2. Catching Sitemap Redirect Hops & <lastmod> Churn
When fetch('https://example.com/sitemap.xml') runs with default settings, Node automatically follows 301 redirects and reports 200 OKβhiding redirect hops that trip up strict sitemap validators. Using redirect: 'manual' exposes the real wire status immediately, while counting distinct <lastmod> cohorts catches builds that stamp new Date().toISOString() across unchanged pages:
const smRes = await fetch(origin + '/sitemap.xml', { redirect: 'manual' });
const hasRedirectHop = smRes.status >= 300 && smRes.status < 400;
3. Auditing /llms.txt & /llms-full.txt GEO Readiness
Alongside structured HTML, publishing a concise /llms.txt routing map and a comprehensive single-file /llms-full.txt reference lets LLM agents ingest exact service scopes, deliverables, and canonical URLs without scraping noisy navigation chrome.
audit_geo_llms_readiness checks HTTP 200 + byte sizes on both /llms.txt and /llms-full.txt, and verifies /robots.txt does not block GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot, or Google-Extended.
Running noir-seo-geo-mcp in Your Editor
Add the server to your mcp_config.json or claude_desktop_config.json:
{
"mcpServers": {
"noir-seo-geo-mcp": {
"command": "npx",
"args": ["-y", "github:Trippyshetty/noir-seo-geo-mcp"]
}
}
}
- GitHub Repository (MIT): https://github.com/Trippyshetty/noir-seo-geo-mcp
- Workflow & MCP Automation Catalogue: https://noirdigitalagency.com/automation/
- Free 2-Minute AI & Automation Readiness Diagnostic: https://noirdigitalagency.com/ai-audit/
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.