Skip to main content
Glama

Wikimedia MCP Server

by privetin
MIT License
2
  • Apple

ウィキメディア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

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.

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

  1. 特徴
    1. 要件
      1. 安全
        1. インストール
          1. クロードデスクトップ構成
          2. 開発構成
          3. 公開された構成
        2. ツール
          1. 検索コンテンツ
          2. 検索タイトル
          3. get\_page
          4. 言語を取得する
          5. 注目記事
          6. 今日の入手
        3. 使用例
          1. 貢献
            1. ライセンス

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Allows the use of Kagi's API for web searching and content enrichment through methods like fastgpt, enrich/web, and enrich/news.
                Last updated -
                3
                2
                Python
                MIT License
                • Apple
              • A
                security
                A
                license
                A
                quality
                Enables extracting data from websites using natural language prompts, allowing users to specify exactly what content they want in plain English and returning structured JSON data.
                Last updated -
                1
                1,379
                4
                TypeScript
                MIT License
                • Apple
                • Linux
              • -
                security
                F
                license
                -
                quality
                A tool that enables AI assistants like Claude to interact with MediaWiki instances by retrieving page content, performing searches, and analyzing wiki information through the MediaWiki API.
                Last updated -
                1
                JavaScript
              • A
                security
                A
                license
                A
                quality
                A server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.
                Last updated -
                5
                8
                Python
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/privetin/wikimedia'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server