mcp-geo-server

mcp-geo-server

Enables auditing webpages for GEO metrics, calculating MAVI score, and generating llms.txt templates for RAG readiness.

Category
访问服务器

README

MCP GEO Server (mcp-geo-server)

License: MIT Python Version MCP Specification Code Style: Black

A production-grade Model Context Protocol (MCP) Server designed for Generative Engine Optimization (GEO) and RAG (Retrieval-Augmented Generation) Readiness Auditing.

Developed by Taqi Molavi (Molavi R&D Think Tank) as part of The Molavi GEO Pyramid framework.


📖 Table of Contents


💡 What is GEO (Generative Engine Optimization)?

As AI-driven search engines (like Perplexity, OpenAI SearchGPT, Gemini, and Claude) continue to replace traditional search results with synthesized answers, standard SEO strategies are becoming obsolete.

Websites must now optimize for Generative Engines. This process is known as Generative Engine Optimization (GEO).

To rank or be cited by an LLM in a RAG pipeline, content must be highly structured, machine-readable, and broken down into self-contained semantic chunks. The mcp-geo-server automates this auditing process directly inside your AI agentic workflows (e.g., Cursor, Claude Desktop).


📐 The Molavi GEO Pyramid

This MCP server is built on The Molavi GEO Pyramid framework, a 5-level methodology for auditing and optimizing digital assets for LLM visibility and agentic discoverability:

                 /\
                /  \      Level 5: Agentic Mindshare
               /----\     (Zero-Prompt AI Agent Discovery & Tool Registry)
              /      \
             /--------\   Level 4: Citation Trust
            /          \  (Multi-Source Validation & Domain Citation Authority)
           /------------\
          /              \  Level 3: RAG Retrieval & Semantic Chunking
         /----------------\ (Information-dense text, 20-100 word self-contained units)
        /                  \
       /--------------------\ Level 2: Entity Authority & Knowledge Graphs
      /                      \ (JSON-LD Linked Data Graphs: Person, Org, Product)
     /------------------------\
    /                          \ Level 1: Grounded Infrastructure
   /----------------------------\ (Machine-readable /llms.txt, Clean DOM, High Info Ratio)
  1. L1: Grounded Infrastructure — Foundational accessibility. Ensuring correct /llms.txt formatting, valid JSON-LD schemas, and a clean DOM structure with a high text-to-HTML ratio.
  2. L2: Entity Authority — Representing brand attributes clearly via standard schema structures (e.g., schema.org).
  3. L3: RAG Retrieval — Formatting paragraphs so they are easy for embedding models to parse into distinct, self-contained chunks.
  4. L4: Citation Trust — Earning citations from multi-model synthesis runs and maintaining trust metrics.
  5. L5: Agentic Mindshare — Preparing schemas for seamless integration into zero-prompt AI agent tools.

For the full white paper, visit molavi.pro/research/geo-pyramid.


🛠️ Core Features & MCP Tools

This server exposes three primary tools to connected MCP clients:

1. audit_geo_url

Performs an automated audit of a target webpage to check its GEO metrics.

  • Arguments:
    • url (string, required): The target URL.
    • html_content (string, required): The raw HTML content of the page (to avoid CORS/network issues, the client retrieves the HTML and passes it to the tool).
  • Returns:
    • dom_cleanliness_score (0-10): Information-to-HTML density.
    • has_schema_markup & schemas: Details of parsed JSON-LD graphs.
    • self_contained_chunks: Count of paragraphs fitting the ideal RAG chunk size (20-100 words).
    • heading_structure_sample: Extracted H1-H6 outline.

2. calculate_mavi_score

Computes the Molavi AI Visibility Index (MAVI) based on scores across the 5 levels of the pyramid.

  • Arguments:
    • l1_infrastructure (number, 0-10)
    • l2_entity_authority (number, 0-20)
    • l3_rag_retrieval (number, 0-25)
    • l4_citation_trust (number, 0-25)
    • l5_agentic_mindshare (number, 0-20)
  • Returns:
    • mavi_score (0-100 total)
    • grade (A+, A, B, or C)
    • breakdown of all levels.

3. generate_llms_txt_template

Generates a markdown template for /llms.txt according to modern specification rules.

  • Arguments:
    • domain (string): Your domain name (e.g., molavi.pro).
    • title (string): Brand or project name.
    • description (string): Brief description.
  • Returns:
    • Complete markdown string ready to be served at yourdomain.com/llms.txt.

🚀 Installation

You can install the server via pip or using the faster, modern Python manager uv.

Using pip

pip install mcp-geo-server

Using uv (Recommended)

uv pip install mcp-geo-server
# OR run instantly without installation:
uvx mcp-geo-server

⚙️ MCP Client Configuration

Claude Desktop

Add this to your claude_desktop_config.json (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

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

If you prefer using standard Python:

{
  "mcpServers": {
    "geo-auditor": {
      "command": "python3",
      "args": [
        "-m",
        "mcp_geo_server.server"
      ]
    }
  }
}

Cursor IDE

  1. Open Cursor Settings -> Features -> MCP.
  2. Click + Add New MCP Server.
  3. Fill in:
    • Name: GEO-Auditor
    • Type: command
    • Command: uv run --package mcp-geo-server mcp-geo-server

🐍 Programmatic Python Usage

You can also use the GEOAuditor class directly in your own Python projects:

from mcp_geo_server.auditor import GEOAuditor

# 1. Audit HTML content
html = "<html><body><h1>Example</h1><p>This is a paragraph with enough words to represent a self-contained RAG chunk for testing.</p></body></html>"
audit_results = GEOAuditor.analyze_html(html, "https://example.com")
print(audit_results["l1_infrastructure"]["dom_cleanliness_score"])

# 2. Calculate MAVI score
mavi = GEOAuditor.calculate_mavi(9.5, 18.0, 22.5, 19.0, 15.0)
print(f"Brand Score: {mavi['mavi_score']} (Grade: {mavi['grade']})")

🧪 Local Development & Testing

  1. Clone the repository:
    git clone https://github.com/tmolavi/mcp-geo-server.git
    cd mcp-geo-server
    
  2. Create environment & install dependencies using uv:
    uv venv
    source .venv/bin/activate
    uv pip install -e ".[dev]"
    
  3. Run tests:
    uv run pytest
    

🤝 Contributing

Contributions are welcome! Please read our CONTRIBUTING.md and SECURITY.md guidelines. All contributions are credited under the Taghi Molavi Antigravity Ecosystem.


📄 License

This repository is licensed under the MIT License. See the LICENSE file for details.

Developed with ❤️ by Taqi Molavimolavi.pro

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选