MediaWiki MCP Server
MediaWiki MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools. It has 136 GitHub stars, is released under the MIT license and runs locally with npx -y @professional-wiki/mediawiki-mcp-server.
github.com/ProfessionalWiki/MediaWiki-MCP-Server (opens in a new tab)
- Needs API key
- Other
- MIT
- Actively maintained
Install MediaWiki MCP Server
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"mediawiki-mcp-server": {
"command": "npx",
"args": [
"-y",
"@professional-wiki/mediawiki-mcp-server"
],
"env": {
"MCP_OAUTH_CREDENTIALS_FILE": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env MCP_OAUTH_CREDENTIALS_FILE=your-value --transport stdio mediawiki-mcp-server -- npx -y @professional-wiki/mediawiki-mcp-serverCursor
{
"mcpServers": {
"mediawiki-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@professional-wiki/mediawiki-mcp-server"
],
"env": {
"MCP_OAUTH_CREDENTIALS_FILE": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "mcp_oauth_credentials_file",
"description": "MCP_OAUTH_CREDENTIALS_FILE",
"password": true
}
],
"servers": {
"mediawiki-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@professional-wiki/mediawiki-mcp-server"
],
"env": {
"MCP_OAUTH_CREDENTIALS_FILE": "${input:mcp_oauth_credentials_file}"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
CONFIG | No | Path to your configuration file |
MCP_ALLOW_STATIC_FALLBACK | No | Set to 'true' to allow HTTP startup when config.json has static credentials. Otherwise the server refuses to start, preventing silent shared-identity fallback… |
MCP_CONTENT_MAX_BYTES | No | Byte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings). An oversized response is… |
MCP_FILE_DATA_MAX_BYTES | No | Hard cap on the base64-encoded size of a get-file-data response. A transport/safety backstop; callers tune actual size with the tool's width parameter… |
MCP_LOG_LEVEL | No | Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call. |
MCP_MAX_REQUEST_BODY | No | Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb. |
MCP_METRICS | No | Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport. |
MCP_OAUTH_ALLOWED_REDIRECTS | No | Additional allowed redirect URIs for hosted-proxy client registration: comma-separated exact URIs (which must include a host) and https prefix patterns ending… |
MCP_OAUTH_CIMD_ALLOWED_HOSTS | No | Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted. |
MCP_OAUTH_CREDENTIALS_FILEsecret | No | Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json… |
MCP_OAUTH_NO_BROWSER | No | 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_OAUTH_PROXY_STORE_FILE | No | Path 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… |
MCP_PUBLIC_URL | No | 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… |
MCP_SHUTDOWN_GRACE_MS | No | Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000. |
MCP_TRANSPORT | No | Type of MCP server transport |
MCP_UPLOAD_MAX_BYTES | No | Memory 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… |
MCP_USER_AGENT | No | Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/ (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server)… |
PORT | No | Port used for StreamableHTTP transport |
Tools (40)
Parsed from the Tools section of the README; check the repository for the current list.
compare-pagesDiff two versions of a wiki page by revision, title, or supplied wikitext.
get-category-membersList members of a category (up to 500 per call, paginated via continueFrom).
get-fileFetch a file page.
get-file-dataFetch a file's image bytes inline (base64) for visual analysis — for clients that can't reach the wiki host.
get-links-hereList pages that reference a wiki page — pages that link to it, embed it as a template, or display it as a file (select…
get-pageFetch a wiki page.
get-page-historyList recent revisions of a wiki page.
get-pagesFetch multiple wiki pages in one call (up to 50).
get-recent-changesList recent change events across the wiki, filterable by timestamp, namespace, user, tag, type, and hide flags (up to…
get-revisionFetch a specific revision of a page.
get-site-infoGet a wiki's key settings: MediaWiki version, content language, title-case rules, namespaces, installed extensions,…
list-wikisList every configured wiki — its key, sitename, server, whether it is read-only or the default, whether it is…
parse-wikitextRender wikitext to HTML without saving. Returns parse warnings, wikilinks, templates, and external URLs.
search-pageSearch wiki page titles and contents (full-text). Searches the wiki's content namespaces unless given other namespace…
search-page-by-prefixSearch page titles by prefix.
whoamiReport the identity the current session is authenticated as on the targeted wiki — username, whether it is anonymous,…
add-wikiAdd a wiki as an MCP resource from its URL. Disabled when allowWikiManagement is false.
remove-wikiRemove a wiki resource. Disabled when allowWikiManagement is false or fewer than two wikis are configured.
oauth-logoutRemove stored OAuth tokens. Stdio only.
oauth-statusList stored OAuth tokens with scopes and expiry (no token values). Stdio only.
neowiki-list-schemasList schemas (entity types) and their property counts.
neowiki-get-schemaGet one schema's property definitions, relations, and select options.
neowiki-cypher-queryRun a read-only Cypher query against the knowledge graph.
neowiki-search-subjectsFind subject IDs by label within a schema.
neowiki-get-subjectFetch one subject's structured data by ID.
neowiki-get-page-subjectsList the subjects attached to a wiki page.
neowiki-create-subjectCreate a subject (child or main) on a page. Requires the edit right.
neowiki-update-subjectReplace a subject's label and statements. Requires the edit right.
neowiki-delete-subjectDelete a subject by ID. Requires the edit right.
neowiki-set-main-subjectSet or clear a page's main subject. Requires the edit right.
neowiki-validate-subjectDry-run validate a proposed subject and return violations.
smw-list-propertiesList Semantic MediaWiki properties with copy-paste templates for smw-query.
smw-queryRun a Semantic MediaWiki #ask query.
bucket-queryRun a Bucket Lua query.
cargo-list-tablesList Cargo tables defined on the wiki.
cargo-describe-tableList a Cargo table's fields with their types and list-flags.
cargo-queryRun a Cargo SQL-style query.
wikibase-search-entitiesFind items and properties by label or alias.
wikibase-get-entityRead one entity's terms and statements, with referenced IDs resolved to labels.
wikibase-queryRun a SPARQL query against the wiki's query service. Offered only for a repository whose siteinfo publishes one.
About MediaWiki MCP Server
An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.
- mcp-server
- mediawiki
- model-context-protocol-servers
- agents
- llms
- mcp
- model-context-protocol
- modelcontextprotocol
- ai
- ai-agent-tools
Similar MCP servers
More other MCP servers
Reactive Resume
reactive-resume/reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind.
OtherTypeScriptN8n MCP
czlonkowski/n8n-mcp
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you.
OtherTypeScriptXHS Downloader
JoeanAmier/XHS-Downloader
小红书(XiaoHongShu、RedNote)链接提取/作品采集工具.
OtherJavaScriptMCP Use
mcp-use/mcp-use
The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.
OtherTypeScriptHa MCP
homeassistant-ai/ha-mcp
Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants.
OtherPythonMCP Server Chart
antvis/mcp-server-chart
A Model Context Protocol server for generating charts using AntV.
OtherTypeScript
What is MediaWiki MCP Server?
MediaWiki MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools. It has 136 GitHub stars, is released under the MIT license and runs locally with npx -y @professional-wiki/mediawiki-mcp-server. The source code is at github.com/ProfessionalWiki/MediaWiki-MCP-Server.
How do I install the MediaWiki MCP Server MCP server?
Add the command npx -y @professional-wiki/mediawiki-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is MediaWiki MCP Server free?
The server is open source under the MIT license, so running it is free. It needs credentials (MCP_OAUTH_CREDENTIALS_FILE) for the service it connects to, which may require a paid account.
Is MediaWiki MCP Server actively maintained?
The most recent commit was on Oct 6, 2026. The latest release is v0.19.0, published Sep 25, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.