MediaWiki MCP Server
JSON →Enables LLM clients to interact with any MediaWiki wiki using the Model Context Protocol.
Install
npx @professional-wiki/mediawiki-mcp-server`. Tools · 30
- compare-pages Diff two versions of a wiki page by revision, title, or supplied wikitext.
- get-category-members List members of a category (up to 500 per call, paginated via continueFrom).
- get-file Fetch a file page.
- get-page Fetch a wiki page.
- get-page-history List recent revisions of a wiki page.
- get-pages Fetch multiple wiki pages in one call (up to 50).
- get-recent-changes List recent change events across the wiki, filterable by timestamp, namespace, user, tag, type, and hide flags (up to 50 per call, paginated via continue).
- get-revision Fetch a specific revision of a page.
- list-wikis List every configured wiki — its key, sitename, server, whether it is read-only or the default, whether it is reachable, which extension-gated tools work on it, and, for an OAuth-configured wiki, its authorization server.
- parse-wikitext Render wikitext to HTML without saving. Returns parse warnings, wikilinks, templates, and external URLs.
- search-page Search wiki page titles and contents.
- search-page-by-prefix Search page titles by prefix.
- create-page Create a new wiki page.
- delete-page Delete a wiki page.
- undelete-page Undelete a wiki page.
- update-file Upload a new revision of an existing file from local disk.
- update-file-from-url Upload a new revision of an existing file from a URL.
- update-page Update an existing wiki page.
- upload-file Upload a file to the wiki from local disk.
- upload-file-from-url Upload a file to the wiki from a URL.
- add-wiki Add a wiki as an MCP resource from its URL. Disabled when allowWikiManagement is false.
- remove-wiki Remove a wiki resource. Disabled when allowWikiManagement is false or fewer than two wikis are configured.
- oauth-logout Remove stored OAuth tokens. Stdio only.
- oauth-status List stored OAuth tokens with scopes and expiry (no token values). Stdio only.
- bucket-query Run a Bucket extension Lua query. Enabled only when the wiki has Bucket installed.
- cargo-describe-table List the fields of a Cargo extension table with their types and list-flags. Enabled only when the wiki has Cargo installed.
- cargo-list-tables List Cargo tables defined on the wiki. Enabled only when the wiki has Cargo installed.
- cargo-query Run a Cargo extension SQL-style query. Enabled only when the wiki has Cargo installed.
- smw-list-properties List Semantic MediaWiki properties with copy-paste templates for smw-query. Enabled only when the wiki has SMW installed.
- smw-query Run a Semantic MediaWiki #ask query. Enabled only when the wiki has SMW installed.
Environment variables
MCP_PUBLIC_URL
★ 94 GitHub stars