← Back to directory
M

MediaWiki MCP Server

Community
Connect AI clients to any MediaWiki through MCP.
GitHub source repository ↗
★ 114 Stars Category · Other Very popular
69FMRS · C
Reliability
10/20
Security and permissions
14/20
Maintenance
13/20
Documentation
17/20
Setup experience
15/20

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.

Read the FMRS scoring method →

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.

Tools

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

Setup

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.

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

Fit and risk

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.

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.

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 CodeFull support
CodexFull support
Claude DesktopFull support
VS CodeFull support
CursorFull support
AntigravityFull support
OpenCodeFull support
Devin DesktopFull support
ZedFull support
LM StudioFull support