AgentHubAgentHub

MediaWiki MCP Server

MCP ServerMCP Registry官方收录

io.github.ProfessionalWiki/mediawiki-mcp-server · v0.11.0

MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools

概览

MediaWiki MCP Server 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "mediawiki-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@professional-wiki/mediawiki-mcp-server"
      ]
    }
  }
}

环境变量

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 for unauthenticated requests.

MCP_CONTENT_MAX_BYTES可选

Byte cap for content bodies (wikitext, rendered HTML, diffs) returned by get-page, get-pages, parse-wikitext, and compare-pages. Oversized bodies are truncated with a trailing marker.

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. Over-cap responses error rather than truncate.

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_CREDENTIALS_FILE可选

Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.

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_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 rewrites the request Host.

MCP_SESSION_IDLE_TIMEOUT可选

Seconds an HTTP session may sit idle before it is closed and removed on the StreamableHTTP transport. Any request resets the timer. Set to 0 to disable expiry.

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 instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize.

PORT可选

Port used for StreamableHTTP transport

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 for unauthenticated requests.

MCP_CONTENT_MAX_BYTES可选

Byte cap for content bodies (wikitext, rendered HTML, diffs) returned by get-page, get-pages, parse-wikitext, and compare-pages. Oversized bodies are truncated with a trailing marker.

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. Over-cap responses error rather than truncate.

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_CREDENTIALS_FILE可选

Override the default OAuth credentials store path. Default: ~/.config/mediawiki-mcp/credentials.json on Linux/macOS, %APPDATA%\mediawiki-mcp\credentials.json on Windows.

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_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 rewrites the request Host.

MCP_SESSION_IDLE_TIMEOUT可选

Seconds an HTTP session may sit idle before it is closed and removed on the StreamableHTTP transport. Any request resets the timer. Set to 0 to disable expiry.

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 instead of being buffered by the server. Guards this server's memory, not the wiki's $wgMaxUploadSize.

PORT可选

Port used for StreamableHTTP transport

相关资源

统一 Manifest

{
  "id": "io.github.ProfessionalWiki/mediawiki-mcp-server",
  "type": "mcp-server",
  "version": "0.11.0",
  "displayName": "MediaWiki MCP Server",
  "description": "MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools",
  "repository": {
    "url": "https://github.com/ProfessionalWiki/MediaWiki-MCP-Server",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "mcpb",
        "identifier": "https://github.com/ProfessionalWiki/MediaWiki-MCP-Server/releases/download/v0.11.0/MediaWiki-MCP-Server.mcpb",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "CONFIG",
            "description": "Path to your configuration file"
          },
          {
            "name": "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."
          },
          {
            "name": "MCP_CONTENT_MAX_BYTES",
            "description": "Byte cap for content bodies (wikitext, rendered HTML, diffs) returned by get-page, get-pages, parse-wikitext, and compare-pages. Oversized bodies are truncated with a trailing marker."
          },
          {
            "name": "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."
          },
          {
            "name": "MCP_LOG_LEVEL",
            "description": "Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call."
          },
          {
            "name": "MCP_MAX_REQUEST_BODY",
            "description": "Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb."
          },
          {
            "name": "MCP_METRICS",
            "description": "Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport."
          },
          {
            "name": "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."
          },
          {
            "name": "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."
          },
          {
            "name": "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."
          },
          {
            "name": "MCP_SESSION_IDLE_TIMEOUT",
            "description": "Seconds an HTTP session may sit idle before it is closed and removed on the StreamableHTTP transport. Any request resets the timer. Set to 0 to disable expiry."
          },
          {
            "name": "MCP_SHUTDOWN_GRACE_MS",
            "description": "Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000."
          },
          {
            "name": "MCP_TRANSPORT",
            "description": "Type of MCP server transport"
          },
          {
            "name": "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."
          },
          {
            "name": "PORT",
            "description": "Port used for StreamableHTTP transport"
          }
        ]
      },
      {
        "registryType": "npm",
        "identifier": "@professional-wiki/mediawiki-mcp-server",
        "version": "0.11.0",
        "runtimeHint": "npx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "CONFIG",
            "description": "Path to your configuration file"
          },
          {
            "name": "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."
          },
          {
            "name": "MCP_CONTENT_MAX_BYTES",
            "description": "Byte cap for content bodies (wikitext, rendered HTML, diffs) returned by get-page, get-pages, parse-wikitext, and compare-pages. Oversized bodies are truncated with a trailing marker."
          },
          {
            "name": "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."
          },
          {
            "name": "MCP_LOG_LEVEL",
            "description": "Minimum severity for logger output (stderr telemetry and sendLoggingMessage broadcast). Invalid values fail loudly on first log call."
          },
          {
            "name": "MCP_MAX_REQUEST_BODY",
            "description": "Maximum HTTP request body size on the StreamableHTTP transport. Accepts size strings like 1mb or 512kb."
          },
          {
            "name": "MCP_METRICS",
            "description": "Set to 'true' to expose Prometheus metrics at GET /metrics on the HTTP transport. Has no effect on the stdio transport."
          },
          {
            "name": "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."
          },
          {
            "name": "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."
          },
          {
            "name": "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."
          },
          {
            "name": "MCP_SESSION_IDLE_TIMEOUT",
            "description": "Seconds an HTTP session may sit idle before it is closed and removed on the StreamableHTTP transport. Any request resets the timer. Set to 0 to disable expiry."
          },
          {
            "name": "MCP_SHUTDOWN_GRACE_MS",
            "description": "Maximum milliseconds to wait for in-flight /mcp calls to drain on SIGTERM/SIGINT before exiting. Capped at 600000."
          },
          {
            "name": "MCP_TRANSPORT",
            "description": "Type of MCP server transport"
          },
          {
            "name": "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."
          },
          {
            "name": "PORT",
            "description": "Port used for StreamableHTTP transport"
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.ProfessionalWiki/mediawiki-mcp-server",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.ProfessionalWiki%2Fmediawiki-mcp-server/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
MediaWiki MCP Server — MCP Server 安装与配置 · AgentHub