- Home
- MCP servers
- MediaWiki
MediaWiki
- python
1
GitHub Stars
python
Language
5 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"entanglr-mediawiki-api-mcp": {
"command": "uv",
"args": [
"run",
"mediawiki-api-mcp"
],
"env": {
"MEDIAWIKI_API_URL": "http://mediawiki.test/api.php",
"MEDIAWIKI_API_BOT_PASSWORD": "YourBotPassword",
"MEDIAWIKI_API_BOT_USERNAME": "YourUserName@YourBotName",
"MEDIAWIKI_API_BOT_USER_AGENT": "MediaWiki-MCP-Bot/1.0 (your.email@mediawiki.test)"
}
}
}
}This MediaWiki MCP Server lets you connect a bot user to a MediaWiki installation via the MediaWiki API, enabling LLM-driven editing, searching, parsing, and page management through a defined set of tools.
How to use
You interact with the server through an MCP client to perform common MediaWiki actions. Use the available wiki_ prefixed tools to edit pages, retrieve content, parse wikitext, compare pages, and search. The server handles authentication, CSRF tokens, and session state, so you can focus on your content tasks and workflows.
How to install
Prerequisites: you need the UV toolchain for your environment and a configured MediaWiki instance you want to manage.
Clone the project and switch to the main branch, then install dependencies with UV.
uv install
# Optional: run the server after installation
uv run mediawiki-api-mcp
# Or start directly with Python if you prefer
python -m mediawiki_api_mcp.server
Configuration and run
Configure the MCP server to connect to your MediaWiki installation by providing the API URL, bot username, bot password, and a user agent string. You can run the server locally using UV as shown above.
Example local start command (as provided for client configuration):
uv run mediawiki-api-mcp
# Or, if you prefer the explicit Python module approach
python -m mediawiki_api_mcp.server
Available tools
wiki_page_edit
Edit or create MediaWiki pages with comprehensive editing options
wiki_page_get
Retrieve page information and content
wiki_page_parse
Parse page content with wikitext processing, HTML generation, and metadata extraction
wiki_page_compare
Compare two pages, revisions, or text content to show differences
wiki_page_move
Move pages with support for talk pages, subpages, and redirects
wiki_page_delete
Delete pages with support for talk pages, watchlist management, and logging
wiki_page_undelete
Undelete (restore) deleted MediaWiki pages with restoration options
wiki_search
Search for pages using MediaWiki's search API with advanced filtering
wiki_opensearch
OpenSearch-based quick suggestions and autocomplete
wiki_meta_siteinfo
Get overall site information including namespaces, statistics, and extensions