Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mediawiki-mcp-server

MCP.Pizza Chef: shiquda

The mediawiki-mcp-server is an MCP server that integrates with MediaWiki-based wiki sites such as Wikipedia, Fandom, and wiki.gg. It enables LLMs to search and retrieve detailed wiki page content seamlessly via MediaWiki APIs. This server supports customizable wiki site queries, making it ideal for real-time knowledge retrieval and content extraction from popular wiki platforms.

Use This MCP server To

Search wiki pages across multiple MediaWiki sites Retrieve detailed content from Wikipedia articles Access fandom.com wiki content for gaming or entertainment info Query wiki.gg for gaming-related knowledge Integrate wiki content retrieval into AI chatbots or assistants Enable LLMs to fetch up-to-date wiki data during conversations

README

MediaWiki MCP Server 🚀

smithery badge

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 🤖!

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 💻

  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.

{
  "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.

mediawiki-mcp-server FAQ

How do I configure the mediawiki-mcp-server to use a specific wiki site?
You can customize the wiki site URL parameter to target any MediaWiki-based site like wikipedia.org, fandom.com, or wiki.gg when making search requests.
Does the mediawiki-mcp-server support retrieving full article content?
Yes, it can retrieve detailed page content from the specified wiki site to provide comprehensive information.
What programming language is the mediawiki-mcp-server built with?
It is built using Python 3.13 and uses the uv framework for efficient asynchronous operations.
Is the mediawiki-mcp-server secure to use in production?
The server has a security assessment badge from MseeP.ai, indicating it follows best practices for secure deployment.
Can the mediawiki-mcp-server be used with different LLM providers?
Yes, it is provider-agnostic and works with OpenAI, Anthropic Claude, and Google Gemini models.
How does the mediawiki-mcp-server handle API rate limits from wiki sites?
It is designed to handle typical API rate limits gracefully, but for heavy usage, consider caching or rate limiting strategies on your side.
What are the main features of the mediawiki-mcp-server?
It supports searching wiki pages and retrieving detailed page content from customizable MediaWiki sites.
How do I install and run the mediawiki-mcp-server?
Installation requires Python 3.13 and uv; you can follow the GitHub README for setup instructions and usage examples.