professionalwiki avatar

MediaWiki MCP Server

professionalwiki/mediawiki-mcp-server

Connects Claude to any MediaWiki instance through the Model Context Protocol, exposing read and write operations on pages, files, categories, and revision history. You get tools for diffing revisions, searching content, parsing wikitext, and managing pages with proper permission scopes. Supports OAuth2 for write operations and handles multiple wikis in a single session. Extension-aware tooling lights up automatically when it detects Cargo, Semantic MediaWiki, or Bucket on the target wiki. Particularly useful if you're building workflows that need programmatic access to Wikipedia, internal company wikis, or any MediaWiki deployment without writing custom API wrappers.

GitHub stars
147
tools
7
transport
STDIO
env vars
18
last updated
Nov 5, 2026

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

get-pageReturns the standard page object for a wiki page, optionally including page source or rendered HTML, and including the license and information about the latest revision.2 params

Returns the standard page object for a wiki page, optionally including page source or rendered HTML, and including the license and information about the latest revision.

Parameters* required
contentstring
Format of the page content to retrieveone of noContent · withSource · withHtmldefault: noContent
titlestring
Wiki page title
get-page-historyReturns information about the latest revisions to a wiki page, in segments of 20 revisions, starting with the latest revision. The response includes API routes for the next oldest, next newest, and latest revision segments.4 params

Returns information about the latest revisions to a wiki page, in segments of 20 revisions, starting with the latest revision. The response includes API routes for the next oldest, next newest, and latest revision segments.

Parameters* required
filterstring
Filter that returns only revisions with certain tags. Only support one filter per request.
newerThannumber
The ID of the newest revision to return
olderThannumber
The ID of the oldest revision to return
titlestring
Wiki page title
search-pageSearch wiki page titles and contents for the provided search terms, and returns matching pages.2 params

Search wiki page titles and contents for the provided search terms, and returns matching pages.

Parameters* required
limitnumber
Maximum number of search results to return (1-100)
querystring
Search terms
set-wikiSet the wiki to use for the current session.1 params

Set the wiki to use for the current session.

Parameters* required
wikiUrlstring
Any URL from the target wiki (e.g. https://en.wikipedia.org/wiki/Main_Page).
update-pageUpdates a wiki page. Replaces the existing content of a page with the provided content4 params

Updates a wiki page. Replaces the existing content of a page with the provided content

Parameters* required
commentstring
Summary of the edit
latestIdnumber
Identifier for the revision used as the base for the new source
sourcestring
Page content in the same content model of the existing page
titlestring
Wiki page title
get-fileReturns information about a file, including links to download the file in thumbnail, preview, and original formats.1 params

Returns information about a file, including links to download the file in thumbnail, preview, and original formats.

Parameters* required
titlestring
File title
create-pageCreates a wiki page with the provided content.4 params

Creates a wiki page with the provided content.

Parameters* required
commentstring
Reason for creating the page
contentModelstring
Type of content on the page. Defaults to "wikitext"
sourcestring
Page content in the format specified by the contentModel parameter
titlestring
Wiki page title

Sponsors

Configuration

CONFIGdefault: config.json

Path to your configuration file

MCP_ALLOW_STATIC_FALLBACK

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_CONTENT_MAX_BYTESdefault: 75000

Byte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out.

MCP_FILE_DATA_MAX_BYTESdefault: 1000000

Hard cap on the base64-encoded size of a get-file-data response. A transport/safety backstop; callers tune actual size with the tool's width parameter. Over-cap responses error rather than truncate.

MCP_LOG_LEVELdefault: debug

Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.

MCP_MAX_REQUEST_BODYdefault: 1mb

Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.

MCP_METRICS

Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.

MCP_OAUTH_ALLOWED_REDIRECTS

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 Code) are always allowed; unset means n

MCP_OAUTH_CIMD_ALLOWED_HOSTS

Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.

MCP_OAUTH_CREDENTIALS_FILE

Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.

MCP_OAUTH_NO_BROWSER

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_OAUTH_PROXY_STORE_FILE

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_PUBLIC_URL

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_SHUTDOWN_GRACE_MSdefault: 10000

Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.

MCP_TRANSPORTdefault: stdio

Type of MCP server transport

MCP_UPLOAD_MAX_BYTESdefault: 104857600

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 $wgMaxUploadSize.

MCP_USER_AGENT

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@example.org)'.

PORTdefault: 3000

Port used for StreamableHTTP transport

Readme

MediaWiki MCP Server

NPM Version MIT licensed

An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.

Features

Tools

Every tool that operates on a wiki accepts an optional wiki argument naming the wiki to act on (the wiki-management and OAuth tools do not) — pass a wiki key (e.g. en.wikipedia.org) or the full mcp://wikis/{wikiKey} URI. Omit it to use the configured default wiki (see Configuration). Each tool response reports the wiki the call ran against. Each successful response carries its payload as prose in content and as JSON in structuredContent; see response channels.

Page reads

View the full README on GitHub

Details

Repository
github.com/professionalwiki/mediawiki-mcp-server
Category
Documents & Knowledge
Package
@professional-wiki/mediawiki-mcp-server
Transport
STDIO
Registry
MCP registry, active

Related Documents & Knowledge MCP servers

View all
1infranodus avatarInfranodus Mcp Server Infranodusinfranodus/mcp-server-infranodusMap text into knowledge graphs to create a structured representation of conceptual relations and t…91stars
2wandercom avatarKindexwandercom/kindexPersistent knowledge graph and MCP server for AI workflows with git-tracked project context.49stars
3phasespace-labs avatarPalinodephasespace-labs/palinodeInspectable, correctable project memory in git-versioned Markdown for AI agents.46stars
4paulhkang94 avatarMarkViewpaulhkang94/markviewNative macOS markdown preview with MCP server for Claude Code. Swift/SwiftUI, no Electron.38stars
5simplemindedbot avatarMnemexsimplemindedbot/mnemexTemporal memory for AI with decay and reinforcement. Two-layer storage (JSONL + Markdown).36stars
6etiennechollet avatarontomicsetiennechollet/ontomicsIndex your codebase's domain knowledge. 20x fewer tokens, 10x faster.34stars