Skip to main content
Glama
tmolavi

mcp-geo-server

by tmolavi

MCP GEO Server (mcp-geo-server)

License: MIT Python Version MCP Specification SAGE Core Code Style: Black

A production-grade Model Context Protocol (MCP) Server that exposes the SAGE (Search & AI-Engine Guided Evaluation) auditing and measurement engine to AI agents (Claude Desktop, Cursor, Antigravity, custom agents).

Developed by Taqi Molavi (Molavi R&D Think Tank) as the official tool-exposure and protocol adapter layer for the SAGE Core framework.


πŸ›οΈ Architecture: Thin SAGE Adapter

mcp-geo-server implements a strict separation of concerns:

AI Agent / Claude Desktop / Cursor / Antigravity
                     β”‚
                     β–Ό (MCP JSON-RPC Protocol)
           mcp-geo-server (Protocol & Transport Layer)
                     β”‚
                     β–Ό (Python API / SageAdapter)
            SAGE Core (`sage-audit` Engine)
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β–Ό           β–Ό           β–Ό
      Pillar 1    Pillar 2    Pillar 3
    Technical SEO  Entity AEO   GEO & RAG
  • mcp-geo-server: Responsible exclusively for MCP protocol negotiation, tool definitions, transport error handling, and standard JSON shaping.

  • sage-audit: The single source of truth for auditing, semantic embedding, RAG simulation, Citation Survival Proxy (CSP), and the SAGE Evidence Taxonomy (E0–E5).


Related MCP server: maxaeo-ai-visibility-mcp

πŸ› οΈ MCP Tools Reference

Full Audits

  • audit_url(url, embedding_backend="auto")
    Performs a complete 3-pillar audit (Technical SEO, Entity AEO, GEO Readiness) against a live URL.

  • audit_html(html_content, url="https://example.local/", embedding_backend="auto")
    Performs a complete 3-pillar audit on raw HTML strings (ideal for local development, CI/CD, or offline snapshots).

Pillar-Specific Tools

  • technical_seo(url=None, html_content=None)
    Pillar 1: Audits DOM hygiene, clean heading outlines, canonical tags, AI crawler directives (GPTBot, ClaudeBot, PerplexityBot in robots.txt), and header policies.

  • aeo_readiness(url=None, html_content=None)
    Pillar 2: Evaluates Answer Engine Optimization including JSON-LD schema depth, sameAs authority graph connections, and direct-answer density.

  • geo_readiness(url=None, html_content=None, embedding_backend="auto")
    Pillar 3: Generative Engine Optimization with RAG chunking simulation, semantic density, and Citation Survival Proxy (CSP).

  • entity_analysis(url=None, html_content=None)
    Deep analysis of linked-data schemas (Organization, Person, Product, Article), entity disambiguation, and knowledge graph signals.

  • citation_readiness(url=None, html_content=None, embedding_backend="auto")
    Evaluates fact density, source attribution, numeric verification anchors, and Citation Survival Proxy diagnostic factors.

Utilities & Capabilities

  • generate_llms_txt(domain, title, description, key_sections=None)
    Generates a clean, spec-compliant /llms.txt file for generative engines and AI crawlers.

  • get_capabilities()
    Returns supported pillars, available vector embedding backends, SAGE engine version, and active evidence taxonomy definitions.

Legacy & Backward Compatibility

  • audit_geo_url(url, html_content) β€” Forwards to audit_html with deprecation notice.

  • calculate_mavi_score(...) β€” Legacy manual-input MAVI calculator (marked mode: manual_override).

  • measure_mavi(...) β€” 5-layer MAVI measurement engine with SAGE L1–L4 automation.


πŸ“Š Evidence & Agent Tool Integration

Evidence Taxonomy & CSP Diagnostics

Every finding and metric exposed by mcp-geo-server carries SAGE Evidence Taxonomy levels to guarantee transparency:

Level

Classification

Meaning

E0

Fact

Deterministic binary technical verification (HTTP status, canonical match).

E1

Standard

Backed by open published specifications (Schema.org, robots.txt RFC 9309).

E2

Documented

Directly verified by official documentation from Google, OpenAI, Anthropic.

E3

Empirical

Backed by published empirical benchmark findings.

E4

Heuristic

Industry-standard structural optimization practices.

E5

Hypothesis

Experimental or uncalibrated exploratory heuristic.

Citation Survival Proxy (CSP) findings are clearly exposed as diagnostic indices and proxy metricsβ€”never misrepresented as uncalibrated citation probabilities.


πŸš€ Installation

# Install with uv (Recommended)
uv pip install mcp-geo-server

# Or with pip
pip install mcp-geo-server

βš™οΈ MCP Client Configuration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "geo-auditor": {
      "command": "uv",
      "args": [
        "run",
        "--package",
        "mcp-geo-server",
        "mcp-geo-server"
      ]
    }
  }
}

Cursor IDE

  1. Open Settings -> Features -> MCP.

  2. Click + Add New MCP Server.

  3. Command: uv run --package mcp-geo-server mcp-geo-server


🐍 Python Usage

from mcp_geo_server.adapter import SageAdapter

adapter = SageAdapter()

# Full audit
result = adapter.audit_full(url="https://example.com")
print(f"Overall Score: {result['score']}/100 ({result['grade']})")

# Pillar 3: GEO & RAG Readiness
geo = adapter.geo_readiness(url="https://example.com")
print(f"CSP Diagnostic: {geo['metrics']['citation_survival_proxy']}")

πŸ§ͺ Testing

uv run pytest -v

πŸ›οΈ Ecosystem

MCP GEO Server operates as the protocol integration component of the Molavi AI Visibility Stack:

πŸ“– Runnable Python Client Example

Run the bundled MCP adapter example script:

python examples/mcp_client_example.py

πŸ’¬ Community & External Collaboration

We welcome contributions to MCP tool definitions, AI agent bindings, and transport protocols:


πŸ“„ License & Author

Developed by Taghi Molavi β€” molavi.pro
MIT License β€” Copyright (c) 2026 Taghi Molavi

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to check whether a public website is crawlable, understandable, and ready for AI search workflows through local-only audits of robots.txt, sitemaps, metadata, and llms.txt.
    3
    57 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI agents to audit URLs or raw HTML for SEO, AEO, and GEO performance, generate llms.txt manifests, and check the tool version via MCP tools.
    1
    MIT