Wikidata + Google Knowledge Graph MCP

Read-only Wikidata tools and identity evidence. Local optional Google KG; bounded public remote.

我该使用它吗

质量与安全性

B
描述质量
93%
模式完整度
68%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(2)

  • LOWTool 'kg_entity' description lacks action verb在 kg_entity 中
  • LOWTool 'kg_lookup_entities' description lacks action verb在 kg_lookup_entities 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,947token 数(工具定义)
~2.1 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.52%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "wikidata-google-knowledge-mcp": {
      "command": "uvx",
      "args": [
        "wikidata-google-knowledge-mcp"
      ]
    }
  }
}

可运行的软件包

pypiwikidata-google-knowledge-mcp0.3.0stdio

远程端点

https://wikidata-knowledge-mcp.revanalex.workers.dev/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢kg_search(query, place, type, lang, limit, ...)

Wikidata entity candidates by name, with local place/type filtering. Default 3, maximum 5 candidates. Google and fallback are disabled remotely.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "title": "Query",
      "type": "string",
      "maxLength": 512
    },
    "place": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Place"
    },
    "type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Type"
    },
    "lang": {
      "default": "en",
      "title": "Lang",
      "type": "string",
      "maxLength": 512
    },
    "limit": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Limit"
    },
    "provider": {
      "default": "wikidata",
      "title": "Provider",
      "type": "string",
      "maxLength": 512,
      "enum": [
        "wikidata",
        "google"
      ]
    },
    "fallback": {
      "default": false,
      "title": "Fallback",
      "type": "boolean"
    }
  },
  "required": [
    "query"
  ],
  "title": "kg_searchArguments",
  "additionalProperties": false
}
🟢kg_entity(id, props, evidence, lang)

Selected compact facts for one Wikidata QID. At most 12 properties and 3 evidence properties with ranks, qualifiers and references.

输入模式

{
  "type": "object",
  "properties": {
    "id": {
      "title": "Id",
      "type": "string",
      "maxLength": 512
    },
    "props": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 512
          },
          "type": "array",
          "maxItems": 12
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Props"
    },
    "evidence": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 512
          },
          "type": "array",
          "maxItems": 3
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Evidence"
    },
    "lang": {
      "default": "en",
      "title": "Lang",
      "type": "string",
      "maxLength": 512
    }
  },
  "required": [
    "id"
  ],
  "title": "kg_entityArguments",
  "additionalProperties": false
}
🟢kg_related(id, prop, inverse, hierarchy, depth, ...)

Bounded outgoing, inverse or hierarchy relationships for one Wikidata QID. Maximum depth 2 and 10 results.

输入模式

{
  "type": "object",
  "properties": {
    "id": {
      "title": "Id",
      "type": "string",
      "maxLength": 512
    },
    "prop": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Prop"
    },
    "inverse": {
      "default": false,
      "title": "Inverse",
      "type": "boolean"
    },
    "hierarchy": {
      "default": false,
      "title": "Hierarchy",
      "type": "boolean"
    },
    "depth": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 2
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Depth"
    },
    "limit": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Limit"
    },
    "lang": {
      "default": "en",
      "title": "Lang",
      "type": "string",
      "maxLength": 512
    }
  },
  "required": [
    "id"
  ],
  "title": "kg_relatedArguments",
  "additionalProperties": false
}
🟢kg_resolve(name, kind, city, country, latitude, ...)

Canonical deterministic resolution of one identity from supplied local facts and Wikidata evidence. Returns identity verdicts and reason codes, including uncertainty. Google is disabled remotely.

输入模式

{
  "type": "object",
  "properties": {
    "name": {
      "title": "Name",
      "type": "string",
      "maxLength": 512
    },
    "kind": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Kind"
    },
    "city": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "City"
    },
    "country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Country"
    },
    "latitude": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Latitude"
    },
    "longitude": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Longitude"
    },
    "address": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Address"
    },
    "official_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Official Url"
    },
    "aliases": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 512
          },
          "type": "array",
          "maxItems": 8
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Aliases"
    },
    "venue": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Venue"
    },
    "event_date": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Event Date"
    },
    "organizer": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Organizer"
    },
    "role": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Role"
    },
    "occupation": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Occupation"
    },
    "affiliation": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Affiliation"
    },
    "creator": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Creator"
    },
    "year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Year"
    },
    "existing_wikidata_qid": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Existing Wikidata Qid"
    },
    "existing_google_kg_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Existing Google Kg Id"
    },
    "lang": {
      "default": "en",
      "title": "Lang",
      "type": "string",
      "maxLength": 512
    },
    "explain": {
      "default": false,
      "title": "Explain",
      "type": "boolean"
    }
  },
  "required": [
    "name"
  ],
  "title": "kg_resolveArguments",
  "additionalProperties": false
}
🟢kg_audit_identity(envelope, max_candidates, refresh, google_crosscheck)

Canonical audit of one existing Wikidata QID against one local identity envelope. Returns contradictions, evidence and uncertainty. Provider agreement is not local identity proof. Google crosscheck is disabled remotely.

输入模式

{
  "type": "object",
  "properties": {
    "envelope": {
      "additionalProperties": true,
      "title": "Envelope",
      "type": "object"
    },
    "max_candidates": {
      "default": 3,
      "title": "Max Candidates",
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "refresh": {
      "default": false,
      "title": "Refresh",
      "type": "boolean"
    },
    "google_crosscheck": {
      "default": false,
      "title": "Google Crosscheck",
      "type": "boolean"
    }
  },
  "required": [
    "envelope"
  ],
  "title": "kg_audit_identityArguments",
  "additionalProperties": false
}
🟢kg_discover_identity(envelope, max_candidates, refresh, google_crosscheck)

Canonical discovery of one identity from a local evidence envelope. Default 3, maximum 5 candidates. Returns ambiguity and insufficient-evidence states; sameAs candidates are unapproved. Google crosscheck is disabled remotely.

输入模式

{
  "type": "object",
  "properties": {
    "envelope": {
      "additionalProperties": true,
      "title": "Envelope",
      "type": "object"
    },
    "max_candidates": {
      "default": 3,
      "title": "Max Candidates",
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "refresh": {
      "default": false,
      "title": "Refresh",
      "type": "boolean"
    },
    "google_crosscheck": {
      "default": false,
      "title": "Google Crosscheck",
      "type": "boolean"
    }
  },
  "required": [
    "envelope"
  ],
  "title": "kg_discover_identityArguments",
  "additionalProperties": false
}
🟢kg_lookup_entities(qids, fields, lang, refresh)

Compact selected Wikidata facts for at most 10 supplied QIDs. Fact lookup does not establish local identity.

输入模式

{
  "type": "object",
  "properties": {
    "qids": {
      "items": {
        "type": "string",
        "maxLength": 512
      },
      "title": "Qids",
      "type": "array",
      "maxItems": 10
    },
    "fields": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 512
          },
          "type": "array",
          "maxItems": 12
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Fields"
    },
    "lang": {
      "default": "en",
      "title": "Lang",
      "type": "string",
      "maxLength": 512
    },
    "refresh": {
      "default": false,
      "title": "Refresh",
      "type": "boolean"
    }
  },
  "required": [
    "qids"
  ],
  "title": "kg_lookup_entitiesArguments",
  "additionalProperties": false
}
🟢kg_status

Public remote provider configuration and operational limits. No external provider calls. Wikidata is available; Google Knowledge Graph is disabled.

输入模式

{
  "type": "object",
  "properties": {},
  "title": "kg_statusArguments",
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具