← Back to directory
M

MediaWiki MCP Server

Community
Connect AI clients to any MediaWiki through MCP.
Category
Other #16 of 230
Stars
★ 137 Very popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js · Docker
Credentials
Optional API key
License
MIT
Last commit
Tools
46
69FMRS · C

The source describes an MIT-licensed MediaWiki MCP Server, version 0.15.0, with stdio and StreamableHTTP transports, extensive MediaWiki read/write tools, and multiple extension packs. It suits AI workflows with explicitly configured wikis, authentication, and permission boundaries; it should not be treated as an official MediaWiki server.

Strongest · Documentation 17/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
14/20
Maintenance
13/20
Documentation
17/20
Setup experience
15/20
Why each score
Reliability 10/20
The manifest and README are broadly consistent, describing stdio/HTTP transports, request and response size limits, authentication, and conditional registration of extension tools, so the initialization and tool-list path appears plausible. Points are deducted because the supplied material contains no source code, CI workflows, commit history, or committed tests verifying MCP initialization, tool behavior, dependencies, or failure paths; under the static calibration this score cannot exceed 12.
Security and permissions 14/20
The evidence indicates that credentials are not exposed in resource content, OAuth token storage is supported, write tools are permission-gated, uploads are disabled by default, and SSRF, Host/Origin, and request-size protections are documented. Points are deducted because destructive or consequential tools such as delete, move, overwrite, and upload are not shown to require separate confirmation; HTTP mode forwards Bearer tokens and depends on correct reverse-proxy security, and source-level data-flow and permission enforcement cannot be verified. Full marks are therefore not justified.
Maintenance 13/20
The project declares an MIT license and provides a versioned 0.15.0 package, a GitHub repository, a vulnerability-reporting path, SECURITY.md, release documentation, and an identifiable organization as repository owner. Points are deducted because the supplied material provides no commit history, release dates, dependency-update evidence, issue-response record, or sustained-maintenance evidence; stars and open issues are discovery signals only and add no points.
Documentation 17/20
The README supplies a substantial tool inventory, read/write permissions, extension conditions, resource format, configuration example, installation paths for multiple clients, OAuth options, environment variables, deployment and security guidance, upload and SSRF limitations, and links to configuration, deployment, operations, and release documentation. Points are deducted because detailed parameter references, troubleshooting, cost implications, and runtime evidence largely depend on material not supplied, and the README and manifest alone cannot prove complete agreement with implementation.
Setup experience 15/20
The documentation covers npx, mcpb, plugins, and several mainstream clients, with standard configuration examples, a default target, and declared stdio and HTTP defaults. Points are deducted because Node/npx, configuration files, and additional authentication setup are needed for private wikis, while HTTP deployment depends on correctly configured proxy and security variables; no verifiable installation or end-to-end execution evidence is supplied, so the static-calibration ceiling of 15 is applied.

Static review · not runListed 2026-07-30

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkChanges third-party account data

Best for

  • Teams that need AI access to one or more MediaWiki wikis.
  • Users combining wiki retrieval with controlled content maintenance.
  • Users of Claude, Codex, VS Code, Cursor, or other listed MCP clients.

Not for

  • Knowledge bases or content systems that do not use MediaWiki.
  • Workflows requiring writes without configuration or permissions.
  • Users expecting client or protocol compatibility that is not evidenced by the source.

Required permissions

  • Read operations depend on the wiki being public or configured and reachable.
  • Write tools require the corresponding MediaWiki permissions; write tools are hidden from tools/list when the default wiki is read-only.
  • File uploads require allowed upload directories to be configured.
  • Cargo queries may require the runcargoqueries user right.
  • Private wikis and authenticated operations require OAuth, tokens, bot passwords, or another configured authentication method.

Risks and side effects

  • In HTTP mode, Authorization Bearer tokens are forwarded to MediaWiki; authentication should be handled by a reverse proxy with TLS termination outside an untrusted network.
  • Before exposing HTTP to others, configure allowed hosts and origins to reduce DNS-rebinding and cross-origin risks.
  • Write, delete, move, and upload tools can change wiki content or files; use least-privilege credentials.
  • Outbound URL fetching and uploads are subject to SSRF and size limits; internal destinations require MCP_TRUSTED_HOSTS.
  • Tool responses have content, file-data, request-body, and upload size caps.

Setup

Before you start

Runtime:Node.js · Docker

Other optional settings (17)
CONFIG optional Path to your config. defining wiki connections and auth; optional for public wikis (defaults to English Wikipedia).
MCP_TRANSPORT optional Transport type, stdio or http; defaults to stdio.
MCP_LOG_LEVEL optional Minimum severity for logger output, from debug to silent; defaults to debug.
MCP_CONTENT_MAX_BYTES optional Byte cap for content returned by get-page, get-pages, parse-wikitext, and compare-pages; defaults to 50000.
MCP_FILE_DATA_MAX_BYTES optional Hard cap on base64 size of a get-file-data response; defaults to 1000000.
MCP_UPLOAD_MAX_BYTES optional Memory cap on server-side fetch for upload-file-from-url/update-file-from-url; larger files go through the wiki's copy-upload; defaults to 104857600.
MCP_OAUTH_CREDENTIALS_FILE optional Overrides the OAuth credentials store path; defaults to ~/.config/mediawiki-mcp/credentials. on Linux/macOS or %APPDATA% on Windows.
MCP_OAUTH_NO_BROWSER optional Set to 1 to skip launching a browser during OAuth and log the auth URL to stderr; useful headless.
MCP_ALLOW_STATIC_FALLBACK optional Set to true to allow HTTP startup when config. has static credentials.
MCP_MAX_REQUEST_BODY optional Max HTTP request body size on the StreamableHTTP transport, e.g. 1mb; defaults to 1mb.
MCP_METRICS optional Set to true to expose Prometheus metrics at GET /metrics on HTTP transport.
MCP_OAUTH_ALLOWED_REDIRECTS optional Additional allowed redirect URIs for hosted-proxy client registration, comma-separated.
MCP_OAUTH_CIMD_ALLOWED_HOSTS optional Comma-separated additional client_id document hosts trusted for CIMD.
MCP_OAUTH_PROXY_STORE_FILE optional Path to the hosted OAuth proxy's encrypted state file so sign-ins survive restarts.
MCP_PUBLIC_URL optional Override the request-derived public URL when running behind a Host-rewriting proxy.
MCP_SHUTDOWN_GRACE_MS optional Max milliseconds to drain in-flight /mcp calls on SIGTERM/SIGINT; defaults to 10000.
PORT optional Port for the StreamableHTTP transport; defaults to 3000.

Launch the npm package with npx: npx -y @professional-wiki/mediawiki-mcp-server@latest. Set CONFIG to a configuration file path; without it, the server targets English Wikipedia. You can also install the MediaWiki-MCP-Server.mcpb package or add the standard MCP configuration for a supported client. For HTTP mode, set MCP_TRANSPORT to http and optionally configure PORT.

.mcp.json
{"mcpServers":{"mediawiki-mcp-server":{"command":"npx","args":["-y","@professional-wiki/mediawiki-mcp-server@latest"],"env":{"CONFIG":"path/to/config.json"}}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "mediawiki-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@professional-wiki/mediawiki-mcp-server@latest"
      ],
      "env": {
        "CONFIG": "path/to/config.json"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

Terminal
claude mcp add mediawiki-mcp-server -e CONFIG=path/to/config.json -- npx -y @professional-wiki/mediawiki-mcp-server@latest

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After installing, tools like get-page and search-page should appear in the client's tool list; ask the AI to call get-site-info for the default wiki — a response with the sitename and MediaWiki version confirms the connection.

Troubleshooting

  1. Verify that CONFIG points to valid JSON and check the wiki server, articlepath, and scriptpath fields.
  2. Without CONFIG, confirm that English Wikipedia is the intended target.
  3. For authentication failures, check OAuth settings, tokens or bot passwords, and required MediaWiki rights.
  4. For HTTP issues, check MCP_TRANSPORT, PORT, reverse-proxy public URL, allowed hosts, and allowed origins.
  5. For upload failures, check uploadDirs or MCP_UPLOAD_DIRS, size limits, and wiki upload permissions.
  6. If extension tools are missing, verify that the target wiki has the relevant extension installed and check Cargo's runcargoqueries permission.

Things to try

Once connected, you can ask your AI assistant things like:

  • Search English Wikipedia for pages about the Model Context Protocol and summarize the first result
  • Show the last 50 revisions of the Wikipedia:Village pump page
  • Diff two versions of the Main Page and explain what changed
  • Get site info for en.wikipedia.org, including the MediaWiki version and installed extensions

Tools 46

compare-pages read-only
Compare two versions of a wiki page by revision, title, or supplied wikitext.
get-category-members read-only
List category members, up to 500 per call with pagination.
get-file read-only
Fetch a file page.
get-file-data read-only
Fetch image bytes inline as base64 for visual analysis, with scaling controlled by width.
get-links-here read-only
List pages that link to, embed, or display a target page, including redirect relationships.
get-page read-only
Fetch a wiki page.
get-page-history read-only
List recent revisions of a wiki page.
get-pages read-only
Fetch multiple wiki pages in one call, up to 50.
Show 38 more tools
get-recent-changes read-only
List recent wiki changes with filters for time, namespace, user, tag, type, and hide flags.
get-revision read-only
Fetch a specific page revision.
get-site-info read-only
Get key wiki settings including MediaWiki version, language, namespaces, extensions, license, and optional statistics.
list-wikis read-only
List configured wikis, reachability, read-only and default status, available extension tools, and OAuth authorization servers.
parse-wikitext read-only
Render wikitext to HTML without saving and return warnings, links, templates, and external URLs.
search-page read-only
Search wiki page titles and contents.
search-page-by-prefix read-only
Search page titles by prefix.
whoami read-only
Report the authenticated identity on the target wiki, including username, anonymous status, and groups, with optional user rights.
create-page writes
Create a new wiki page; requires permission to create, edit, and move pages.
delete-page destructive
Delete a wiki page; requires permission to delete pages, revisions, and log entries.
move-page writes
Move or rename a wiki page; requires permission to create, edit, and move pages.
undelete-page writes
Undelete a wiki page; requires permission to delete pages, revisions, and log entries.
update-file writes
Upload a new revision of an existing file from local disk; requires permission to upload, replace, and move files.
update-file-from-url writes
Upload a new revision of an existing file from a URL; requires permission to upload, replace, and move files.
update-page writes
Update an existing wiki page; requires permission to edit existing pages.
upload-file writes
Upload a file from local disk; requires permission to upload new files.
upload-file-from-url writes
Upload a file from a URL; requires permission to upload, replace, and move files.
add-wiki writes
Add a wiki as an MCP resource from its URL; requires wiki management to be enabled.
remove-wiki writes
Remove a wiki resource; requires wiki management to be enabled and at least two configured wikis.
oauth-logout writes
Remove stored OAuth tokens; stdio only.
oauth-status read-only
List stored OAuth token scopes and expiry without exposing token values; stdio only.
neowiki-list-schemas read-only
List NeoWiki schemas and their property counts.
neowiki-get-schema read-only
Get a NeoWiki schema's property definitions, relations, and select options.
neowiki-cypher-query read-only
Run a read-only Cypher query against the NeoWiki knowledge graph.
neowiki-search-subjects read-only
Find subject IDs by label within a schema.
neowiki-get-subject read-only
Fetch one subject's structured data by ID.
neowiki-get-page-subjects read-only
List subjects attached to a wiki page.
neowiki-create-subject writes
Create a subject on a page; requires the edit right.
neowiki-update-subject writes
Replace a subject's label and statements; requires the edit right.
neowiki-delete-subject destructive
Delete a subject by ID; requires the edit right.
neowiki-set-main-subject writes
Set or clear a page's main subject; requires the edit right.
neowiki-validate-subject read-only
Dry-run validation of a proposed subject and return violations.
smw-list-properties read-only
List Semantic MediaWiki properties with copyable templates for smw-query.
smw-query read-only
Run a Semantic MediaWiki #ask query.
bucket-query read-only
Run a Bucket Lua query.
cargo-list-tables read-only
List Cargo tables defined on the wiki.
cargo-describe-table read-only
List a Cargo table's fields, types, and list flags.
cargo-query read-only
Run a Cargo SQL-style query.

Use cases

Query and retrieve MediaWiki pages, revisions, category members, and recent changes.
Compare page versions and parse wikitext.
Create, edit, move, delete pages, and manage files when authorized.
Let AI query Semantic MediaWiki, Cargo, Bucket, or NeoWiki data.

Supported clients

Claude Code
Codex
Claude Desktop
VS Code
Cursor
Antigravity
OpenCode
Devin Desktop
Zed
LM Studio

Listed from the project's documentation, not tested by this site.

Overview

MediaWiki MCP Server is an MCP server maintained by ProfessionalWiki that enables large language model clients to interact with any MediaWiki wiki through standard tools. It supports page reading, search, history and diffs, wikitext parsing, and authenticated writes such as creating, editing, moving, deleting pages, and uploading files. It also provides multi-wiki resources, OAuth tools, and extension packs for NeoWiki, Semantic MediaWiki, Bucket, and Cargo. It targets English Wikipedia by default; private wikis and authenticated operations require configuration and appropriate credentials.

Similar servers

BioMCP 75 · B

One binary. One grammar. Evidence from the biomedical sources you already trust.

★ 659 · Tools 11 Compare with this →

Source revision 73c402286cb9 Data synced 2026-10-19 Read the FMRS scoring method