mediawiki-api-mcp
If you are the rightful owner of mediawiki-api-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that enables interaction with MediaWiki installations via the MediaWiki API as a bot user.
The MediaWiki API MCP Server is designed to facilitate seamless interaction between Language Model Machines (LLMs) and MediaWiki installations. By leveraging the MediaWiki API, this server allows bot users to perform a variety of operations on MediaWiki pages, such as editing, retrieving, moving, deleting, and undeleting pages. The server is built using the FastMCP pattern, ensuring efficient and non-blocking operations through the use of AsyncIO. It is equipped with a robust architecture that separates concerns into distinct layers, including client, tools, handlers, and server layers. This modular design enhances maintainability and scalability, making it suitable for both small and large-scale MediaWiki installations. The server also emphasizes security by requiring bot credentials for editing operations and managing CSRF tokens automatically. Comprehensive error handling is implemented to address configuration, authentication, API, and tool errors, ensuring reliable and user-friendly interactions.
Features
- Comprehensive MediaWiki page management including edit, move, delete, and undelete operations.
- Advanced search capabilities using MediaWiki's search API and OpenSearch protocol.
- Robust error handling and security measures, including CSRF token management and input validation.
- Modular architecture with distinct layers for client, tools, handlers, and server operations.
- Environment-based configuration for seamless integration with MediaWiki installations.
Tools
wiki_page_edit
Edit or create MediaWiki pages with comprehensive editing options
wiki_page_get
Retrieve page information and content
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 comprehensive restoration options
wiki_search
Search for pages using MediaWiki's search API with advanced filtering
wiki_opensearch
Search using OpenSearch protocol for quick suggestions and autocomplete
wiki_meta_siteinfo
Get overall site information including general info, namespaces, statistics, extensions, and more