Skip to content
appsgit

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

claude_desktop_config.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

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
{
  "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
{
  "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.

NameRequiredDescription
CONFIGNoPath to your configuration file
MCP_ALLOW_STATIC_FALLBACKNoSet 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_BYTESNoByte 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_BYTESNoHard 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_LEVELNoMinimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.
MCP_MAX_REQUEST_BODYNoMaximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.
MCP_METRICSNoSet to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.
MCP_OAUTH_ALLOWED_REDIRECTSNoAdditional 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_HOSTSNoComma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.
MCP_OAUTH_CREDENTIALS_FILEsecretNoOverride the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json…
MCP_OAUTH_NO_BROWSERNoSet 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_FILENoPath 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_URLNoOverride 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_MSNoMaximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.
MCP_TRANSPORTNoType of MCP server transport
MCP_UPLOAD_MAX_BYTESNoMemory 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_AGENTNoReplaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/ (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server)…
PORTNoPort used for StreamableHTTP transport

Tools (40)

Parsed from the Tools section of the README; check the repository for the current list.

  • 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.

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

FAQ

MediaWiki MCP Server FAQ

Still curious? Email info@appsgit.com.

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.