mediawiki-mcp-server
v0.6.6Model Context Protocol (MCP) server for MediaWiki
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get-page
Returns a wiki page. Use metadata=true to retrieve the revision ID required by update-page. Set content="none" to fetch only metadata without content.
| Parameter | Type | Description |
|---|---|---|
title * | string | Wiki page title |
content | string | Type of content to return |
metadata | boolean | Whether to include metadata (page ID, revision info, license) in the response |
get-page-history
Returns information about the latest revisions to a wiki page, in segments of 20 revisions, starting with the latest revision. The response includes API routes for the next oldest, next newest, and latest revision segments.
| Parameter | Type | Description |
|---|---|---|
title * | string | Wiki page title |
filter | string | Filter that returns only revisions with certain tags. Only support one filter per request. |
newerThan | integer | Revision ID of the newest revision to return |
olderThan | integer | Revision ID of the oldest revision to return |
search-page
Search wiki page titles and contents for the provided search terms, and returns matching pages.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search terms |
limit | integer | Maximum number of search results to return |
set-wiki
Sets the wiki to use for the current session. You MUST call this tool when interacting with a new wiki.
| Parameter | Type | Description |
|---|---|---|
uri * | string | MCP resource URI of the wiki to use (e.g. mcp://wikis/en.wikipedia.org) |
add-wiki
Adds a new wiki to the MCP resources from a URL.
| Parameter | Type | Description |
|---|---|---|
wikiUrl * | string | Any URL from the target wiki (e.g. https://en.wikipedia.org/wiki/Main_Page) |
remove-wiki
Removes a wiki from the MCP resources.
| Parameter | Type | Description |
|---|---|---|
uri * | string | MCP resource URI of the wiki to remove (e.g. mcp://wikis/en.wikipedia.org) |
update-page
Updates a wiki page. Replaces the existing content of a page with the provided content
| Parameter | Type | Description |
|---|---|---|
latestId * | integer | Revision ID used as the base for the new source |
source * | string | Page content in the same content model of the existing page |
title * | string | Wiki page title |
comment | string | Summary of the edit |
get-file
Returns information about a file, including links to download the file in thumbnail, preview, and original formats.
| Parameter | Type | Description |
|---|---|---|
title * | string | File title |
create-page
Creates a wiki page with the provided content.
| Parameter | Type | Description |
|---|---|---|
source * | string | Page content in the format specified by the contentModel parameter |
title * | string | Wiki page title |
comment | string | Reason for creating the page |
contentModel | string | Type of content on the page |
upload-file
Uploads a file to the wiki from the local disk.
| Parameter | Type | Description |
|---|---|---|
filepath * | string | File path on the local disk |
text * | string | Wikitext on the file page |
title * | string | File title |
comment | string | Reason for uploading the file |
upload-file-from-url
Uploads a file to the wiki from a web URL.
| Parameter | Type | Description |
|---|---|---|
text * | string | Wikitext on the file page |
title * | string | File title |
url * | string | URL of the file to upload |
comment | string | Reason for uploading the file |
delete-page
Deletes a wiki page.
| Parameter | Type | Description |
|---|---|---|
title * | string | Wiki page title |
comment | string | Reason for deleting the page |
get-revision
Returns a revision of a wiki page.
| Parameter | Type | Description |
|---|---|---|
revisionId * | integer | Revision ID |
content | string | Type of content to return |
metadata | boolean | Whether to include metadata (revision ID, page ID, page title, user ID, user name, timestamp, comment, size, delta, minor, HTML URL) in the response |
undelete-page
Undeletes a wiki page.
| Parameter | Type | Description |
|---|---|---|
title * | string | Wiki page title |
comment | string | Reason for undeleting the page |
get-category-members
Gets all members in the category. Returns only page IDs, namespaces, and titles.
| Parameter | Type | Description |
|---|---|---|
category * | string | Category name |
namespaces | array | Namespace IDs to filter by |
types | array | Types of members to include |
search-page-by-prefix
Performs a prefix search for page titles.
| Parameter | Type | Description |
|---|---|---|
prefix * | string | Search prefix |
limit | integer | Maximum number of results to return |
namespace | integer | Namespace to search |