mcpField
M
MediaWiki MCP Server πŸš€

MediaWiki MCP Server πŸš€

Local
github.com/shiqudaMemory & Knowledge27Updated 68w ago

About MediaWiki MCP Server πŸš€

MediaWiki MCP Server is an MCP server that searches and retrieves page content from wikis built on MediaWiki, such as Wikipedia, Fandom and wiki.gg. The README marks this project as outdated and recommends the ProfessionalWiki version instead.

Key features

  1. 01Search pages on configurable MediaWiki sites
  2. 02Retrieve detailed page content
  3. 03Supports stdio, streamable-http and SSE transports

Use cases

  1. 01Letting an LLM look up Wikipedia article content
  2. 02Searching reference material on Fandom wikis

MCP support

The project is an MCP server that provides search and page retrieval tools to MCP clients, with the target site set through the --base-url option.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json Β· Universal config
{
"mcpServers": {
"mediawiki": {
"command": "uvx",
"args": [
"mediawiki-mcp-server"
],
"env": {
"HTTP_PROXY": "<HTTP_PROXY>"
}
}
}
}
Run commanduvx mediawiki-mcp-server
Environment variables to set
HTTP_PROXY

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimediawiki-mcp-server

Tools

2

Saved tool list Β· updated 3w ago

ParameterTypeRequiredDescription
limitintegerNo
querystringYes

Details

From the project README

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

MediaWiki MCP Server πŸš€

smithery badge README image README image

MseeP.ai Security Assessment Badge

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

Features ✨

  • πŸ” Search wiki pages with customizable wiki site. e.g. wikipedia.org, fandom.com, wiki.gg and more!
  • πŸ“– Retrieve detailed page content

Usage πŸ’»

  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.php/v1/page) 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:

README image

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",
        "--base-url", "https://example.com/"
      ],
      "env": {
        "HTTP_PROXY": "http://example.com:port"
      }
    }
  }
}

Supported Tools πŸ› 

Search
  • query: Search term (preferably short and focused)
  • limit: Maximum number of results to return (default: 5)
Get Page
  • title: The exact title of the Wikipedia page to retrieve

Development πŸ‘¨β€πŸ’»

npx @modelcontextprotocol/inspector uv run mediawiki-mcp-server

Here are some documents that might help:

Contributing 🀝

This server is under development. Contributions are welcome! Feel free to submit issues and pull requests.

Related Projects β™₯️

  • Cherry Studio: A desktop client that supports for multiple LLM providers. MCP is supported.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.