SM

shiquda/mediawiki-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

27 stars 8 forks 品質 53 トレンド 11

A MCP server that allows you to search and retrieve content on any wiki site using MediaWiki with LLMs 🤖 wikipedia.org, fandom.com, wiki.gg and more sites using Mediawiki are supported!

概要

Outdated. Please use https://github.com/ProfessionalWiki/MediaWiki-MCP-Server instead! A MCP server that provides seamless interaction with Wikipedia's API. This tool allows you to search and retrieve Wikipedia content with LLMs 🤖! https://github.com/user-attachments/assets/b5d9c5f3-a60e-48ea-8b4b-f1a7524d4fbb - 🔍 Search wiki pages with customizable wiki site. e.g. wikipedia.org, fandom.com, wiki.gg and more! - 📖 Retrieve detailed page content 1. Ensure that uv is installed on your device. 2. Configure in your client: The server defaults to using https://en.wikipedia.org/. Also, you can make the server search other wiki sites! To see if a wiki site works with this server, check if it uses MediaWiki software (usually shown by an icon at the bottom of the site). To check further and find the endpoint (usually the website's domain, like https://mediawiki.org/), check by going to base-url/rest.php/v1/page in a browser (like https://noita.wiki.gg/rest.

README

以下は原文 README の抜粋です。原文を見る。

Outdated. Please use https://github.com/ProfessionalWiki/MediaWiki-MCP-Server instead!

MediaWiki MCP Server 🚀

A MCP server that provides seamless interaction with Wikipedia’s API. This tool allows you to search and retrieve Wikipedia content with LLMs 🤖!

Features ✨

Usage 💻

  1. Ensure that uv is installed on your device.
  2. Configure in your client:

The server defaults to using . Also, you can make the server search other wiki sites!

To see if a wiki site works with this server, check if it uses MediaWiki software (usually shown by an icon at the bottom of the site).

To check further and find the endpoint (usually the website’s domain, like ), check by going to base-url/rest.php/v1/page in a browser (like ) and see if the output looks right. If not, add ‘/w’ to the base URL and try again.

Then, set this endpoint as --base-url:

Available transports: stdio (default), streamable-http (http://localhost/mcp), and SSE (http://localhost/sse). See -h for all options.

uvx mediawiki-mcp-server --h
usage: main.py [-h] [--base-url BASE_URL] [--http] [--sse] [--port PORT]

MediaWiki MCP Server

options:
  -h, --help           show this help message and exit
  --base-url BASE_URL  Base URL for the MediaWiki API (default: https://en.wikipedia.org/w/``)
  --http               Run server as streamable-http (instead of stdio)
  --sse                Run server as sse-http (instead of stdio)
  --port PORT          Default port for http transport (default: 8000)

Example JSON configurations:

{
  "mcpServers": {
    "mediawiki-mcp-server": {
      "command": "uvx",
      "args": [
        "mediawiki-mcp-server",
        "--base-url", "https://example.com/"
      ],
      "env": {
        "HTTP_PROXY": "http://example.com:port"
      }
    }
  }
}

Or, if you want to run this server from source:

{
  "mcpServers": {
    "mediawiki-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory", 
        "mediawiki-mcp-server",
        "path/to/project/src/mediawiki_mcp_server",
GitHub で README 全文を見る

インストール

uvx mediawiki-mcp-server --base-url https://example.com/
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mediawiki-mcp-server": { "command": "uvx", "args": [ "mediawiki-mcp-server", "--base-url", "https://example.com/" ], "env": { "HTTP_PROXY": "http://example.com:port" } } } }