MediaWiki MCP Server ๐
shiquda/mediawiki-mcp-server ยท 27 stars ยท Python
MCP server 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!
Install
The repo has no one-line install. Follow its README.
Files
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 ๐ค!
demo.mp4
Features โจ
- ๐ Search wiki pages with customizable wiki site. e.g. wikipedia.org, fandom.com, wiki.gg and more!
- ๐ Retrieve detailed page content
Usage ๐ป
- Ensure that uv is installed on your device.
- 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:
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.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 27
- Language
- Python
- Last push
- 2025-07-13
- Forks
- 8
- Topics
- mcp, mcp-server, mediawiki, wiki, wikipedia
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling๐ท๏ธ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
