Skip to main content
Glama
tsushanth

ai-visibility-mcp

by tsushanth

ai-visibility-mcp

一个用于检查并提升网站对 AI 爬虫和回答引擎(ChatGPT、Claude、Perplexity、Google AI Overviews 等)可见性的 MCP 服务器,针对你拥有的属性。

大多数“AI SEO”建议止步于“添加一个 llms.txt”。实际上,更大的常见问题出现在更上游:robots.txt——通常由 CDN(如 Cloudflare)自动管理——会静默地阻止你希望触及的特定爬虫,这使得任何 llms.txt 或内容工作都变得无效。该服务器同时检查这两者,此外还可以审计并生成修复方案。

工具

  • check_visibility(url) —— 获取站点的实时 robots.txt,并标记任何被 Disallow: / 或通配符拦截的命名 AI 机器人(GPTBot、ClaudeBot、Google-Extended、PerplexityBot、Applebot-Extended、CCBot、Bytespider、Amazonbot、meta-externalagent 等)。同时检查 llms.txt 是否作为真实文件存在,还是落入 SPA 的全捕获路由(一个常见的误报情况:文件返回 200 状态码,但实际上返回的是你的主页)。

  • cloudflare_ai_bot_audit(domain) —— 读取你控制的域名的 Cloudflare 区域机器人管理 AI 机器人设置(ai_bots_protectionai_trainingai_searchai_useris_robots_txt_managed)。需要 CLOUDFLARE_API_EMAIL + CLOUDFLARE_API_KEY(全局 API 密钥)环境变量。

  • generate_llms_txt(name, description, url, phrase?) —— 生成一条 llms.txt 行,如果你提供了一个可自有化的 niche phrase,还会生成一个小型内容包(元描述 + FAQ 区块),围绕该短语展开。纯文本生成——不涉及文件系统或 git 写入。

Related MCP server: ai-visibility-mcp

安装

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_visibilitygenerate_llms_txt 无需配置即可工作。

为何存在

托管在 Cloudflare 上的站点经常默认启用 AI 爬虫拦截(“Block AI Bots”开关),这会重写服务的 robots.txt 以禁止 GPTBot、ClaudeBot、Google-Extended 等——即使站点所有者从未明确做出此决定,并且实际上希望获得 AI 搜索可见性。这种情况很容易被忽略,因为站点对人类访客和常规搜索引擎看起来和运行仍然正常;只有 AI 爬虫被静默拒绝。check_visibility 从外部(实际提供的内容)揭示这一点,而 cloudflare_ai_bot_audit 从账户端(Cloudflare 设置的内容)确认,从而可以区分两者。

许可证

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    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
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Audits AI-bot visibility: robots.txt per-bot for 22 AI user-agents (GPTBot/ClaudeBot/PerplexityBot/etc), Cloudflare flags, JSON-LD, sitemap, llms.txt, SPA shell, plus cross-model brand mentions via Perplexity + OpenRouter. 0-100 score. SSRF-guarded, spend-capped.
    4
    1
    MIT
  • A
    license
    A
    quality
    A
    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
    51
    1
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tsushanth/ai-visibility-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server