mediawiki-mcp-server

by shiquda

Integrations

  • Enables searching and retrieving content from Fandom wikis through their MediaWiki-based API.

  • Provides tools for searching and retrieving content from wiki.gg sites, supporting various gaming and community wikis.

  • Allows searching and retrieving detailed page content from Wikipedia, with customizable result limits and exact title lookups.

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.

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

  • 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.

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

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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!

  1. Features ✨
    1. Usage 💻
      1. Supported Tools 🛠
        1. Search
        2. Get Page
      2. Development 👨‍💻
        1. Contributing 🤝
          1. Related Projects ♥️

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              MCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)
              Last updated -
              1
              Python
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that retrieves information from Wikipedia to provide context to LLMs, allowing users to search articles, get summaries, full content, sections, and links from Wikipedia.
              Last updated -
              12
              Python
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              An MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.
              Last updated -
              Python
            • A
              security
              A
              license
              A
              quality
              A server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.
              Last updated -
              5
              8
              Python
              MIT License

            View all related MCP servers

            ID: 9f9zunnuyj