robotstxt-ai

v1.0.1
io.github.sharozdawa/robotstxt-ai Checked 3 days ago Published 8 months ago

Analyze and generate robots.txt with AI crawler detection for 20+ bots like GPTBot and ClaudeBot.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fetch_robots

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

ParameterTypeDescription
url *stringThe website URL to fetch robots.txt from (e.g. https://example.com)

analyze_robots

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

ParameterTypeDescription
content *stringThe robots.txt content to analyze

generate_robots

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

ParameterTypeDescription
block_all_aibooleanIf true, blocks all known AI crawlers (but not search engines like Googlebot)
blocked_botsarrayArray of bot user-agent strings to block (e.g. ['GPTBot', 'ClaudeBot', 'CCBot']). Use list_ai_bots to see available user-agents.
custom_rulesstringAdditional custom robots.txt rules to append (raw robots.txt syntax)
sitemap_urlsarrayArray of sitemap URLs to include (e.g. ['https://example.com/sitemap.xml'])

list_ai_bots

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

check_bot_status

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

ParameterTypeDescription
bot_name *stringThe bot user-agent string to check (e.g. 'GPTBot', 'ClaudeBot'). Use list_ai_bots to see available names.
url *stringThe website URL to check (e.g. https://example.com)