mediawiki-mcp-server

v0.6.6
@iflow-mcp/mediawiki-mcp-server Checked 1 day ago Published 9 months ago

Model 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.

ParameterTypeDescription
title *stringWiki page title
contentstringType of content to return
metadatabooleanWhether 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.

ParameterTypeDescription
title *stringWiki page title
filterstringFilter that returns only revisions with certain tags. Only support one filter per request.
newerThanintegerRevision ID of the newest revision to return
olderThanintegerRevision ID of the oldest revision to return

search-page

Search wiki page titles and contents for the provided search terms, and returns matching pages.

ParameterTypeDescription
query *stringSearch terms
limitintegerMaximum 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.

ParameterTypeDescription
uri *stringMCP 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.

ParameterTypeDescription
wikiUrl *stringAny URL from the target wiki (e.g. https://en.wikipedia.org/wiki/Main_Page)

remove-wiki

Removes a wiki from the MCP resources.

ParameterTypeDescription
uri *stringMCP 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

ParameterTypeDescription
latestId *integerRevision ID used as the base for the new source
source *stringPage content in the same content model of the existing page
title *stringWiki page title
commentstringSummary of the edit

get-file

Returns information about a file, including links to download the file in thumbnail, preview, and original formats.

ParameterTypeDescription
title *stringFile title

create-page

Creates a wiki page with the provided content.

ParameterTypeDescription
source *stringPage content in the format specified by the contentModel parameter
title *stringWiki page title
commentstringReason for creating the page
contentModelstringType of content on the page

upload-file

Uploads a file to the wiki from the local disk.

ParameterTypeDescription
filepath *stringFile path on the local disk
text *stringWikitext on the file page
title *stringFile title
commentstringReason for uploading the file

upload-file-from-url

Uploads a file to the wiki from a web URL.

ParameterTypeDescription
text *stringWikitext on the file page
title *stringFile title
url *stringURL of the file to upload
commentstringReason for uploading the file

delete-page

Deletes a wiki page.

ParameterTypeDescription
title *stringWiki page title
commentstringReason for deleting the page

get-revision

Returns a revision of a wiki page.

ParameterTypeDescription
revisionId *integerRevision ID
contentstringType of content to return
metadatabooleanWhether 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.

ParameterTypeDescription
title *stringWiki page title
commentstringReason for undeleting the page

get-category-members

Gets all members in the category. Returns only page IDs, namespaces, and titles.

ParameterTypeDescription
category *stringCategory name
namespacesarrayNamespace IDs to filter by
typesarrayTypes of members to include

search-page-by-prefix

Performs a prefix search for page titles.

ParameterTypeDescription
prefix *stringSearch prefix
limitintegerMaximum number of results to return
namespaceintegerNamespace to search