# MediaWiki

Enable Large Language Model clients to interact seamlessly with any MediaWiki wiki. Perform actions such as creating, updating, and searching wiki pages, as well as retrieving file and page history i…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add ProfessionalWiki/mediawiki-mcp-server

# Browse available tools
npx -y @smithery/cli@latest tool list ProfessionalWiki/mediawiki-mcp-server

# Get full schema for a tool
npx -y @smithery/cli@latest tool get ProfessionalWiki/mediawiki-mcp-server get-page

# Call a tool
npx -y @smithery/cli@latest tool call ProfessionalWiki/mediawiki-mcp-server get-page '{}'
```

## Direct MCP Connection

Endpoint: `https://mediawiki-mcp-server--professionalwiki.run.tools`

## Tools (16)

- `get-page` — Returns a wiki page. Use metadata=true to retrieve the revision ID required by update-page. Set content="none" to fetch…
- `get-page-history` — Returns information about the latest revisions to a wiki page, in segments of 20 revisions, starting with the latest re…
- `search-page` — Search wiki page titles and contents for the provided search terms, and returns matching pages.
- `set-wiki` — Sets the wiki to use for the current session. You MUST call this tool when interacting with a new wiki.
- `add-wiki` — Adds a new wiki to the MCP resources from a URL.
- `remove-wiki` — Removes a wiki from the MCP resources.
- `update-page` — Updates a wiki page. Replaces the existing content of a page with the provided content
- `get-file` — Returns information about a file, including links to download the file in thumbnail, preview, and original formats.
- `create-page` — Creates a wiki page with the provided content.
- `upload-file` — Uploads a file to the wiki from the local disk.
- `upload-file-from-url` — Uploads a file to the wiki from a web URL.
- `delete-page` — Deletes a wiki page.
- `get-revision` — Returns a revision of a wiki page.
- `undelete-page` — Undeletes a wiki page.
- `get-category-members` — Gets all members in the category. Returns only page IDs, namespaces, and titles.
- `search-page-by-prefix` — Performs a prefix search for page titles.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get ProfessionalWiki/mediawiki-mcp-server <tool-name>
```

## Resources

- `mcp://wikis/en.wikipedia.org` — Wiki "Wikipedia" hosted at https://en.wikipedia.org
- `mcp://wikis/localhost:8080` — Wiki "Local MediaWiki Docker" hosted at http://localhost:8080

---

Source: https://github.com/ProfessionalWiki/MediaWiki-MCP-Server | License: GPL-2.0
