MediaWiki MCP Server
MCPB · MEDIAWIKI-MCP-SERVER.MCPB · 2 COMPONENTS · SCANNED AUG 3
MCP server enabling AI clients to interact with any MediaWiki wiki through standard tools
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security13
- Malware scan not yet available for this package.Unverified
- CVE data not yet available for this package.Unverified
- No install/post-install scripts declared.Pass
- Only part of the dependency tree could be resolved (131 of 132), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 3 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability78
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 6716 tokens (~216/item across 31 items; 29 tools + 2 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
- Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Capabilities100
- Implements a current MCP spec version (2026-07-28).Pass
Unverified: 1 category
A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
mcpb · MediaWiki-MCP-Server.mcpb
Download bundleEvery change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 3 Aug 26 +12
- Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
- Schema quality: unverified → excellent ▲ functional
- Dependency health: unverified → partial ▲ functional
- MCP protocol: unverified → pass ▲ functional
- 2 Aug 26 +18
- Dependency health: partial → unverified ▼ functional
- Tool coverage: unverified → 100 ▲ functional
- Schema quality: unverified → 100 ▲ functional
- 1 Aug 26 −28
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 31 Jul 26 42
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 3 Aug 2026 · Analysed mcpb/https://github.com/ProfessionalWiki/MediaWiki-MCP-Server/releases/download/v0.16.0/MediaWiki-MCP-Server.mcpb
Provenance none
Ecosystem: mcpb · Outcome: none
Dependencies 131 packages
131 packages in the resolved dependency tree · 130 deprecated · 42 stale.
The dependency tree was only partially resolved, so these counts may be incomplete.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
add-wiki ~120
Registers a new wiki as an MCP resource by fetching its sitename and API configuration from any URL on the wiki (e.g. a page URL). The wiki becomes available at mcp://wikis/<servername> and can be targeted by passing its key as the `wiki` argument to any wiki tool. Fails if the URL is not a MediaWiki wiki or if a wiki with the same key is already registered.
| Name | Type | Req | Description |
|---|---|---|---|
| wikiUrl | string | yes | Any URL from the target wiki (e.g. https://en.wikipedia.org/wiki/Main_Page) |
No output schema declared.
No examples provided.
compare-pages ~333
Returns the changes between two versions of a wiki page as a compact text diff. Each side accepts a revision ID, page title (latest revision), or supplied wikitext; text-vs-text is rejected. Only the changes are returned over the wire. For the full text of both sides, fetch with get-page instead. If a title or revision ID does not exist, an error is returned. Set includeDiff=false for a cheap change-detection response that skips diff rendering and returns just the change flag, revision metadata, and size delta. Diff output is truncated at 50000 bytes by default with a trailing marker; a narrower revision range or includeDiff=false avoids truncation.
| Name | Type | Req | Description |
|---|---|---|---|
| fromRevision | integer | — | Revision ID for the "from" side |
| fromText | string | — | Supplied wikitext for the "from" side |
| fromTitle | string | — | Wiki page title for the "from" side (latest revision is used) |
| includeDiff | boolean | — | Include the diff body (default true). Set false for a cheap change-detection response. |
| toRevision | integer | — | Revision ID for the "to" side |
| toText | string | — | Supplied wikitext for the "to" side |
| toTitle | string | — | Wiki page title for the "to" side (latest revision is used) |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
create-page ~322
Creates a new wiki page with the provided content and returns the new page's title, page ID, and first revision ID. Fails if a page with the given title already exists; for existing pages, use update-page. The optional contentModel parameter selects a non-default content format (e.g. javascript, css); when omitted, MediaWiki picks the default for the title's namespace. For building up a large page across multiple calls, pair create-page with chained update-page(mode='append') calls, each adding a chunk.
| Name | Type | Req | Description |
|---|---|---|---|
| bot | boolean | — | Marks the edit as a bot edit, which Special:RecentChanges hides by default. Takes effect only when the authenticated account has the `bot` right (granted by the bot group, or by the high-volume grant… |
| comment | string | — | Reason for creating the page |
| contentModel | string | — | Content model of the new page. If omitted, MediaWiki picks the default for the title's namespace. |
| source | string | yes | Page content in the format specified by the contentModel parameter |
| title | string | yes | Wiki page title |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
delete-page ~140
Removes a wiki page from public view and returns the deleted title. This is a soft delete: the page and its revision history remain in the database and can be restored with undelete-page until an administrator purges them. Fails if the page does not exist or the authenticated user lacks the delete permission.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for deleting the page |
| title | string | yes | Wiki page title |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-category-members ~227
Lists members of a category, returning each member's page ID, namespace ID, and wiki page title. Optionally filter by member type (page, file, subcat) or by namespace ID — filters apply server-side before the cap. Returns up to 500 members per call; paginate with continueFrom (opaque cursor echoed from the previous response). A member's type is omitted when it is an ordinary page (present only for files and subcategories).
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | yes | Category name (with or without the "Category:" prefix) |
| continueFrom | string | — | Opaque continuation token from the previous response; omit on first call |
| limit | integer | — | Maximum members to return (1..500) |
| namespaces | array | — | Namespace IDs to filter by |
| types | array | — | Types of members to include |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-file ~114
Returns metadata for a file (uploader, timestamp, size, MIME type) along with download URLs for the thumbnail, preview, and original. The File: prefix is added automatically if omitted.
| Name | Type | Req | Description |
|---|---|---|---|
| title | string | yes | File title (with or without the "File:" prefix) |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-file-data ~289
Fetches a wiki file server-side and returns the image inline as a content block, for clients that cannot reach the wiki host (sandboxed or network-restricted) and need the image sent to the model for visual analysis. Returns a scaled rendition sized by width. Files MediaWiki can rasterize (images, SVG, PDF, DjVu) come back as an image; other types (audio, video, arbitrary binaries) error — for those, and for metadata or a download URL, use get-file.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | — | 'image' returns a native image content block the model can view; 'text' returns the base64 as a text block, for hosts that do not forward image content to the model (base64 text costs far more tokens… |
| title | string | yes | File title (with or without the "File:" prefix) |
| width | integer | — | Pixel width of the scaled rendition. A quality/detail knob: in image mode the model caps image tokens regardless of size, so larger mainly means more detail. Defaults to 1024 (512 when format is "tex… |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-links-here ~397
Lists pages that reference a target wiki page, returning each referencing page's title, page ID, namespace ID, and whether it is a redirect. The type parameter selects the relationship — wikilinks (pages that link to the target), transclusions (pages that embed it, such as a template), or fileusage (pages that display it, for File pages) — one relationship per call. With expandRedirects, a referencing redirect also yields the pages that link through it (wikilinks and fileusage only), each tagged with the via redirect. Filter by namespace ID or by redirect status. For members of a category, use get-category-members; for full-text content search, use search-page. Returns up to 500 per call; paginate with continueFrom. The redirect flag appears only when the referencing page is a redirect.
| Name | Type | Req | Description |
|---|---|---|---|
| continueFrom | string | — | Opaque continuation token from the previous response; omit on first call |
| expandRedirects | boolean | — | When a referencing page is a redirect to the target, also return the pages that link through it. Applies to wikilinks and fileusage only. |
| filter | string | — | Filter the referencing pages by redirect status |
| limit | integer | — | Maximum referencing pages to return (1..500) |
| namespaces | array | — | Namespace IDs to filter the referencing pages by |
| title | string | yes | Wiki page title to find references to (the link target). A File title when type is fileusage. |
| type | string | — | Inbound relationship to list: wikilinks (pages that link to the target), transclusions (pages that embed it), or fileusage (pages that display it) |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-page ~251
Returns a single wiki page (wikitext source, rendered HTML, or metadata only). If the title does not exist, an error is returned. Use metadata=true to retrieve the revision ID (for edit-conflict detection), page size, and section outline. Set content="none" to fetch only metadata. Large content is truncated at 50000 bytes by default with a trailing marker listing available sections; a follow-up call with section=N fetches a specific section. For more than one page at a time, use get-pages. For a specific historical revision, use get-revision.
| Name | Type | Req | Description |
|---|---|---|---|
| content | string | — | Type of content to return |
| metadata | boolean | — | Whether to include metadata (page ID, revision info, size, section outline) in the response |
| section | integer | — | Section number (0 = lead; 1..N = heading sections). Narrows content to one section. |
| title | string | yes | Wiki page title |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-page-history ~199
Returns revision metadata (revision ID, timestamp, user, comment, size, minor flag) for a wiki page, in segments of 20 revisions, newest first. Paginate with olderThan or newerThan (mutually exclusive). If the title does not exist, an error is returned. Boolean flags appear only when true.
| Name | Type | Req | Description |
|---|---|---|---|
| filter | string | — | Change tag — return only revisions carrying this tag |
| newerThan | integer | — | Revision ID — return revisions newer than this (exclusive). Mutually exclusive with olderThan. |
| olderThan | integer | — | Revision ID — return revisions older than this (exclusive). Mutually exclusive with newerThan. |
| title | string | yes | Wiki page title |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-pages ~274
Returns multiple wiki pages in one call (wikitext source or metadata only). Suited to reading a cluster of related pages, diffing a page family, or syncing pages to local storage. Accepts up to 50 titles; missing pages are reported inline (not as errors). Each page's content is truncated at 50000 bytes by default with a trailing marker listing available sections; get-page with section=N fetches a specific section. For a single page or HTML output, use get-page. requestedTitle is included only when it differs from the resolved title.
| Name | Type | Req | Description |
|---|---|---|---|
| content | string | — | Type of content to return; "none" returns metadata only |
| followRedirects | boolean | — | Follow wiki redirects. When true (default), redirect targets are returned with a "Redirected from:" line in the metadata. Set false to fetch redirect pseudo-pages as-is (sync-fidelity). |
| metadata | boolean | — | Whether to include metadata (page ID, revision info) in the response |
| titles | array | yes | Array of wiki page titles (1..50) |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-recent-changes ~501
Returns recent change events, newest first, in segments of 50. Defaults to edits and page creations; set types to include log actions, categorizations, or external changes. Each row includes title, timestamp, user, revision IDs, size change, flags (minor/bot/new/anon), tags, and change type. Filter by timestamp window, namespaces, user, change tag, or hide flags (hideBots/hideMinor/hideAnon/hideRedirects/hidePatrolled). Pass showPatrolStatus to include per-row patrol state (requires patrol rights). Paginate with the continue token from the truncation marker. For a single page's revision history, use get-page-history. Boolean flags appear only when true; rows report the size delta, not raw old/new lengths.
| Name | Type | Req | Description |
|---|---|---|---|
| continue | string | — | Continuation token from a prior call's truncation marker |
| excludeUser | string | — | Username — exclude changes by this user. Mutually exclusive with user. |
| hideAnon | boolean | — | Omit edits by anonymous users |
| hideBots | boolean | — | Omit bot-flagged edits |
| hideMinor | boolean | — | Omit minor-flagged edits |
| hidePatrolled | boolean | — | Omit patrolled edits. Requires patrol rights. |
| hideRedirects | boolean | — | Omit changes whose target is a redirect |
| namespace | array | — | Namespace IDs to restrict the feed to — e.g. [0, 1] for main and talk |
| showPatrolStatus | boolean | — | Include per-row patrol status; adds an "Unpatrolled: yes" line to unpatrolled rows. Requires patrol rights. |
| since | string | — | ISO 8601 timestamp — only return changes at or after this time |
| tag | string | — | Change tag — return only changes carrying this tag |
| types | array | — | Event types to include. Defaults to edit and new (content changes only). |
| until | string | — | ISO 8601 timestamp — only return changes at or before this time |
| user | string | — | Username — return only changes by this user. Mutually exclusive with excludeUser. |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-revision ~173
Returns a specific historical revision of a wiki page by revision ID (wikitext source, rendered HTML, or metadata only). If the revision ID does not exist, an error is returned. For the latest revision plus metadata, use get-page with metadata=true.
| Name | Type | Req | Description |
|---|---|---|---|
| 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, minor, HTML URL) in the response |
| revisionId | integer | yes | Revision ID |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
get-site-info ~181
Returns key facts about the targeted wiki from its MediaWiki siteinfo: general settings (sitename, MediaWiki version, content language, page-title case-sensitivity, live read-only state, and maxarticlesize in bytes), the namespace map with localized names and aliases, the list of installed extension names, and the content license. Set includeStatistics to also return page, article, edit, image, user, active-user, and admin counts.
| Name | Type | Req | Description |
|---|---|---|---|
| includeStatistics | boolean | — | Also return live wiki statistics (page, article, edit, image, user, active-user, and admin counts). Defaults to false. |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
list-wikis ~88
Lists every configured wiki: its key (pass as the `wiki` argument to other tools), sitename, server URL, whether it is read-only or the default, whether it is currently reachable, and which extension-gated tools (cargo-*, smw-*, bucket-query) work on it. Use to discover the configured wikis, their keys, and which extension tools each supports.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
move-page ~317
Renames a wiki page, moving it — and by default its talk page — to a new title, and returns the old and new titles plus whether a redirect was left behind. By default leaves a redirect at the old title; set leaveRedirect=false to suppress it (requires the suppressredirect right, otherwise the redirect is left regardless). Fails if the source page does not exist, if the target title already exists (unless it is a redirect and ignoreWarnings is set), or if the authenticated user lacks the move permission. Moving a File page additionally requires the file-move permission.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for the move |
| fromTitle | string | yes | Current title of the wiki page to move |
| ignoreWarnings | boolean | — | Proceed past move warnings, e.g. when the target is an existing redirect. Moving over a non-redirect page still fails. |
| leaveRedirect | boolean | — | Leave a redirect at the old title. Suppressing it requires the suppressredirect right; without that right MediaWiki leaves the redirect regardless. |
| moveSubpages | boolean | — | Also move subpages, where the namespace allows subpages |
| moveTalk | boolean | — | Also move the associated talk page |
| toTitle | string | yes | New title to move the page to |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
oauth-logout ~59
Removes stored OAuth tokens. With no argument, removes all stored tokens; with `wiki`, removes only that wiki. Stdio only.
| Name | Type | Req | Description |
|---|---|---|---|
| wiki | string | — | Wiki key to log out from. Omit to log out from all wikis. |
No output schema declared.
No examples provided.
oauth-status ~31
Lists wikis with stored OAuth tokens, their scopes, and expiry. Stdio only. Never returns token values.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
parse-wikitext ~231
Renders wikitext through the live wiki without saving. Returns HTML, parse warnings, categories, wikilinks, templates, external URLs, and display title. Suited to dry-running a planned edit before create-page or update-page, or previewing standalone wikitext (template combinations, sanitizer checks) with no target page. HTML output is truncated at 50000 bytes by default with a trailing marker; a smaller wikitext fragment in a follow-up call returns the rest.
| Name | Type | Req | Description |
|---|---|---|---|
| applyPreSaveTransform | boolean | — | Apply pre-save transform (expand ~~~~ signatures, {{subst:}}, normalize whitespace). Matches editor "Show preview" behavior. |
| title | string | — | Wiki page title providing context for magic words like {{PAGENAME}}. Defaults to "API". |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
| wikitext | string | yes | Wikitext to render |
No output schema declared.
No examples provided.
remove-wiki ~67
Removes a wiki from the MCP resources. Clears any cached credentials and license metadata for the wiki. Fails if the specified wiki is the configured default wiki.
| Name | Type | Req | Description |
|---|---|---|---|
| uri | string | yes | MCP resource URI of the wiki to remove (e.g. mcp://wikis/en.wikipedia.org) |
No output schema declared.
No examples provided.
search-page ~156
Searches wiki page titles and page content (full-text) for the provided terms. Returns matching pages with a snippet, size, and timestamp. Accepts up to 100 matches per call (default 10); additional matches beyond the cap are flagged in the response — narrow the query to surface more. For title-prefix lookup (e.g. autocomplete), use search-page-by-prefix.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | — | Maximum number of search results to return |
| query | string | yes | Search terms |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
search-page-by-prefix ~163
Returns wiki page titles beginning with a given prefix (suited to autocomplete and title lookup). Only titles are returned — no snippets, sizes, or IDs. Accepts up to 500 titles per call (default 10); additional matches beyond the cap are flagged in the response. For full-text content search, use search-page.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | — | Maximum number of results to return |
| namespace | integer | — | Namespace ID to restrict the search to |
| prefix | string | yes | Wiki page title prefix |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
undelete-page ~134
Restores a previously deleted wiki page, including its full revision history, and returns the restored title. The page must currently be in a deleted state (from delete-page); fails if no deleted revisions exist for the title or the authenticated user lacks the undelete permission.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for undeleting the page |
| title | string | yes | Wiki page title |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
update-file ~240
Uploads a new revision of an existing file from the local disk, preserving prior revisions in the file history, and returns the file title and URL. The upload appears in the wiki's upload log. Replaces the file content (bytes) only; for editing the wikitext on a file's description page, use update-page. The operator restricts which directories are readable; filepath must be an absolute path inside a configured upload directory, or the call fails before contacting the wiki. Fails if no file exists at the target title; for the initial upload, use upload-file. To upload a new revision from a remote web address instead of a local path, use update-file-from-url.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for uploading the new revision |
| filepath | string | yes | File path on the local disk |
| title | string | yes | File title (with or without the "File:" prefix) |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
update-file-from-url ~237
Fetches a file from a remote web URL and uploads it as a new revision of an existing file, preserving prior revisions in the file history, and returns the file title and URL. The upload appears in the wiki's upload log. Replaces the file content (bytes) only; for editing the wikitext on a file's description page, use update-page. Works whether or not the wiki has upload-by-URL enabled: the server retrieves the file and uploads it directly, falling back to wiki-side fetching only when it cannot reach the URL itself. Fails if no file exists at the target title; for the initial upload, use upload-file-from-url.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for uploading the new revision |
| title | string | yes | File title (with or without the "File:" prefix) |
| url | string | yes | URL of the file to upload |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
update-page ~505
Replaces the existing content of a wiki page and returns the new revision ID. Fails if the page does not exist; for new pages, use create-page. Pass latestId (obtained from get-page with metadata=true) to enable edit-conflict detection: if the page has been edited since that revision, the update is rejected rather than silently clobbering concurrent changes. For large pages, three modifiers avoid shipping the full source: section=N edits one section (pairs with get-page section=N for reads), section='new' adds a new heading section, and mode='append' or 'prepend' sends a delta. Each call is a separate revision; for chains of mode='append' calls, re-fetching latestId between calls confirms the previous chunk landed before the next.
| Name | Type | Req | Description |
|---|---|---|---|
| bot | boolean | — | Marks the edit as a bot edit, which Special:RecentChanges hides by default. Takes effect only when the authenticated account has the `bot` right (granted by the bot group, or by the high-volume grant… |
| comment | string | — | Summary of the edit |
| latestId | integer | — | Base revision ID for edit-conflict detection; obtain from get-page with metadata=true. If omitted, the update is applied without conflict detection. |
| mode | string | — | Adds source to the existing content instead of replacing it: 'append' to the end, 'prepend' to the start. |
| section | — | — | Section to edit: 0 (lead), 1..N (existing heading sections), or 'new' to append a new heading section. |
| sectionTitle | string | — | Heading for a new section; required when section='new', rejected otherwise. |
| source | string | yes | The content to write, in the existing page's content model. Interpreted as the full page by default; as the given section's content when section is set; or as a delta (appended or prepended) when mod… |
| title | string | yes | Wiki page title |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
upload-file ~232
Uploads a file from the local disk into the wiki's File namespace and returns the resulting file title and URL. The upload appears in the wiki's upload log. The operator restricts which directories are readable; filepath must be an absolute path inside a configured upload directory, or the call fails before contacting the wiki. Fails if a file with the target title already exists (the wiki does not silently overwrite existing files). To upload directly from a remote web address instead of a local path, use upload-file-from-url. To replace an existing file with a new revision, use update-file.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for uploading the file |
| filepath | string | yes | File path on the local disk |
| text | string | yes | Wikitext on the file page |
| title | string | yes | File title (with or without the "File:" prefix) |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
upload-file-from-url ~219
Fetches a file from a remote web URL and uploads it into the wiki's File namespace, returning the resulting file title and URL. The upload appears in the wiki's upload log. Works whether or not the wiki has upload-by-URL enabled: the server retrieves the file and uploads it directly, falling back to wiki-side fetching only when it cannot reach the URL itself. Fails if a file with the target title already exists. To replace an existing file with a new revision, use update-file-from-url.
| Name | Type | Req | Description |
|---|---|---|---|
| comment | string | — | Reason for uploading the file |
| text | string | yes | Wikitext on the file page |
| title | string | yes | File title (with or without the "File:" prefix) |
| url | string | yes | URL of the file to upload |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.
whoami ~202
Returns the identity the current session is authenticated as on the targeted wiki: the username, whether the session is anonymous (no user is logged in), and the user groups it belongs to. Set includeRights to also return the full list of user rights. Use to confirm who edits and uploads will be attributed to before writing — for example, to resolve your own username before building a title under your own user namespace (User:<username>/…). Reports anonymous access rather than failing when the session has no credentials. For which wikis have stored OAuth tokens and their scopes, use oauth-status instead.
| Name | Type | Req | Description |
|---|---|---|---|
| includeRights | boolean | — | Also return the full list of user rights granted on this wiki (a long list). Defaults to false. |
| wiki | string | — | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |
No output schema declared.
No examples provided.