# MediaWiki MCP Server (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.

An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/ProfessionalWiki/MediaWiki-MCP-Server |
| GitHub stars | 136 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @professional-wiki/mediawiki-mcp-server |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Other |
| Latest release | v0.19.0 (Sep 25, 2026) |
| Last commit | Oct 6, 2026 |
| MCP registry name | io.github.ProfessionalWiki/mediawiki-mcp-server |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "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

```sh
claude mcp add --env MCP_OAUTH_CREDENTIALS_FILE=your-value --transport stdio mediawiki-mcp-server -- npx -y @professional-wiki/mediawiki-mcp-server
```

### Cursor (.cursor/mcp.json)

```json
{
  "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 (.vscode/mcp.json)

```json
{
  "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 2026-10-07.

## Environment variables

- `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…
- `MCP_CONTENT_MAX_BYTES`: 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`: 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`: 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_ALLOWED_REDIRECTS`: 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`: 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_FILE` (secret): 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`: 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`: 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`: 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`: 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
- `MCP_UPLOAD_MAX_BYTES`: 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`: Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/ (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server)…
- `PORT`: Port used for StreamableHTTP transport

## Tools

- `compare-pages`: Diff two versions of a wiki page by revision, title, or supplied wikitext.
- `get-category-members`: List members of a category (up to 500 per call, paginated via continueFrom).
- `get-file`: Fetch a file page.
- `get-file-data`: Fetch a file's image bytes inline (base64) for visual analysis — for clients that can't reach the wiki host.
- `get-links-here`: List pages that reference a wiki page — pages that link to it, embed it as a template, or display it as a file (select…
- `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 change events across the wiki, filterable by timestamp, namespace, user, tag, type, and hide flags (up to…
- `get-revision`: Fetch a specific revision of a page.
- `get-site-info`: Get a wiki's key settings: MediaWiki version, content language, title-case rules, namespaces, installed extensions,…
- `list-wikis`: List every configured wiki — its key, sitename, server, whether it is read-only or the default, whether it is…
- `parse-wikitext`: Render wikitext to HTML without saving. Returns parse warnings, wikilinks, templates, and external URLs.
- `search-page`: Search wiki page titles and contents (full-text). Searches the wiki's content namespaces unless given other namespace…
- `search-page-by-prefix`: Search page titles by prefix.
- `whoami`: Report the identity the current session is authenticated as on the targeted wiki — username, whether it is anonymous,…
- `add-wiki`: Add a wiki as an MCP resource from its URL. Disabled when allowWikiManagement is false.
- `remove-wiki`: Remove a wiki resource. Disabled when allowWikiManagement is false or fewer than two wikis are configured.
- `oauth-logout`: Remove stored OAuth tokens. Stdio only.
- `oauth-status`: List stored OAuth tokens with scopes and expiry (no token values). Stdio only.
- `neowiki-list-schemas`: List schemas (entity types) and their property counts.
- `neowiki-get-schema`: Get one schema's property definitions, relations, and select options.
- `neowiki-cypher-query`: Run a read-only Cypher query against the 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 the subjects attached to a wiki page.
- `neowiki-create-subject`: Create a subject (child or main) 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 validate a proposed subject and return violations.
- `smw-list-properties`: List Semantic MediaWiki properties with copy-paste 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 with their types and list-flags.
- `cargo-query`: Run a Cargo SQL-style query.
- `wikibase-search-entities`: Find items and properties by label or alias.
- `wikibase-get-entity`: Read one entity's terms and statements, with referenced IDs resolved to labels.
- `wikibase-query`: Run a SPARQL query against the wiki's query service. Offered only for a repository whose siteinfo publishes one.

## Similar MCP servers

- [Reactive Resume](https://appsgit.com/mcp-servers/reactive-resume): A one-of-a-kind resume builder that keeps your privacy in mind. (43,921 stars, MIT)
- [N8n MCP](https://appsgit.com/mcp-servers/n8n-mcp): A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you. (23,047 stars, MIT)
- [XHS Downloader](https://appsgit.com/mcp-servers/xhs-downloader): 小红书（XiaoHongShu、RedNote）链接提取/作品采集工具. (12,922 stars, GPL-3.0)
- [MCP Use](https://appsgit.com/mcp-servers/mcp-use): The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents. (10,726 stars, MIT)
- [Ha MCP](https://appsgit.com/mcp-servers/ha-mcp): Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants. (4,964 stars, MIT)
- [MCP Server Chart](https://appsgit.com/mcp-servers/mcp-server-chart): A Model Context Protocol server for generating charts using AntV. (4,391 stars, MIT, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/mediawiki-mcp-server
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
