MCP ServerSTDIOOfficialv0.9.0

MediaWiki MCP Server

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:

Hosted URL

Local install

Transport

STDIO

Auth

No auth required

What the MediaWiki MCP server does

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.

Connect to MediaWiki

Local install — runs as a subprocess.

https://github.com/ProfessionalWiki/MediaWiki-MCP-Server/releases/download/v0.9.0/MediaWiki-MCP-Server.mcpb

Environment variables

Configuration this server reads at startup.

  • CONFIG

    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_BYTES

    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.

  • MCP_LOG_LEVEL

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

  • MCP_MAX_REQUEST_BODY

    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_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_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_MS

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

  • MCP_TRANSPORT

    Type of MCP server transport

  • PORT

    Port used for StreamableHTTP transport

  • CONFIG

    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_BYTES

    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.

  • MCP_LOG_LEVEL

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

  • MCP_MAX_REQUEST_BODY

    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_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_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_MS

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

  • MCP_TRANSPORT

    Type of MCP server transport

  • PORT

    Port used for StreamableHTTP transport

Resources

Where to find authoritative docs and source for MediaWiki.

Example prompts for MediaWiki

Paste any of these into Agent Studio after connecting MediaWiki.

  • Fetch the current wikitext for the Main Page on en.wikipedia.org
  • Search for all pages containing 'climate change' and return their titles
  • Edit the Sandbox page to add a new section with test content
  • Parse wikitext to HTML and show me the rendered output for a template

MediaWiki MCP server — FAQ

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.

Skip the local setup — run MCP in your browser

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 Studio

In 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

Related servers

More on MCP Playground