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 💻
- Ensure that uv is installed on your device.
- Clone this repo and execute:
uv sync
- Configure in your client:
Command:
uv
Args:
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.
run
--directory
path/to/project/src/mediawiki_mcp_server
mediawiki-mcp-server
--base-url
https://example.com/
Envs:
HTTP_PROXY=http://host:port
Supported Tools 🛠
Search
async def search(query: str, limit: int = 5)
query: Search term (preferably short and focused)limit: Maximum number of results to return (default: 5)
Get Page
async def get_page(title: str)
title: The exact title of the Wikipedia page to retrieve
Development 👨💻
npx @modelcontextprotocol/inspector uv run mediawiki-mcp-server
Here's some document that might help:
Contributing 🤝
This server is under development. Contributions are welcome! Feel free to submit issues and pull requests.
Metadata
Release files for mediawiki-mcp-server 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mediawiki_mcp_server-0.0.1.tar.gz | 76.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mediawiki_mcp_server-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 79.8 kB
Release files / mediawiki_mcp_server-0.0.1.tar.gz
| Download URL | mediawiki_mcp_server-0.0.1.tar.gz |
|---|---|
| Size | 76.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61156e6465dfa2df7d38b47597a317ed55d5ebdabe7f950ccb3bce21e86aaf58
|
|
BLAKE2b-256 checksum How to use checksums |
0caa09f62e89aa8ca7ed012c7816088de94808af2f9b308f802efa11b6e9e7df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2025.
Transparency logRelease files / mediawiki_mcp_server-0.0.1-py3-none-any.whl
| Download URL | mediawiki_mcp_server-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e8febb0f51cb825f447e1e4e61c0452c958ada513f25c0b3559d5cde0e41b10
|
|
BLAKE2b-256 checksum How to use checksums |
e5201ac2a92a3d1dba8a924f2827ac21bfacbf4f5fb33cfd2f0c13becdc97c5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2025.
Transparency logSecurity for mediawiki-mcp-server 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mediawiki_mcp_server-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 4, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.