Wikimedia Enterprise docs
Wikimedia Enterprise API docs: search the guides, read every endpoint. Read-only, no account needed.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 fetch 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"docs": {
"url": "https://enterprise.wikimedia.com/mcp"
}
}
}遠端端點
https://enterprise.wikimedia.com/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢search(query, scope, limit)
Full-text search over the Wikimedia Enterprise API documentation: guide sections, the changelog, pricing, endpoints and response models. Exact tokens work best (a field name such as `reference_risk_score`, a status code such as `429`, or a path such as `/v2/snapshots/{identifier}/download`); plain questions work too. Returns ids to pass to `fetch`.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "What to look for. Field names, endpoint paths, status codes and plain questions all work."
},
"scope": {
"default": "all",
"description": "`docs` for the prose guides, `reference` for endpoints and models, `all` for both.",
"type": "string",
"enum": [
"docs",
"reference",
"all"
]
},
"limit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 25
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"snippet": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"guide",
"endpoint",
"model"
]
}
},
"required": [
"id",
"title",
"url",
"snippet",
"kind"
],
"additionalProperties": false
}
}
},
"required": [
"results"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢fetch(id)
Full text for one id from `search`: `docs/<slug>` (a guide, as markdown; a `#section` suffix is accepted; `docs/changelog` is the release notes and `docs/pricing` the plans), `op/<operationId>` (one endpoint rendered from the OpenAPI definition) or `schema/<name>` (one response model).
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "An id returned by `search`."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"text": {
"type": "string"
},
"url": {
"type": "string"
},
"metadata": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"id",
"title",
"text",
"url",
"metadata"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢list_endpoints(tag)
Every endpoint in the Wikimedia Enterprise OpenAPI definition, in reference order, with its technical title, its plain-language line and a link into the reference. Filter with a tag: authentication, codes, languages, projects, namespaces, batches, wikidata-batches, snapshots, wikidata-snapshots, structured-snapshots, articles, structured-contents, wikidata, realtime-articles, realtime-wikidata.
輸入結構描述
{
"type": "object",
"properties": {
"tag": {
"description": "An OpenAPI tag; omit for all endpoints.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"endpoints": {
"type": "array",
"items": {
"type": "object",
"properties": {
"operationId": {
"type": "string"
},
"method": {
"type": "string"
},
"path": {
"type": "string"
},
"tag": {
"type": "string"
},
"summary": {
"type": "string"
},
"gloss": {
"type": "string"
},
"beta": {
"type": "boolean"
},
"url": {
"type": "string"
}
},
"required": [
"operationId",
"method",
"path",
"tag",
"summary",
"gloss",
"beta",
"url"
],
"additionalProperties": false
}
}
},
"required": [
"endpoints"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢get_endpoint(operationId, method, path)
The exact request and response shape of one endpoint, dereferenced from the OpenAPI definition (the source of truth), as structured JSON plus a markdown rendering. Identify it by `operationId`, or by `method` and `path`.
輸入結構描述
{
"type": "object",
"properties": {
"operationId": {
"description": "e.g. `getSnapshotsByIdentifier`",
"type": "string"
},
"method": {
"description": "GET, HEAD or POST",
"type": "string"
},
"path": {
"description": "Templated path as written in the reference, e.g. `/v2/snapshots/{identifier}`",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"operationId": {
"type": "string"
},
"method": {
"type": "string"
},
"path": {
"type": "string"
},
"tag": {
"type": "string"
},
"url": {
"type": "string"
},
"operation": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"operationId",
"method",
"path",
"tag",
"url",
"operation"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}社群
證據