MediaWiki MCP Server
MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools
Documentation & Preview
{ "mcpServers": { "mcp-mediawiki-mcp-server": { "command": "npx", "args": [ "-y", "--package", "@professional-wiki/mediawiki-mcp-server@0.19.0", "mediawiki-mcp-server" ], "env": { "CONFIG": "${ENV_CONFIG}", "MCP_ALLOW_STATIC_FALLBACK": "${ENV_MCP_ALLOW_STATIC_FALLBACK}", "MCP_CONTENT_MAX_BYTES": "${ENV_MCP_CONTENT_MAX_BYTES}", "MCP_FILE_DATA_MAX_BYTES": "${ENV_MCP_FILE_DATA_MAX_BYTES}", "MCP_LOG_LEVEL": "${ENV_MCP_LOG_LEVEL}", "MCP_MAX_REQUEST_BODY": "${ENV_MCP_MAX_REQUEST_BODY}", "MCP_METRICS": "${ENV_MCP_METRICS}", "MCP_OAUTH_ALLOWED_REDIRECTS": "${ENV_MCP_OAUTH_ALLOWED_REDIRECTS}", "MCP_OAUTH_CIMD_ALLOWED_HOSTS": "${ENV_MCP_OAUTH_CIMD_ALLOWED_HOSTS}", "MCP_OAUTH_CREDENTIALS_FILE": "${ENV_MCP_OAUTH_CREDENTIALS_FILE}", "MCP_OAUTH_NO_BROWSER": "${ENV_MCP_OAUTH_NO_BROWSER}", "MCP_OAUTH_PROXY_STORE_FILE": "${ENV_MCP_OAUTH_PROXY_STORE_FILE}", "MCP_PUBLIC_URL": "${ENV_MCP_PUBLIC_URL}", "MCP_SHUTDOWN_GRACE_MS": "${ENV_MCP_SHUTDOWN_GRACE_MS}", "MCP_TRANSPORT": "${ENV_MCP_TRANSPORT}", "MCP_UPLOAD_MAX_BYTES": "${ENV_MCP_UPLOAD_MAX_BYTES}", "MCP_USER_AGENT": "${ENV_MCP_USER_AGENT}", "PORT": "${ENV_PORT}" } } }, "setup": { "fields": [ { "id": "ENV_CONFIG", "label": "CONFIG", "description": "Path to your configuration file", "required": false, "secret": false, "default": "config.json" }, { "id": "ENV_MCP_ALLOW_STATIC_FALLBACK", "label": "MCP_ALLOW_STATIC_FALLBACK", "description": "Set to 'true' to allow HTTP startup when config.json has static credentials. Otherwise the server refuses to start, preventing silent shared-identity fallback for unauthenticated requests.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_CONTENT_MAX_BYTES", "label": "MCP_CONTENT_MAX_BYTES", "description": "Byte cap for the content bodies and result blocks tools return (wikitext, rendered HTML, diffs, statement and row listings). An oversized response is truncated with a trailing marker describing what was left out.", "required": false, "secret": false, "default": "75000" }, { "id": "ENV_MCP_FILE_DATA_MAX_BYTES", "label": "MCP_FILE_DATA_MAX_BYTES", "description": "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. Over-cap responses error rather than truncate.", "required": false, "secret": false, "default": "1000000" }, { "id": "ENV_MCP_LOG_LEVEL", "label": "MCP_LOG_LEVEL", "description": "Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call.", "required": false, "secret": false, "default": "debug" }, { "id": "ENV_MCP_MAX_REQUEST_BODY", "label": "MCP_MAX_REQUEST_BODY", "description": "Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb.", "required": false, "secret": false, "default": "1mb" }, { "id": "ENV_MCP_METRICS", "label": "MCP_METRICS", "description": "Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_OAUTH_ALLOWED_REDIRECTS", "label": "MCP_OAUTH_ALLOWED_REDIRECTS", "description": "Additional allowed redirect URIs for hosted-proxy client registration: comma-separated exact URIs (which must include a host) and https prefix patterns ending in /*. Loopback, claude.ai, and verified first-party clients (ChatGPT, Cursor, VS Code) are always allowed; unset means no additional clients.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_OAUTH_CIMD_ALLOWED_HOSTS", "label": "MCP_OAUTH_CIMD_ALLOWED_HOSTS", "description": "Comma-separated additional client_id document hosts trusted for CIMD (bare host or host:port). Verified first-party hosts are always trusted.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_OAUTH_CREDENTIALS_FILE", "label": "MCP_OAUTH_CREDENTIALS_FILE", "description": "Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\\mediawiki-mcp\\credentials.json on Windows.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_OAUTH_NO_BROWSER", "label": "MCP_OAUTH_NO_BROWSER", "description": "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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_OAUTH_PROXY_STORE_FILE", "label": "MCP_OAUTH_PROXY_STORE_FILE", "description": "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; /app/data/proxy-store.enc in the Docker image.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_PUBLIC_URL", "label": "MCP_PUBLIC_URL", "description": "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 rewrites the request Host.", "required": false, "secret": false, "default": "" }, { "id": "ENV_MCP_SHUTDOWN_GRACE_MS", "label": "MCP_SHUTDOWN_GRACE_MS", "description": "Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000.", "required": false, "secret": false, "default": "10000" }, { "id": "ENV_MCP_TRANSPORT", "label": "MCP_TRANSPORT", "description": "Type of MCP server transport", "required": false, "secret": false, "default": "stdio" }, { "id": "ENV_MCP_UPLOAD_MAX_BYTES", "label": "MCP_UPLOAD_MAX_BYTES", "description": "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 instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize.", "required": false, "secret": false, "default": "104857600" }, { "id": "ENV_MCP_USER_AGENT", "label": "MCP_USER_AGENT", "description": "Replaces the User-Agent header of every outbound request, which defaults to mediawiki-mcp-server/<version> (https://github.com/ProfessionalWiki/MediaWiki-MCP-Server). If you set it, give a name and an email or URL, e.g. 'ExampleBot/1.0 (bot@example.org)'.", "required": false, "secret": false, "default": "" }, { "id": "ENV_PORT", "label": "PORT", "description": "Port used for StreamableHTTP transport", "required": false, "secret": false, "default": "3000" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.ProfessionalWiki/mediawiki-mcp-server", "registryVersion": "0.19.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.ProfessionalWiki%2Fmediawiki-mcp-server/versions/0.19.0", "repository": "ProfessionalWiki/MediaWiki-MCP-Server", "sourceCommit": "ad8762945178e17dc974a3044287b651d8ccd60f", "namespaceRepositoryOwnerMatched": true, "package": { "registry": "npm", "identifier": "@professional-wiki/mediawiki-mcp-server", "version": "0.19.0", "integrity": "sha512-bPvbiZaRSiJBtYz+Ca592IYc1LA17P0Bkg8k/j3s3Vg3DRIG0DaCz02Itz17Kd4oxuoHloRZYkGHbPpjvQkxTg==", "packageRepositoryMatched": true, "checkedAt": "2026-10-21T00:59:18.210Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }