Query, edit, and manage content across any MediaWiki wiki (Wikipedia, Mediawiki instances, etc.) via standard MCP tools. For developers building AI agents that need read/write access to wiki data.
io.github.ProfessionalWiki/mediawiki-mcp-server
MediaWiki runs locally over stdio. Test it on your machine with MCP Playground Desktop:
Local install
STDIO
No auth required
How models use it and what it is built for.
Query, edit, and manage content across any MediaWiki wiki (Wikipedia, Mediawiki instances, etc.) via standard MCP tools. For developers building AI agents that need read/write access to wiki data.
Local install — runs as a subprocess.
Configuration this server reads at startup.
Path to your configuration file
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.
Byte cap for content bodies (wikitext, rendered HTML, diffs) returned by get-page, get-pages, parse-wikitext, and compare-pages. Oversized bodies are truncated with a trailing marker.
Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.
Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.
Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.
Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.
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.
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.
Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.
Type of MCP server transport
Port used for StreamableHTTP transport
Path to your configuration file
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.
Byte cap for content bodies (wikitext, rendered HTML, diffs) returned by get-page, get-pages, parse-wikitext, and compare-pages. Oversized bodies are truncated with a trailing marker.
Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.
Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.
Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.
Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.
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.
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.
Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.
Type of MCP server transport
Port used for StreamableHTTP transport
Where to find authoritative docs and source for MediaWiki.
Paste any of these into Agent Studio after connecting MediaWiki.
Common questions about connecting and running MediaWiki.
What wikis can I connect to with this MCP server?
Any MediaWiki instance—Wikipedia, Mediawiki.org, or self-hosted wikis. You configure the target wiki URL and credentials in the CONFIG file.
How do I authenticate with a wiki that requires OAuth?
Set MCP_OAUTH_CREDENTIALS_FILE to store OAuth tokens, or use MCP_OAUTH_NO_BROWSER=1 to get an auth URL logged to stderr instead of auto-launching a browser.
Can I control how much content the server returns?
Yes. Use MCP_CONTENT_MAX_BYTES to cap the size of wikitext, HTML, and diffs returned by tools like get-page and parse-wikitext.
What happens if my AI agent makes a large edit request?
The server enforces MCP_MAX_REQUEST_BODY to limit HTTP request size. Set it to a value like '1mb' or '512kb' depending on your wiki's needs.
Can I monitor this server's performance in production?
Yes. Set MCP_METRICS=true to expose Prometheus metrics at GET /metrics on the HTTP transport for monitoring tool usage and latency.
MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 90+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.
Open Agent StudioIn your browser
MCP Agent Studio
Server has a public URL? Chat with 90+ models on it, watch every tool call, and compare models side by side.
Open MCP Agent Studio →On your computer
MCP Playground Desktop
Server runs on localhost or over stdio? The browser can’t reach it. The desktop app can, with 90+ models in Agent Studio. Download free
Judges Panel
45 judges that evaluate AI-generated code for security, cost, and quality with built-in AST.
Addozhang Nexus
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Cyanheads MCP Ts Template
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Chernistry Bernstein
Declarative agent orchestration for engineering teams