MediaWiki MCP Server
MCP server by ProfessionalWiki Community
MediaWiki MCP Server lets AI clients read, search, and edit pages on any MediaWiki wiki through standard MCP tools. It is for people who want their AI assistant to work with wiki content.
About
MediaWiki MCP Server is an MCP (Model Context Protocol) server from ProfessionalWiki. It enables LLM clients to interact with any MediaWiki wiki. Read tools fetch pages, revisions, category members, recent changes, and file data, and they search titles and text. The server can also render wikitext to HTML without saving it. Write tools create, update, move, delete, and protect pages, and upload files. Tools that need authentication are marked in the source.
Wikis are set up in a config.json file. The source says config is only required for private wikis or authenticated tools. Browser-based OAuth is the recommended sign-in method. Extension packs add tools for NeoWiki, Semantic MediaWiki, Bucket, Cargo, and Wikibase, and each pack works only on wikis where its extension is installed. It suits people who want AI assistants to work with MediaWiki sites, including Wikipedia and private wikis.
Written from the project's README and checked against it.
Tools it gives your assistant
get-pageFetch a wiki page.search-pageSearch wiki page titles and contents using full-text search.get-page-historyList recent revisions of a wiki page.get-category-membersList members of a category, up to 500 per call.parse-wikitextRender wikitext to HTML without saving.get-recent-changesList recent change events across the wiki with filters.create-pageCreate a new wiki page. Requires authentication.update-pageOverwrite, add to, or rewrite one passage of an existing wiki page. Requires authentication.get-file-dataFetch a file's image bytes inline as base64 for visual analysis.whoamiReport the identity the current session is authenticated as on the targeted wiki.
What you need
- A MediaWiki wiki to connect to
- npm, since the server is published as @professional-wiki/mediawiki-mcp-server
- A config.json file for private wikis or authenticated tools
- An OAuth client ID and callback port per wiki for browser-based sign-in
| Setting | Needed | What it is |
|---|---|---|
CONFIGEnvironment variable | Optional | Path to your configuration file Default: config.json |
MCP_Environment variable | Optional | Set to 'true' to allow HTTP startup when config.json has static credentials. Otherwise the server refuses to start, preventing silent shared-identity fallback for unauthenticated requests. |
MCP_Environment variable | Optional | Byte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, original text files, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out. Default: 75000 |
MCP_Environment variable | Optional | Hard cap on the base64-encoded size of a get-file-data rendition. A transport/safety backstop; callers tune actual size with the tool's width parameter. Over-cap renditions error rather than truncate. Default: 1000000 |
MCP_Environment variable | Optional | Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call. Default: debug |
MCP_Environment variable | Optional | Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb. Default: 1mb |
MCP_Environment variable | Optional | Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport. |
MCP_Environment variable | Optional | Additional allowed redirect URIs for hosted-proxy client registration: comma-separated exact URIs (which must include a host) and https prefix patterns ending in /*. Loopback, claude.ai, and verified first-party clients (ChatGPT, Cursor, VS |
MCP_Environment variable | Optional | Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted. |
MCP_Environment variable | Optional | Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows. |
MCP_Environment variable | Optional | Set to '1' to skip launching a browser during the OAuth dance and log the auth URL to stderr instead. Useful in headless environments and CI. |
MCP_Environment variable | Optional | Path to the hosted OAuth proxy's encrypted state file, which lets sign-ins survive restarts. Default: proxy-store.enc under the mediawiki-mcp config dir; /app/data/proxy-store.enc in the Docker image. |
MCP_Environment variable | Optional | Override the request-derived public URL used in the protected-resource discovery doc and WWW-Authenticate header. Set this when running behind a proxy that rewrites the request Host. |
MCP_Environment variable | Optional | Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000. Default: 10000 |
MCP_Environment variable | Optional | Type of MCP server transport Default: stdio |
MCP_Environment variable | Optional | Memory cap on the server-side fetch used by upload-file-from-url and update-file-from-url. Files larger than this are routed to the wiki's own copy-upload instead of being buffered by the server. Guards this server's memory, not the wiki's Default: 104857600 |
MCP_Environment variable | Optional | Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/<version> (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server). If you set it, give a name and an email or URL, e.g. 'ExampleBot/1.0 (bot |
PORTEnvironment variable | Optional | Port used for StreamableHTTP transport Default: 3000 |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Get the current text of the Main Page on my wiki
- Search the wiki for pages about installation and summarize them
- Show the recent changes on en.wikipedia.org from today
Good to know
- Write tools are refused on a wiki that has readOnly set to true.
- Category members, backlinks, and random pages return up to 500 per call.
- oauth-status and oauth-logout work only over stdio.
- Extension-pack tools appear only on wikis where that extension is installed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MediaWiki MCP Server
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
MediaWiki MCP Server: common questions
Does MediaWiki MCP Server work with any MediaWiki wiki?
The source describes it as an MCP server that enables clients to interact with any MediaWiki wiki. Public wikis can be used without a config file.
Can the AI assistant edit pages with this server?
Yes. Tools such as create-page, update-page, and move-page can write to the wiki. These tools require authentication and are refused on read-only wikis.
Does the server expose my wiki credentials?
The source says the mcp://wikis/{wikiKey} resource publishes a fixed list of fields, so credentials and server-side settings in the configuration file are never exposed in resource content.
Is MediaWiki MCP Server the official server?
MediaWiki MCP Server is a community project by ProfessionalWiki, not verified by a company domain.
Is MediaWiki MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is MediaWiki MCP Server safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MediaWiki MCP Server?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does MediaWiki MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
