MediaWiki MCP Server π
About
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!
Details
- Author
- shiquda
- GitHub stars
- 25
- Downloads
- 506
- Categories
- Search, Knowledge Base, Other
Jump to
- Search wiki pages with customizable wiki sites.
- Retrieve detailed page content.
- Supports any MediaWiki-based site (e.g., Wikipedia, Fandom, wiki.gg).
- Multiple transport options: stdio, HTTP, SSE.
- Configurable via command-line arguments.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MediaWiki MCP Server πCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install uv, then configure your MCP client with uvx mediawiki-mcp-server. Set --base-url to the wiki siteβs endpoint (defaults to https://en.wikipedia.org/w/). Available transports are stdio (default), streamable-http (port 8000), and SSE. Run uvx mediawiki-mcp-server --help for all options.
search
Search for a wiki page. The shorter the request, the better, preferably containing only the main term to be searched. Args: query: The query to search for limit: The number of results to return Returns: A list of pages that match the query
get_page
Get a page from mediawiki.org Args: title: The title of the page to get, which can be found in title field of the search results Returns: The page content
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mediawiki mcp server \ud83d\ude80": {
"mediawiki-mcp-server": {
"command": "uvx",
"args": [
"mediawiki-mcp-server",
"--base-url",
"https://example.com/"
],
"env": {
"HTTP_PROXY": "http://example.com:port"
}
}
}
}
}
McpServers
{
"mediawiki-mcp-server": {
"command": "uvx",
"args": [
"mediawiki-mcp-server",
"--base-url",
"https://example.com/"
],
"env": {
"HTTP_PROXY": "http://example.com:port"
}
}
}
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 π€!
<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:

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:
- <https://www.mediawiki.org/api/rest_v1/>
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.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





