Wikidata MCP サーバー
モデルコンテキストプロトコル(MCP)を用いたWikidata APIのサーバー実装。このプロジェクトは、識別子(エンティティとプロパティ)の検索、メタデータ(ラベルと説明)の抽出、 SPARQLクエリの実行など、Wikidataを操作するためのツールを提供します。
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Wikidata MCP サーバーを自動的にインストールするには:
手動でインストールする
まだインストールされていない場合はuv
をインストールしてください。
次に、依存関係をインストールします。
走る
次のコマンドでサーバーを実行します。
単純なクライアント コード ( langchain-mcp-adapters
を使用) でテストする場合は、次のコマンドでクライアントを実行します。
LLM は有効なエンティティおよびプロパティ識別子を抽出し、Sparql クエリを実行し、最終的にポン・ジュノ監督の映画を推奨します。
Wikidata MCPツール
サーバーには次のツールが実装されています。
道具 | 説明 |
---|---|
search_entity(query: str) | クエリで Wikidata エンティティ ID を検索します。 |
search_property(query: str) | クエリで Wikidata プロパティ ID を検索します。 |
get_properties(entity_id: str) | 指定された Wikidata エンティティ ID に関連付けられたプロパティを取得します。 |
execute_sparql(sparql_query: str) | Wikidata で SPARQL クエリを実行します。 |
get_metadata(entity_id: str, language: str = "en") | 指定された Wikidata エンティティ ID の英語のラベルと説明を取得します。 |
ライセンス
MITライセンス
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
モデル コンテキスト プロトコルを使用して Wikidata API と対話するためのサーバー実装。識別子の検索、メタデータの抽出、SPARQL クエリの実行のためのツールを提供します。
Related Resources
Related MCP Servers
- -securityAlicense-qualityEnables programmatic interaction with Wikimedia APIs, offering features like searching content, retrieving page information, and accessing historical events across multiple languages.Last updated -62PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server utilizing Claude AI for generating intelligent queries and offering documentation assistance based on API documentation analysis.Last updated -32TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models to seamlessly interact with ClickHouse databases, supporting resource listing, schema retrieval, and query execution.Last updated -1PythonMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables searching, reading, and editing wiki pages on Wizzypedia from MCP-enabled tools like Cursor or Claude Desktop.Last updated -6JavaScript