Wikimedia MCP Server

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.

Integrations

  • Allows access to Wikipedia content programmatically through natural language queries, including searching content and titles, retrieving page content, finding language versions, getting featured content, and accessing historical events.

ウィキメディアMCPサーバー

Wikimedia APIと連携するためのモデルコンテキストプロトコル(MCP)サーバー。自然言語クエリを使用して、プログラムからWikipediaやその他のWikimediaプロジェクトのコンテンツにアクセスできます。

特徴

  • コンテンツの検索: ウィキメディアのページコンテンツ全体の全文検索
  • タイトルを検索: オートコンプリートの候補でページタイトルを検索
  • ページの取得: ページのコンテンツ、タイトル、URL、メタデータを取得します
  • 言語バージョン: ページの他の言語バージョンを検索します
  • 注目コンテンツ: 注目記事、最も読まれたページ、その日の写真を入手
  • 歴史的出来事: 任意の日付の出来事、誕生、死亡、休日を取得します

要件

  • Python 3.12以上
  • UVパッケージマネージャー
  • MCP サーバーフレームワーク

安全

  • すべてのユーザー入力が検証されます
  • 機密データや認証情報は不要
  • レート制限はWikimedia APIによって処理されます
  • エラーメッセージでは内部の詳細が明らかにならない

インストール

クロードデスクトップ構成

MacOSの場合:

~/Library/Application Support/Claude/claude_desktop_config.json

Windowsの場合:

C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json

開発構成

{ "mcpServers": { "wikimedia": { "command": "uv", "args": [ "--directory", "C:\\MCP\\server\\community\\wikimedia", "run", "wikimedia" ] } } }

公開された構成

{ "mcpServers": { "wikimedia": { "command": "uvx", "args": [ "wikimedia" ] } } }

ツール

検索コンテンツ

ウィキメディアのページコンテンツ全体を全文検索します。クエリに一致するスニペットを返します。

  • query (必須): 検索語
  • limit (1~50、デフォルト10): 結果の数
  • project (デフォルトは「wikipedia」): ウィキメディアプロジェクト
  • language (デフォルトは「en」): 言語コード

検索タイトル

クエリで始まるWikimediaページのタイトルを検索します。説明付きの候補を返します。

  • query (必須): 検索プレフィックス
  • limit (1~100、デフォルト10): 結果の数
  • project (デフォルトは「wikipedia」): ウィキメディアプロジェクト
  • language (デフォルトは「en」): 言語コード

get_page

Wikimedia ページのコンテンツ、タイトル、URL、最終更新日を取得します。

  • title (必須): ページタイトル
  • project (デフォルトは「wikipedia」): ウィキメディアプロジェクト
  • language (デフォルトは「en」): 言語コード

言語を取得する

ウィキメディア ページの他の言語のバージョンを取得します。

  • title (必須): ページタイトル
  • project (デフォルトは「wikipedia」): ウィキメディアプロジェクト
  • language (デフォルトは「en」): 言語コード

注目記事

指定した日付のWikimediaの注目コンテンツを取得します。注目記事、最も読まれたページ、その日の写真が表示されます。

  • date (YYYY/MM/DD、デフォルトは今日): コンテンツを取得する日付
  • project (「wikipedia」のみ): Wikipediaである必要があります
  • language (en/de/fr/es/ru/ja/zh): サポートされている言語

今日の入手

日付の歴史的な出来事をウィキメディアから取得します。

  • date (MM/DD、デフォルトは今日): イベントを取得する日付
  • type (デフォルトは「すべて」): イベントの種類 - すべて/選択/出生/死亡/休日/イベント
  • project (「wikipedia」のみ): Wikipediaである必要があります
  • language (en/de/fr/es/ru/ja/zh): サポートされている言語

使用例

# Search for content about "artificial intelligence" result = await client.call_tool("search_content", { "query": "artificial intelligence", "limit": 5, "language": "en" }) # Get today's featured content result = await client.call_tool("get_featured", { "language": "en" }) # Get historical events for January 1st result = await client.call_tool("get_on_this_day", { "date": "01/01", "type": "all", "language": "en" })

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。大きな変更については、まずIssueを開いて、変更したい点について議論してください。

ライセンス

MITライセンス。詳細はLICENSEファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

Wikimedia API とのプログラムによる対話を可能にし、コンテンツの検索、ページ情報の取得、複数の言語にわたる歴史的イベントへのアクセスなどの機能を提供します。

  1. Features
    1. Requirements
      1. Security
        1. Installation
          1. Claude Desktop Configuration
          2. Development Configuration
          3. Published Configuration
        2. Tools
          1. search_content
          2. search_titles
          3. get_page
          4. get_languages
          5. get_featured
          6. get_on_this_day
        3. Example Usage
          1. Contributing
            1. License
              ID: l6ihu97mw7