indexnow-toolkit
Build and validate IndexNow payloads, check key files, and diff sitemaps into a submission list.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"indexnow-toolkit": {
"url": "https://indexnow-toolkit-mcp.lipmichal.workers.dev/mcp"
}
}
}遠端端點
https://indexnow-toolkit-mcp.lipmichal.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(3)
🟡build_indexnow_payload(key, urlList, host, keyLocation, engine)
Validates a key and URL list against the IndexNow spec and returns the exact JSON POST body, the endpoint, a ready-to-run curl command, and the reason for every URL it dropped. Enforces the same-host rule, the 10000-URL batch limit, https/http consistency, fragment stripping and de-duplication.
輸入結構描述
{
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "The IndexNow key, 8-128 characters of [a-zA-Z0-9-]."
},
"urlList": {
"type": "array",
"items": {
"type": "string"
},
"description": "Absolute URLs to submit. All must be on the same host."
},
"host": {
"type": "string",
"description": "The host, e.g. example.com. Inferred from the first URL if omitted."
},
"keyLocation": {
"type": "string",
"description": "Optional URL of the key file if it is not at https://host/<key>.txt."
},
"engine": {
"type": "string",
"description": "indexnow (default), bing, yandex, seznam or naver."
}
},
"required": [
"key",
"urlList"
]
}⚪validate_indexnow_key(key, host)
Checks an IndexNow key against the protocol schema (length, character set) and, given a host, returns the exact URL the key file must be served from, the exact contents it must have, and the curl command to verify it. Most 403 rejections are a key file that returns an HTML 404 page with a 200 status.
輸入結構描述
{
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "The key to check."
},
"host": {
"type": "string",
"description": "Optional host, e.g. example.com, to compute the key file URL."
}
},
"required": [
"key"
]
}🟡diff_sitemaps(previous_sitemap, current_sitemap, key, keyLocation, engine, ...)
Parses two sitemap documents (urlset XML, sitemapindex XML, or a newline-delimited URL list) and reports added, removed and lastmod-changed URLs. Returns only the URLs worth submitting to IndexNow. Pass a key to also get the finished, validated POST body.
輸入結構描述
{
"type": "object",
"properties": {
"previous_sitemap": {
"type": "string",
"description": "The earlier sitemap document."
},
"current_sitemap": {
"type": "string",
"description": "The current sitemap document."
},
"key": {
"type": "string",
"description": "Optional IndexNow key; supplying it returns a ready-to-send payload."
},
"keyLocation": {
"type": "string",
"description": "Optional key file URL."
},
"engine": {
"type": "string",
"description": "Optional target endpoint name."
},
"include_removed": {
"type": "boolean",
"description": "Include removed URLs in the submission list. Default false."
}
},
"required": [
"previous_sitemap",
"current_sitemap"
]
}社群
證據