MediaWiki MCP Server
io.github.ProfessionalWiki/mediawiki-mcp-server
v0.21.0Updated Nov 5, 2026stdio · MCPBstdio · npm
MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add mediawiki-mcp-server -e CONFIG=config.json -e MCP_CONTENT_MAX_BYTES=75000 -e MCP_FILE_DATA_MAX_BYTES=1000000 -e MCP_LOG_LEVEL=debug -e MCP_MAX_REQUEST_BODY=1mb -e MCP_SHUTDOWN_GRACE_MS=10000 -e MCP_TRANSPORT=stdio -e MCP_UPLOAD_MAX_BYTES=104857600 -e PORT=3000 -- npx -y @professional-wiki/[email protected]Configuration
18 settings.
CONFIGEnv var· optionalPath to your configuration fileDefault:config.jsonMCP_ALLOW_STATIC_FALLBACKEnv var· optionalSet 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_BYTESEnv var· optionalByte 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.Default:75000MCP_FILE_DATA_MAX_BYTESEnv var· optionalHard 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.Default:1000000MCP_LOG_LEVELEnv var· optionalMinimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.Default:debugMCP_MAX_REQUEST_BODYEnv var· optionalMaximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.Default:1mb
Show 12 moreShow fewer
MCP_METRICSEnv var· optionalSet to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.MCP_OAUTH_ALLOWED_REDIRECTSEnv var· optionalAdditional 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 no additional clients.MCP_OAUTH_CIMD_ALLOWED_HOSTSEnv var· optionalComma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.MCP_OAUTH_CREDENTIALS_FILEEnv var· optionalOverride 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_BROWSEREnv var· optionalSet 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_FILEEnv var· optionalPath 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_URLEnv var· optionalOverride 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_MSEnv var· optionalMaximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.Default:10000MCP_TRANSPORTEnv var· optionalType of MCP server transportDefault:stdioMCP_UPLOAD_MAX_BYTESEnv var· optionalMemory 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.Default:104857600MCP_USER_AGENTEnv var· optionalReplaces 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 ([email protected])'.PORTEnv var· optionalPort used for StreamableHTTP transportDefault:3000
Links
Listed in the official MCP Registry since Nov 5, 2026. Mirrored daily; last checked Nov 26, 2026.