The MediaWiki MCP Server enables Large Language Model (LLM) clients to interact with any MediaWiki wiki through various API functions:
- Read wiki pages: Retrieve page content with options for source/rendered HTML, license, and revision info
- View page history: Access revision history in segments with filtering options
- Search wiki content: Find specific terms in page titles and content with configurable result limits
- Get file information: Access details and download links for files in various formats
- Create new pages: Generate wiki pages with specified content and comments (requires OAuth 2.0)
- Update existing pages: Replace content in existing pages (requires OAuth 2.0)
- Set target wiki: Define which wiki instance to interact with in the current session
Enables interaction with any MediaWiki wiki, including Wikipedia, providing tools to create and update pages, retrieve file information, search page content, access page history, and set the wiki to use for the current session.
MediaWiki MCP Server
An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.
Feature
Tools
🔐 Requires OAuth 2.0 token in configuration: Obtained via
Special:OAuthConsumerRegistration/propose/oauth2
provided by the OAuth extension. Select "This consumer is for use only by UserName"
Name | Description |
---|---|
create-page 🔐 | Create a new wiki page. |
get-file | Returns the standard file object for a file page. |
get-page | Returns the standard page object for a wiki page. |
get-page-history | Returns information about the latest revisions to a wiki page. |
search-page | Search wiki page titles and contents for the provided search terms. |
set-wiki | Set the wiki to use for the current session. |
update-page 🔐 | Update an existing wiki page. |
Environment variables
Name | Description | Default |
---|---|---|
CONFIG | Path to your configuration file | config.json |
MCP_TRANSPORT | Type of MCP server transport (stdio or http ) | stdio |
PORT | Port used for StreamableHTTP transport | 3000 |
Installation
To install MediaWiki MCP Server for Claude Desktop automatically via Smithery:
Follow the guide, use following configuration:
Go to Cursor Settings
-> MCP
-> Add new MCP Server
. Name to your liking, use command
type with the command npx @professional-wiki/mediawiki-mcp-server
. You can also verify config or add command like arguments via clicking Edit
.
Follow the guide, use following configuration:
Follow the Claude Code MCP docs.
Run the below command, optionally with -e
flags to specify environment variables.
You should end up with something like the below in your .claude.json
config:
Development
🐋 Develop with Docker: Replace the
npm run
part of the command withmake
(e.g.make dev
).
MCP Inspector
To start the development server and the MCP Inspector:
The command will build and start the MCP Proxy server locally at 6277
and the MCP Inspector client UI at http://localhost:6274
.
Test with MCP clients
To enable your MCP client to use this MediaWiki MCP Server for local development:
- Register the MCP server in your client config (e.g.
claude_desktop_config.json
for Claude Desktop). An example config is provided atmcp.json
. - Run the watch command so that the source will be compiled whenever there is a change:
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for bugs, feature requests, or suggestions.
License
This project is licensed under the GPL 2.0 License. See the LICENSE file for details.
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.
Model Context Protocol (MCP) server for MediaWiki
Related MCP Servers
- -securityFlicense-qualityLongBridge Securities Model Context Protocol (MCP) ServerLast updated -44TypeScript
- Python
- AsecurityAlicenseAqualityAlchemy MCP ServerLast updated -94152TypeScriptMIT License
- -securityAlicense-qualityMarineTraffic MCP ServerLast updated -1TypeScriptMIT License