Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MediaWiki MCP Server

MCP server by ProfessionalWiki Community

MediaWiki MCP Server lets AI clients read, search, and edit pages on any MediaWiki wiki through standard MCP tools. It is for people who want their AI assistant to work with wiki content.

  • Score 84
  • 155 stars
  • 2.4k a week
  • MIT
  • Updated

About

MediaWiki MCP Server is an MCP (Model Context Protocol) server from ProfessionalWiki. It enables LLM clients to interact with any MediaWiki wiki. Read tools fetch pages, revisions, category members, recent changes, and file data, and they search titles and text. The server can also render wikitext to HTML without saving it. Write tools create, update, move, delete, and protect pages, and upload files. Tools that need authentication are marked in the source.

Wikis are set up in a config.json file. The source says config is only required for private wikis or authenticated tools. Browser-based OAuth is the recommended sign-in method. Extension packs add tools for NeoWiki, Semantic MediaWiki, Bucket, Cargo, and Wikibase, and each pack works only on wikis where its extension is installed. It suits people who want AI assistants to work with MediaWiki sites, including Wikipedia and private wikis.

Written from the project's README and checked against it.

Tools it gives your assistant

  • get-pageFetch a wiki page.
  • search-pageSearch wiki page titles and contents using full-text search.
  • get-page-historyList recent revisions of a wiki page.
  • get-category-membersList members of a category, up to 500 per call.
  • parse-wikitextRender wikitext to HTML without saving.
  • get-recent-changesList recent change events across the wiki with filters.
  • create-pageCreate a new wiki page. Requires authentication.
  • update-pageOverwrite, add to, or rewrite one passage of an existing wiki page. Requires authentication.
  • get-file-dataFetch a file's image bytes inline as base64 for visual analysis.
  • whoamiReport the identity the current session is authenticated as on the targeted wiki.

What you need

  • A MediaWiki wiki to connect to
  • npm, since the server is published as @professional-wiki/mediawiki-mcp-server
  • A config.json file for private wikis or authenticated tools
  • An OAuth client ID and callback port per wiki for browser-based sign-in
SettingNeededWhat it is
CONFIGEnvironment variableOptionalPath to your configuration file Default: config.json
MCP_ALLOW_STATIC_FALLBACKEnvironment variableOptionalSet 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_BYTESEnvironment variableOptionalByte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, original text files, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out. Default: 75000
MCP_FILE_DATA_MAX_BYTESEnvironment variableOptionalHard cap on the base64-encoded size of a get-file-data rendition. A transport/safety backstop; callers tune actual size with the tool's width parameter. Over-cap renditions error rather than truncate. Default: 1000000
MCP_LOG_LEVELEnvironment variableOptionalMinimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call. Default: debug
MCP_MAX_REQUEST_BODYEnvironment variableOptionalMaximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb. Default: 1mb
MCP_METRICSEnvironment variableOptionalSet to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.
MCP_OAUTH_ALLOWED_REDIRECTSEnvironment variableOptionalAdditional 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
MCP_OAUTH_CIMD_ALLOWED_HOSTSEnvironment variableOptionalComma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.
MCP_OAUTH_CREDENTIALS_FILEEnvironment variableOptionalOverride 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_BROWSEREnvironment variableOptionalSet 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_FILEEnvironment variableOptionalPath 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_URLEnvironment variableOptionalOverride 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_MSEnvironment variableOptionalMaximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000. Default: 10000
MCP_TRANSPORTEnvironment variableOptionalType of MCP server transport Default: stdio
MCP_UPLOAD_MAX_BYTESEnvironment variableOptionalMemory 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 Default: 104857600
MCP_USER_AGENTEnvironment variableOptionalReplaces 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
PORTEnvironment variableOptionalPort used for StreamableHTTP transport Default: 3000

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Get the current text of the Main Page on my wiki
  • Search the wiki for pages about installation and summarize them
  • Show the recent changes on en.wikipedia.org from today

Good to know

  • Write tools are refused on a wiki that has readOnly set to true.
  • Category members, backlinks, and random pages return up to 500 per call.
  • oauth-status and oauth-logout work only over stdio.
  • Extension-pack tools appear only on wikis where that extension is installed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MediaWiki MCP Server

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

MediaWiki MCP Server: common questions

Does MediaWiki MCP Server work with any MediaWiki wiki?

The source describes it as an MCP server that enables clients to interact with any MediaWiki wiki. Public wikis can be used without a config file.

Can the AI assistant edit pages with this server?

Yes. Tools such as create-page, update-page, and move-page can write to the wiki. These tools require authentication and are refused on read-only wikis.

Does the server expose my wiki credentials?

The source says the mcp://wikis/{wikiKey} resource publishes a fixed list of fields, so credentials and server-side settings in the configuration file are never exposed in resource content.

Is MediaWiki MCP Server the official server?

MediaWiki MCP Server is a community project by ProfessionalWiki, not verified by a company domain.

Is MediaWiki MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MediaWiki MCP Server safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MediaWiki MCP Server?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does MediaWiki MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.