Skip to main content
Glama

mediawiki_find_replace

Destructive

Replace specific text on a single MediaWiki page. Use to fix typos, update names, or change version numbers with optional regex support and preview mode.

Instructions

PREFERRED for simple text changes on a single page.

USE WHEN: User says "replace X with Y", "fix the typo", "change the version number", "update the name".

NOT FOR: Creating/rewriting pages (use mediawiki_edit_page). Not for multi-page updates (use mediawiki_bulk_replace). Not for formatting (use mediawiki_apply_formatting).

PARAMETERS:

  • title: Page name (required)

  • find: Text to find (required)

  • replace: Replacement text (required)

  • all: Replace all occurrences (default false = first only)

  • use_regex: Treat find as regex (default false)

  • preview: Preview changes without saving (default true for safety)

  • summary: Edit summary

RETURNS: Match count and preview of changes. Set preview=false to apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesPage title to edit
findYesText to find (exact match or regex if use_regex=true)
replaceYesReplacement text
use_regexNoTreat 'find' as a Go RE2 regex. Characters like . [ ] * + ? ( ) have special meaning; escape with backslash for literal match. Max 500 chars.
allNoReplace all occurrences (default: first only)
previewNoPreview changes without saving
summaryNoEdit summary
minorNoMark as minor edit

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
undoNo
titleYes
changesNo
messageYes
previewYes
successYes
revisionNo
match_countYes
revision_idNo
replace_countYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/olgasafonova/mediawiki-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server