MediaWiki

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!
  • python

21

GitHub Stars

python

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs

This MCP Server lets you interact with MediaWiki APIs to search for wiki pages and retrieve page content, enabling seamless integration with large language models and other tools. It provides configurable transports so you can either run locally or connect remotely, making it easy to fetch up-to-date wiki information for your applications.

How to use

You run the MediaWiki MCP Server and connect your MCP client to it. By default it targets the English Wikipedia, but you can configure the base wiki site to search other MediaWiki-powered sites. To verify a site works with the server, confirm the site uses MediaWiki software (look for the icon at the bottom of the page). If you need to confirm the endpoint, you can test the base URL with the REST API path described below and adjust the base URL with /w if needed.

Two main ways to run the server are supported: a local stdio transport and remote HTTP-based transports. Use the http transport when you want to expose the MCP server over HTTP, and use stdio when you prefer a local in-process flow.

From your MCP client, you will typically perform two actions: search for a wiki page by a query and fetch a specific page by title. The server accepts a search term to return a list of matching pages, and a page title to retrieve the full page content. Use short, focused queries to get the best results.

How to install

Prerequisites you need before installing: you must have the UV runtime installed on your device.

Option A: Run as an HTTP-exported MCP service (remote/http transport) using the provided CLI pathway.

Option B: Run as a local stdio MCP process.

  1. Install and verify the UV launcher if you haven’t already.

  2. Decide how you want to run the server and prepare the base URL for the target wiki site. The server defaults to https://en.wikipedia.org/, and you can point it to other MediaWiki sites by setting the base URL.

  3. Start the MCP server using one of the provided command configurations. You can run the server in HTTP mode or as a local stdio process.

Configuration and transport options

The server supports multiple transports. By default you operate in stdio mode, but you can switch to HTTP-based transports (streamable-http or SSE) if you want to expose the MCP server over HTTP.

Base URL for the MediaWiki API is configurable. The default is https://en.wikipedia.org/w/ but you can point to any compatible MediaWiki site using the --base-url option.

Example of starting via HTTP transport and setting a base URL.

Example of starting via stdio transport and setting a base URL.

Troubleshooting

If you cannot reach a wiki site, verify the base URL is correct and that the site uses the MediaWiki API. Check the REST path at base-url/rest.php/v1/page to see if the API returns expected results. If not, adjust the base URL accordingly and try again.

If you see transport issues, ensure you are using the correct mode (stdio vs HTTP) and that the MCP client is configured to connect to the active endpoint.

Notes

You can test the configured wiki site by requesting the REST endpoint directly in a browser to confirm the API is accessible and behaving as expected.

Available tools

query

Search term input to find wiki pages, returning a list of matching results with optional limits.

get_page

Retrieve the full content of a wiki page by its exact title.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational