# Robots Txt Generator — REST API endpoint `robots-txt-generator`

Return a robots.txt file built from user-agent rules (allow, disallow, crawl-delay), sitemap URLs and an optional Host directive, or from a preset: allow-all, block-all, wordpress, ecommerce.

- Category: seo
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/robots-txt-generator/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/robots-txt-generator/
- Same tool on the other surface: https://findutils.com/mcp/robots-txt-generator/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/robots-txt-generator/execute \
  -H "Content-Type: application/json" \
  -d '{
    "preset": "allow-all",
    "sitemaps": [
      "https://example.com/sitemap.xml"
    ],
    "include_comments": false
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/robots-txt-generator
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `rules` | array | no | Rule groups: objects with user_agent (e.g. "*", "Googlebot", "GPTBot"), allow (array of paths), disallow (array of paths), crawl_delay (seconds). Overrides preset. |
| `preset` | string (allow-all \| block-all \| wordpress \| ecommerce) | no | Starting rule set when rules is omitted. Default: `"allow-all"`. |
| `sitemaps` | array | no | Absolute sitemap URLs. |
| `host` | string | no | Optional Host directive value (Yandex), e.g. "https://example.com". |
| `include_comments` | boolean | no | Prepend the generator comment header with the date. Default: `true`. |

Example arguments (verified):

```json
{
  "preset": "allow-all",
  "sitemaps": [
    "https://example.com/sitemap.xml"
  ],
  "include_comments": false
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:robots_txt_generator`. Full MCP reference: https://findutils.com/mcp/robots-txt-generator/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
