MediaWiki MCP Server

by professionalwiki

Not rated
GitHub

About

Enables LLM clients to interact with any MediaWiki wiki using the Model Context Protocol.

Details

Author
professionalwiki
Categories
Developer Tools, AI

Setup

Install MediaWiki MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/professionalwiki/MediaWiki-MCP-Server

Follow the installation instructions in the repository README, then restart your MCP client.

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

Every tool that operates on a wiki accepts an optionalwikiargument naming the wiki to act on (the wiki-management and OAuth tools do not) — pass a wiki key (e.g.en.wikipedia.org) or the fullmcp://wikis/{wikiKey}URI. Omit it to use the configured default wiki (seeConfiguration). Each tool response reports the wiki the call ran against.

Each pack's tools register only on wikis where its extension is installed.

mcp://wikis/{wikiKey}— per-wiki resource exposingsitename,server(the wiki's public address),articlepath,scriptpath, and theprivateandreadOnlyflags.

- Those fields are the whole of it: the resource publishes a fixed list, so credentials and server-side settings in your configuration file are never exposed in resource content.
- Afteradd-wikiorremove-wiki, the server sendsnotifications/resources/list_changedso clients refresh.

{ "contents": [ { "uri": "mcp://wikis/en.wikipedia.org", "mimeType": "application/json", "text": "{ \"sitename\":\"Wikipedia\",\"server\":\"https://en.wikipedia.org\",\"articlepath\":\"/wiki\",\"scriptpath\":\"/w\",\"private\":false }" } ] }

The variables below are relevant to any setup. Variables that only apply when self-hosting the HTTP transport (ports, timeouts, Host/Origin and SSRF guards) or running the hosted OAuth proxy are indocs/deployment.md — environment variables. Config-file substitution and upload-directory variables are indocs/configuration.md.

[!NOTE] Config is only required when interacting with a private wiki or using authenticated tools.

Create aconfig.jsonfile to configure wiki connections. Use theconfig.example.jsonas a starting point.

{ "defaultWiki": "en.wikipedia.org", "wikis": { "en.wikipedia.org": { "sitename": "Wikipedia", "server": "https://en.wikipedia.org", "articlepath": "/wiki", "scriptpath": "/w" } } }

Internal vs public address.Theserveryou configure may be an internal hostname (e.g.http://mediawikiin Docker); URLs handed back to the caller are built from the wiki's public address, so internal hostnames don't leak into links. Seedocs/configuration.md — per-wiki fields.

For the full field reference, env-var substitution, secret sources, change tags, upload directories, and authentication options, seedocs/configuration.md.

Tools marked 🔐 require authentication. Write tools (including extension-pack writes) are hidden fromtools/listwhen the configured default wiki hasreadOnly: true— seeDeployment.

The Cargo tools (cargo-query,cargo-list-tables,cargo-describe-table) call API actions gated by theruncargoqueriesuser right. Most wikis grant this to all users by default; wikis that restrict it require theCreate, query and delete data through the Cargo extensiongrant on the bot password or OAuth consumer. The Cargo extension is also detected on wiki.gg-hosted wikis (Helldivers, Terraria, Ark, etc.), where it ships under the rebranded nameLIBRARIAN.

Pick your client below, or use thestandard configurationif it is not listed.CONFIGis optional; without it the server targets English Wikipedia. To point it at your own wiki and set up authentication for writes, seedocs/configuration.md.

Add this repository as a plugin marketplace, then install the bundled server:

/plugin marketplace add ProfessionalWiki/MediaWiki-MCP-Server /plugin install mediawiki-mcp-server@professional-wiki

The plugin takes an optional configuration file, which points the server at your own wiki. Set it from the prompt when enabling the plugin, or at any time with/plugin configure mediawiki-mcp-server@professional-wiki. A command-line install takes the same value viaclaude plugin install mediawiki-mcp-server@professional-wiki --config configPath=path/to/config.json.

When installed as a plugin, the tools are namespacedmcp__plugin_mediawiki-mcp-server_mediawiki__<tool>; update any tool allowlists or hooks accordingly.

To configure the server directly instead, see theClaude Code MCP docs. The short version:

claude mcp add mediawiki-mcp-server -- npx -y @professional-wiki/mediawiki-mcp-server@latest # Environment variables go before the --: claude mcp add mediawiki-mcp-server -e CONFIG=path/to/config.json -- npx -y @professional-wiki/mediawiki-mcp-server@latest

Add this repository as a plugin marketplace, then install the bundled server:

codex plugin marketplace add ProfessionalWiki/MediaWiki-MCP-Server codex plugin add mediawiki-mcp-server@professional-wiki

To point the plugin at your own wiki, setCONFIGin the shell you launch Codex from, for exampleexport CONFIG=path/to/config.json. Codex has no per-plugin configuration; if you would rather not set an environment variable,codex mcp add mediawiki --env CONFIG=path/to/config.json -- npx -y @professional-wiki/mediawiki-mcp-server@latestregisters the server directly and takes precedence over the plugin's copy.

See theCodex plugins documentationfor how to list, update, or remove plugins.

DownloadMediaWiki-MCP-Server.mcpband double-click it to install the extension, which prompts for a configuration file path so you can point it at your own wiki instead of English Wikipedia.

Or add thestandard configurationby hand.

Add thestandard configurationto Antigravity's MCP config, either globally in~/.gemini/config/mcp_config.jsonor per-workspace in.agents/mcp_config.json.

If you previously installed the Gemini CLI extension, Antigravity's setup wizard offers to import your existing Gemini CLI configuration.

OpenCode uses its own configuration shape rather thanmcpServers; add this toopencode.jsonin your project root, or~/.config/opencode/opencode.jsonfor a global install.

{ "$schema": "https://opencode.ai/config.json", "mcp": { "mediawiki-mcp-server": { "type": "local", "command": ["npx", "-y", "@professional-wiki/mediawiki-mcp-server@latest"], "environment": { "CONFIG": "path/to/config.json" } } } }

Most clients read the same server block. Paste it into the file listed for your client, replacingmcpServerswith that client's root key:

{ "mcpServers": { "mediawiki-mcp-server": { "command": "npx", "args": ["-y", "@professional-wiki/mediawiki-mcp-server@latest"], "env": { "CONFIG": "path/to/config.json" } } } }

For any other client,npx add-mcp @professional-wiki/mediawiki-mcp-servermay work:add-mcpis a community CLI that writes your client's configuration file for you. It sets the launch command only; addCONFIGyourself to point at your own wiki.

Running the server as a remote HTTP endpoint for other users has its own configuration requirements — seedocs/deployment.md. A pre-built image is published atghcr.io/professionalwiki/mediawiki-mcp-server. For day-2 operations (logs,/health//ready, metrics, graceful shutdown), seedocs/operations.md.

Defaults are safe for single-user use. Before exposing the HTTP transport to others, lock down three things:

- Terminate TLS at your reverse proxy.Don't expose the MCP port directly on an untrusted network. Seedocs/deployment.md — security checklist.
- PairMCP_BINDwithMCP_ALLOWED_HOSTSandMCP_ALLOWED_ORIGINS.The HTTP transport binds to127.0.0.1by default. When you open it up withMCP_BIND=0.0.0.0, setMCP_ALLOWED_HOSTSto the hostnames your proxy forwards andMCP_ALLOWED_ORIGINSto the browser origins allowed to call the server — these block DNS-rebinding and cross-origin attacks respectively.
- Uploads are opt-in.upload-fileis disabled until you list allowed directories inuploadDirsorMCP_UPLOAD_DIRS. See
docs/configuration.md — upload directories.
- Internal destinations needMCP_TRUSTED_HOSTS.Outbound fetches are SSRF-guarded: a destination resolving to a private or loopback address (e.g. a Docker-network alias likemediawiki.svc) is refused until you list its host inMCP_TRUSTED_HOSTS. See
docs/deployment.md — outbound SSRF guard.

Report a vulnerability via GitHub'ssecurity advisory form— full policy inSECURITY.md.

Contributions are welcome — pull requests and issues (bugs, feature requests, suggestions) both work.

- Working on tool code?Start fromAGENTS.mdfor repo layout, commands, and testing patterns.
- Adding or modifying a tool?Read
docs/tool-conventions.md— it covers description voice, parameter docs, annotation hints, and MediaWiki terminology conventions.
- Running a release?See
docs/releasing.md.

This project is licensed under the MIT License. See theLICENSEfile for details.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

next-devtools-mcp is a MCP server that provides Next.js development tools and utilities for AI coding assistants like Claude and Cursor.

Word search, crossword, and sudoku generator MCP server with printable PDF worksheets, themed word banks, and verifiable LLM evals. Local-first, from the makers of puzzletide.com.

A demonstration server for ActionKit, providing access to Slack actions via Claude Desktop.

MCP server that lets Claude Code agents delegate tasks to agents in other project directories, with parallel dispatch, sessions, and async jobs.

Statistical regression testing for LLM agents: p-value, effect size, and CI on behavior change.

A Python MCP package that gives your LLM agents complete file system and shell capabilities — production-ready, sandboxed, and wired to any LLM in minutes.

Integrates with Google AI Studio/Gemini API for PDF to Markdown conversion and content generation.

Anchor Browser (https://anchorbrowser.io) is secure infrastructure for computer-use agents — stealth cloud browsers, authentication, captcha bypass, and a hosted MCP server for Cursor, Claude, and Windsurf.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.