Skip to main content
Glama
ai-visibility-mcp

ai-visibility-mcp

by tsushanth

ai-visibility-mcp

自身のプロパティに対して、AIクローラーや回答エンジン(ChatGPT、Claude、Perplexity、Google AI Overviewsなど)へのウェブサイトの可視性を確認し改善するためのMCPサーバー。

ほとんどの「AI SEO」のアドバイスは「llms.txtを追加する」で終わります。実際には、より大きく一般的な問題はその上流にあります。robots.txt(多くの場合CloudflareのようなCDNによって自動管理される)が、アクセスさせたいクローラーを静かにブロックしており、それによってllms.txtやコンテンツの作業を無意味にしています。このサーバーは両方をチェックし、さらに監査して修正を生成することもできます。

ツール

  • check_visibility(url) — サイトのライブのrobots.txtを取得し、名前の付いたAIボット(GPTBot、ClaudeBot、Google-Extended、PerplexityBot、Applebot-Extended、CCBot、Bytespider、Amazonbot、meta-externalagentなど)がDisallow: /でブロックされているか、ワイルドカードブロックがあるかをフラグします。また、llms.txtが実際のファイルとして存在するか、SPAのキャッチオールルートにフォールスルーしているか(よくある誤検出:ファイルは200を返すが、実際はホームページ)もチェックします。

  • cloudflare_ai_bot_audit(domain) — 管理するドメインのCloudflareゾーンのBot Management AIボット設定(ai_bots_protection、ai_training、ai_search、ai_user、is_robots_txt_managed)を読み取ります。環境変数CLOUDFLARE_API_EMAIL + CLOUDFLARE_API_KEY(グローバルAPIキー)が必要です。

  • generate_llms_txt(name, description, url, phrase?) — llms.txtの行を生成し、所有可能なニッチなphraseを指定すると、そのフレーズに基づいた小さなコンテンツパック(メタディスクリプション+FAQブロック)も生成します。純粋なテキスト生成であり、ファイルシステムやgitへの書き込みは行いません。

Related MCP server: ai-readiness

インストール

git clone https://github.com/tsushanth/ai-visibility-mcp.git
cd ai-visibility-mcp
npm install
npm run build

MCPクライアント設定(例:Claude Code、Claude Desktop)に追加します:

{
  "mcpServers": {
    "ai-visibility": {
      "command": "node",
      "args": ["/absolute/path/to/ai-visibility-mcp/dist/index.js"],
      "env": {
        "CLOUDFLARE_API_EMAIL": "you@example.com",
        "CLOUDFLARE_API_KEY": "your-global-api-key"
      }
    }
  }
}

Cloudflare環境変数はcloudflare_ai_bot_auditにのみ必要です — check_visibilityとgenerate_llms_txtは設定なしで動作します。

なぜこれが存在するか

Cloudflare上のサイトでは、デフォルトでAIクローラーブロッキングが有効になっていることがよくあります(「Block AI Bots」トグル)。これにより、提供されるrobots.txtが書き換えられ、GPTBot、ClaudeBot、Google-Extendedなどが拒否されます。サイト所有者が明示的にその決定をしたことがなく、実際にはAI検索の可視性を望んでいる場合でもそうです。これは見逃しやすいです。なぜなら、サイトは人間の訪問者や通常の検索エンジンには正常に見え機能しているからです。AIクローラーのみが静かに拒否されています。check_visibilityは外部からこれを明らかにし(実際に提供されているもの)、cloudflare_ai_bot_auditはアカウント側(Cloudflareの設定が示すもの)から確認するため、両者を区別できます。

ライセンス

MIT

Available Tools

3 tools
check_visibilityA

Check a site's actual AI-crawler visibility: fetch its live robots.txt and look for Disallow rules blocking named AI bots (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, etc.) or a wildcard block, plus whether llms.txt actually exists as a real file (vs. falling through to a SPA catch-all).

Inputs: url (required).

cloudflare_ai_bot_auditA

Read a Cloudflare zone's Bot Management AI-bot settings (ai_bots_protection, ai_training, ai_search, ai_user, is_robots_txt_managed) for a domain. Requires CLOUDFLARE_API_EMAIL and CLOUDFLARE_API_KEY env vars (Global API Key, X-Auth-Email/X-Auth-Key auth).

Inputs: domain (required).

generate_llms_txtA

Generate an llms.txt line plus a content pack (ownable phrase, llms.txt sentence, meta description, FAQ block) for a product, ready to hand-place on a landing page or drop as a file. Does not write files or touch git — pure text generation.

Inputs: url (required), name (required), description (required), phrase.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: one checks live robots.txt and llms.txt, one audits Cloudflare's specific AI bot settings, and one generates llms.txt content. There is no overlap or ambiguity.

    Naming Consistency4/5

    All names use snake_case and include a verb, but check_visibility and generate_llms_txt follow a verb_noun pattern while cloudflare_ai_bot_audit places the verb at the end of a compound noun. This slight inconsistency is minor and does not hinder readability.

    Tool Count4/5

    Three tools is a reasonable number for a focused domain like AI crawler visibility. The scope is narrow enough that each tool earns its place without feeling sparse or excessive.

    Completeness4/5

    The tool set covers the core workflows: checking visibility, auditing a specific provider's settings, and generating content. However, it lacks support for other hosting providers beyond Cloudflare and does not include any write/modify capabilities, which may be expected in a visibility management server but is likely intentional as an analysis-only tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Analyze and generate robots.txt files with AI crawler awareness. Fetch any site's robots.txt, detect which AI bots (GPTBot, ClaudeBot, PerplexityBot, Google-Extended) are blocked or allowed, and generate optimized robots.txt with toggle controls for 20+ AI crawlers.
      5
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Generates a complete suite of AI readiness files (llms.txt, ai.txt, schema, RAG indexes) for any website to optimize representation in ChatGPT, Claude, Gemini, and Perplexity.
      52 npm
      4
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to audit and improve a site's visibility in AI search by checking robots.txt against 17 major AI crawlers, detecting llms.txt, and returning a 0-100 visibility score with per-crawler verdicts; it also lists known AI crawlers and their purposes.
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Checks a site for AI crawlers: which of 11 AI crawlers its robots.txt lets in, whether its llms.txt follows llmstxt.org, and what its home page says without scripts. Findings with evidence; no scores, no model calls, no telemetry.
      5
      43 npm
      MIT