MCP · CLI · REST API · Agent Skill

Automate search indexing from your coding agent or deploy pipeline.

Connect Claude Code, Cursor, OpenClaw, Codex, or CI/CD scripts to IndexMyWebsite with one API key. Sync XML sitemaps, submit new URLs after every deploy, and inspect real indexing status.

Step 1 · Authentication

Create a workspace API key

Generate a scoped key (imw_...) under Workspace settings → API keys. Keys are shown once and stored as SHA-256 hashes. Pass your key in either Authorization: Bearer imw_... or X-API-Key: imw_....

Environment variable
export INDEXMYWEBSITE_API_KEY="imw_your_workspace_key"
Step 2 · Model Context Protocol

Streamable HTTP MCP Server

Point any Streamable HTTP MCP client at https://indexmywebsite.com/mcp. Available tools: list_sites, get_site_summary, sync_sitemap, submit_urls, check_url_status, and list_recent_jobs.

Claude Code
claude mcp add --transport http indexmywebsite https://indexmywebsite.com/mcp \
  --header "Authorization: Bearer ${INDEXMYWEBSITE_API_KEY}"
Cursor / OpenClaw (mcp.json)
{
  "mcpServers": {
    "indexmywebsite": {
      "url": "https://indexmywebsite.com/mcp",
      "headers": {
        "Authorization": "Bearer ${INDEXMYWEBSITE_API_KEY}"
      }
    }
  }
}
Step 3 · Agent Skills

Install SKILL.md

Install the standard SKILL.md so Claude Code, Cursor, OpenClaw, and Codex automatically submit newly published URLs and verify real search indexing status after every deploy.

Install skill locally
mkdir -p .claude/skills/indexmywebsite
curl -fsSL https://indexmywebsite.com/SKILL.md -o .claude/skills/indexmywebsite/SKILL.md

Also available at /skills/indexmywebsite/SKILL.md and /llms.txt.

Step 4 · Zero-Dependency CLI

Single-file Node 20+ CLI

No npm install required — uses native fetch and supports --json for machine-readable agent output.

Download & run
curl -fsSL https://indexmywebsite.com/cli.mjs -o indexmywebsite.mjs
chmod +x indexmywebsite.mjs

node indexmywebsite.mjs whoami --json
node indexmywebsite.mjs sites
node indexmywebsite.mjs sync 42
node indexmywebsite.mjs submit 42 https://example.com/new-page --json
node indexmywebsite.mjs status 42 --url https://example.com/new-page
node indexmywebsite.mjs jobs 42 --limit 20
Step 5 · REST API v1

Direct HTTP endpoints

All /api/v1/* endpoints use Bearer API key authentication (no session cookies or CSRF tokens) and enforce the same domain validation, plan limits, and queue rules as the dashboard.

Method & PathScopePurpose
GET /api/v1/whoamireadWorkspace info, plan limits, active site count
GET /api/v1/sitesreadList workspace sites with URL status breakdown
GET /api/v1/sites/:siteId/summaryreadCounts, engine readiness, sitemaps, recent jobs
POST /api/v1/sites/:siteId/sync-sitemapwriteFetch XML sitemap(s) and enqueue discovered URLs
POST /api/v1/sites/:siteId/submitwriteValidate & enqueue 1–500 same-origin URLs
GET /api/v1/sites/:siteId/urlsreadQuery URLs by ?url=, ?status=, ?limit=
GET /api/v1/sites/:siteId/jobsreadRecent provider jobs, HTTP status codes & summaries
Submit URLs with curl
curl -sS -X POST "https://indexmywebsite.com/api/v1/sites/42/submit" \
  -H "Authorization: Bearer ${INDEXMYWEBSITE_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com/launch","https://example.com/pricing"],"priority":80}'
Honest Telemetry

Clear separation between acceptance and indexing

IndexMyWebsite never invents fake indexing states. Submission jobs track whether Bing/IndexNow or Google accepted a notification, while Google Search Console URL Inspection reports real observed index coverage:

discovered queued retrying accepted failed observed_indexed not_observed_indexed