Skip to main content
Glama
robotstxt-ai-mcp

robotstxt-ai-mcp

by sharozdawa

npm GitHub stars License robotstxt-ai MCP server

Manage which AI bots can crawl your website — visually.

Toggle GPTBot, ClaudeBot, PerplexityBot, and 20+ AI crawlers on/off with a simple UI. Analyze any site's robots.txt instantly.


Features

  • Visual Toggle UI — Block or allow AI bots with simple on/off switches

  • 20+ AI Bots Database — GPTBot, ClaudeBot, Google-Extended, CCBot, Bytespider, Diffbot, cohere-ai, Amazonbot, Meta-ExternalAgent, and more

  • Analyze Existing robots.txt — Paste or fetch any robots.txt to see which AI bots are blocked

  • Generate robots.txt — Create a complete robots.txt with your chosen rules

  • MCP Server — Use with Claude Desktop, Cursor, or any MCP-compatible AI assistant

  • Check Bot Status — Verify if a specific bot is blocked on any website

Related MCP server: ai-visibility-mcp

MCP Tools

Tool

Description

fetch_robots

Fetch and analyze a robots.txt from any URL

analyze_robots

Analyze pasted robots.txt content for AI bot blocking status

generate_robots

Generate a robots.txt with specified blocked bots and custom rules

list_ai_bots

List all known AI bots with user-agents, companies, and descriptions

check_bot_status

Check if a specific bot is blocked on a given website

Installation

Web App

git clone https://github.com/sharozdawa/robotstxt-ai.git
cd robotstxt-ai
npm install
npm run dev

Open http://localhost:3000 in your browser.

MCP Server — Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "robotstxt-ai": {
      "command": "npx",
      "args": ["-y", "robotstxt-ai-mcp"]
    }
  }
}

MCP Server — Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "robotstxt-ai": {
      "command": "npx",
      "args": ["-y", "robotstxt-ai-mcp"]
    }
  }
}

Tracked Bots

The server knows about 25+ bots including:

  • AI Crawlers: GPTBot, ClaudeBot, Google-Extended, CCBot, Bytespider, Diffbot, cohere-ai, Amazonbot, Meta-ExternalAgent

  • AI Search: ChatGPT-User, OAI-SearchBot, PerplexityBot, YouBot

  • Search Engines: Googlebot, Bingbot, YandexBot, Baiduspider, DuckDuckBot

Why robotstxt.ai vs Manual Editing

Feature

robotstxt.ai

Manual Editing

Visual toggle UI

Yes

No

20+ AI bots database

Yes

Research yourself

Analyze existing robots.txt

Yes

No

MCP Server

Yes

No

Price

Free

Free but tedious

More Open Source SEO Tools

Tool

Description

awesome-seo-mcp-servers

Curated list of SEO MCP servers and agent skills

indexnow-mcp

Instant URL indexing via IndexNow

schema-gen

Schema.org JSON-LD markup generator

ai-visibility

AI brand visibility tracker

License

MIT


Built by Sharoz Dawa — SEO Professional & Digital Marketing Expert

GitHub

Available Tools

5 tools
analyze_robotsA

Analyze pasted robots.txt content. Returns which AI bots are blocked or allowed based on the rules.

Inputs: content (required).

check_bot_statusA

Check if a specific bot is blocked or allowed on a given website by fetching and analyzing its robots.txt.

Inputs: url (required), bot_name (required).

fetch_robotsB

Fetch and analyze a robots.txt file from a URL. Returns which AI bots are blocked or allowed.

Inputs: url (required).

generate_robotsB

Generate a robots.txt file with specified blocked bots, sitemap URLs, and custom rules.

Inputs: block_all_ai, blocked_bots, custom_rules, sitemap_urls.

list_ai_botsA

List all known AI bots with their user-agents, companies, and descriptions. Useful for deciding which bots to block.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct operation: analyzing pasted content, checking a specific bot, fetching from a URL, generating, and listing bots. No overlap in functionality.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (e.g., analyze_robots, check_bot_status). No mixing of conventions.

    Tool Count5/5

    Five tools is a well-scoped set for this domain, covering the essential tasks without being too few or excessive.

    Completeness5/5

    The tools cover the full lifecycle: fetching, analyzing, checking specific bots, generating, and listing known AI bots. No obvious gaps for the intended purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • 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
      D
      maintenance
      Checks a website's robots.txt and Cloudflare settings to identify AI crawler blocking. Also generates llms.txt content to improve visibility to AI answer engines.
      3
      55 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets an AI assistant check any URL to see how much of a page's main content is present in the raw HTML versus only after JavaScript runs, showing which text blocks, meta fields, canonical tags, JSON-LD and links AI crawlers like GPTBot and ClaudeBot cannot read. It also reports what robots.txt allows for 22 AI bot tokens and how the site responds to each bot's user-agent.
      AGPL 3.0
    • 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