Skip to content

Automate IndexNow with CLI & MCP Server

Run IndexNow key checks, sitemap-index extraction, and batched submissions from your terminal or directly inside AI coding agents via MCP.

Zero-dependency local CLI

The submitnow repository ships a standalone Node 22+ CLI at cli/submitnow.ts sharing the exact same SSRF guards, key-scope validation, sitemap-index parser, and auto-batching logic as the web UI.

# Generate a 48-char hex key and write <key>.txt
node cli/submitnow.ts generate-key --write

# Verify a live key file publicly
node cli/submitnow.ts check-key --host www.example.com --key "$INDEXNOW_KEY"

# Extract URLs modified in the last 7 days from a live sitemap index
node cli/submitnow.ts fetch-sitemap --url https://www.example.com/sitemap.xml --lastmod-days 7

# Submit URLs (auto-chunks lists > 10,000)
node cli/submitnow.ts submit --key "$INDEXNOW_KEY" --urls https://www.example.com/post-1 https://www.example.com/post-2

Connect via Hosted Streamable HTTP MCP (No Install)

Connect Claude Code, Cursor, or Antigravity directly to submitnow's stateless hosted Streamable HTTP MCP endpoint at https://www.submitnow.dev/mcp — zero install, zero account, and zero server storage.

# Claude Code
claude mcp add --transport http submitnow https://www.submitnow.dev/mcp

# Or JSON client config
{
  "mcpServers": {
    "submitnow": {
      "type": "http",
      "url": "https://www.submitnow.dev/mcp"
    }
  }
}

Connect via Local stdio MCP (npx submitnow-mcp — No Hosted Limits)

Run submitnow-mcp locally over stdio JSON-RPC 2.0 via npx (or directly from mcp/server.ts) so agents in Claude Code, Cursor, or Antigravity can run unlimited key checks, sitemap fetches, and batched submissions locally.

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

Exposed MCP tools

indexnow_generate_key
Creates a cryptographically random 48-character hexadecimal IndexNow key locally.
indexnow_check_key
Fetches a public key file with SSRF guards and reports 404, soft-404 HTML, UTF-8 BOM, off-host redirects, or exact content mismatches.
indexnow_fetch_sitemap
Fetches a remote sitemap.xml, .xml.gz, or nested sitemapindex with optional lastmod day filtering.
indexnow_submit_urls
Validates host, protocol, and subdirectory keyLocation scope, then submits up to 10,000 URLs per batch to your chosen IndexNow endpoint.