mediawiki-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MEDIAWIKI_URL | Yes | Wiki API endpoint (e.g., https://wiki.com/api.php) | |
| MCP_AUTH_TOKEN | No | Bearer token for HTTP authentication | |
| MEDIAWIKI_TIMEOUT | No | Request timeout (default: 30s) | 30s |
| MEDIAWIKI_PASSWORD | No | Bot password | |
| MEDIAWIKI_USERNAME | No | Bot username (User@BotName) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mediawiki_apply_formattingA | BEST for adding formatting markup to specific text. USE WHEN: User says "strike out X", "cross out the name", "make X bold", "italicize Y", "mark as code". NOT FOR: Replacing text (use mediawiki_find_replace). PARAMETERS:
RETURNS: Preview of formatting applied. Set preview=false to apply. Includes revision ID, diff URL, and undo instructions. NOTE: Requires authentication (bot password) to apply changes. Anonymous sessions cannot edit. |
| mediawiki_auditA | Run comprehensive wiki health audit with multiple checks. USE WHEN: User asks "run health check", "audit the wiki", "check wiki quality". PARAMETERS:
RETURNS: Health score (0-100), detailed results per check, and recommendations. |
| mediawiki_batch_get_pagesA | Retrieve content from MULTIPLE pages in a single API call. USE WHEN: You need content from 2+ pages. Much faster than individual mediawiki_get_page calls. NOT FOR: Single page (use mediawiki_get_page). Not for metadata only (use mediawiki_batch_get_pages_info). PARAMETERS:
RETURNS: Page content for each title, with exists/missing status. Missing pages are reported, not errors. |
| mediawiki_batch_get_pages_infoA | Get metadata for MULTIPLE pages in a single API call. USE WHEN: You need info (last edit, size, categories) for 2+ pages without their content. NOT FOR: Single page (use mediawiki_get_page_info). Not for content (use mediawiki_batch_get_pages). PARAMETERS:
RETURNS: Metadata (size, last edit, categories, protection) per page. Missing pages reported with exists=false. |
| mediawiki_bulk_replaceA | Update text across MULTIPLE pages at once. USE WHEN: User says "update everywhere", "fix on all pages", "change brand name across docs", "update in all documentation". NOT FOR: Single page changes (use mediawiki_find_replace - more efficient). PARAMETERS:
WARNING: Always use preview=true first to verify matches before applying. RETURNS: Changes per page. Set preview=false to apply all changes. Includes revision ID, diff URL, and undo instructions. NOTE: Requires authentication (bot password) to apply changes. Anonymous sessions cannot edit. |
| mediawiki_check_linksA | Verify external URL accessibility via HTTP requests. USE WHEN: User asks "check if these links work", "find broken URLs", "verify external links". NOT FOR: Finding broken internal wiki links (use mediawiki_find_broken_internal_links). PARAMETERS:
RETURNS: URL status codes, response times, and broken link identification. |
| mediawiki_check_terminologyA | Scan pages for terminology violations against a glossary. USE WHEN: User asks "check brand terminology", "find incorrect terms", "verify consistent naming". PARAMETERS:
RETURNS: Violations with page, line, wrong term, and correct term. |
| mediawiki_check_translationsA | Find pages missing translations in specified languages. USE WHEN: User asks "which pages need German translation", "find missing translations", "check language coverage". PARAMETERS:
RETURNS: Missing translations grouped by language. |
| mediawiki_compare_revisionsA | Compare two revisions and show the diff. USE WHEN: User asks "what changed between versions", "show the diff", "compare old and new". NOT FOR: Just listing revisions (use mediawiki_get_revisions). Not for comparing a topic across pages (use mediawiki_compare_topic). PARAMETERS:
RETURNS: HTML-formatted diff showing additions (green) and deletions (red). |
| mediawiki_compare_topicA | Compare how a topic is described across multiple pages. USE WHEN: User asks "how is X described on different pages", "find inconsistencies about timeout", "compare definitions of Y". NOT FOR: Comparing page revisions (use mediawiki_compare_revisions). PARAMETERS:
RETURNS: Page mentions with context, detected value mismatches, and inconsistencies. |
| mediawiki_convert_markdownA | Convert Markdown text to MediaWiki markup. Use this tool when you need to transform Markdown-formatted content into wiki-compatible format before creating or editing wiki pages. WHEN TO USE:
THEMES:
OPTIONS:
EXAMPLE: Input: "# Hello\nbold and italic\n- item 1\n- item 2" Output: "= Hello =\n'''bold''' and ''italic''\n* item 1\n* item 2" |
| mediawiki_edit_pageA | Create new pages or rewrite entire page content. USE WHEN: User says "create a new page", "rewrite the entire About page", "replace all content". NOT FOR: Simple text changes (use mediawiki_find_replace). Not for formatting (use mediawiki_apply_formatting). PARAMETERS:
RETURNS: Includes revision ID, diff URL, and undo instructions. NOTE: Requires authentication (bot password). Anonymous sessions cannot edit. WARNING: This overwrites entire page content unless section is specified. |
| mediawiki_find_broken_internal_linksA | Find internal wiki [[links]] pointing to non-existent pages. USE WHEN: User asks "find broken wiki links", "check for dead internal links", "find [[links]] to missing pages". NOT FOR: Checking external HTTP URLs (use mediawiki_check_links). PARAMETERS:
RETURNS: Broken links with source page, line number, and context. |
| mediawiki_find_orphaned_pagesA | Find pages with no incoming links from other pages. USE WHEN: User asks "find orphan pages", "which pages have no links", "find undiscoverable content". PARAMETERS:
RETURNS: List of orphaned page titles. |
| mediawiki_find_replaceA | 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:
RETURNS: Match count and preview of changes. Set preview=false to apply. Includes revision ID, diff URL, and undo instructions. NOTE: Requires authentication (bot password) to apply changes. Anonymous sessions cannot edit. |
| mediawiki_find_similar_pagesA | Find pages with similar content (potential duplicates or overlaps). USE WHEN: User asks "find similar pages", "are there duplicates", "what pages overlap with X". NOT FOR: Finding related pages by links (use mediawiki_get_related). PARAMETERS:
RETURNS: Similar pages with similarity scores and linking recommendations. |
| mediawiki_get_backlinksA | Get pages that link TO a specific page ("What links here"). USE WHEN: User asks "what links to X", "which pages reference the API", "show incoming links". NOT FOR: Outgoing external links (use mediawiki_get_external_links). PARAMETERS:
RETURNS: List of pages that link to the target page. |
| mediawiki_get_category_membersA | Get all pages that belong to a specific category. USE WHEN: User asks "show pages in Documentation category", "list all tutorials", "what's in Category:API". NOT FOR: Listing categories themselves (use mediawiki_list_categories). PARAMETERS:
RETURNS: Page titles in the category. |
| mediawiki_get_external_linksA | Get all external URLs from a wiki page. USE WHEN: User asks "what external links are on X", "show outgoing URLs", "list http links". NOT FOR: Incoming wiki links (use mediawiki_get_backlinks). Not for verifying links work (use mediawiki_check_links). PARAMETERS:
RETURNS: List of external URLs on the page. |
| mediawiki_get_external_links_batchA | Batch retrieve external URLs from multiple pages at once. USE WHEN: User asks "get links from these 5 pages", "collect URLs from multiple articles". NOT FOR: Single page (use mediawiki_get_external_links - more efficient). PARAMETERS:
RETURNS: External URLs grouped by source page. |
| mediawiki_get_imagesA | Get all images and files used on a wiki page. USE WHEN: User asks "what images are on X", "show files used in the article", "list media on this page". PARAMETERS:
RETURNS: Image titles, URLs, dimensions, and file sizes. |
| mediawiki_get_pageA | Retrieve full wiki page content. USE WHEN: User says "show me the X page", "what's on the Main Page", "read the FAQ". NOT FOR: Getting page structure/TOC (use mediawiki_get_sections). Not for searching content (use mediawiki_search_in_page). Not for metadata only (use mediawiki_get_page_info). If title not found, use mediawiki_resolve_title to handle typos and case sensitivity. PARAMETERS:
RETURNS: Page content in requested format. Large pages truncated at 25KB. |
| mediawiki_get_page_infoA | Get page metadata without content. USE WHEN: User asks "when was X last edited", "who created the FAQ", "is the page protected". NOT FOR: Getting page content (use mediawiki_get_page). Not for full edit history (use mediawiki_get_revisions). PARAMETERS:
RETURNS: Last edit timestamp, page size, protection status, creator. |
| mediawiki_get_page_summaryA | Get lead section + key metadata without loading the full page. USE WHEN: User asks "what is X about", "quick overview of X", "summarize the X page". Much lighter than mediawiki_get_page for large pages. NOT FOR: Full page content (use mediawiki_get_page). Not for specific sections (use mediawiki_get_sections with section parameter). PARAMETERS:
RETURNS: Lead section (intro before first heading), page size, categories, section list, last edit timestamp. |
| mediawiki_get_recent_changesA | Get recent changes across the entire wiki. USE WHEN: User asks "what's been changed recently", "show wiki activity", "who's been editing". NOT FOR: Single page history (use mediawiki_get_revisions). Not for user-specific edits (use mediawiki_get_user_contributions). PARAMETERS:
RETURNS: Recent changes with timestamps, users, and summaries. Aggregation returns counts. |
| mediawiki_get_relatedA | Find pages related to a given page via links and categories. USE WHEN: User asks "what pages are related to X", "show linked pages", "find associated content". NOT FOR: Finding content-similar pages (use mediawiki_find_similar_pages for duplicate detection). PARAMETERS:
RETURNS: Related page titles with relationship type. |
| mediawiki_get_revisionsA | Get revision history for a specific page. USE WHEN: User asks "who edited the FAQ", "show edit history of X", "when was this page last changed". NOT FOR: Wiki-wide activity (use mediawiki_get_recent_changes). Not for comparing versions (use mediawiki_compare_revisions). PARAMETERS:
RETURNS: Revision list with timestamps, users, sizes, and edit summaries. |
| mediawiki_get_sectionsA | Get page section structure (TOC) or specific section content. USE WHEN: User asks "what sections does X have", "show the table of contents", "get the Installation section". NOT FOR: Full page content (use mediawiki_get_page). PARAMETERS:
RETURNS: Section headings with indices, or specific section content. |
| mediawiki_get_stale_pagesA | Find pages that haven't been edited in a specified number of days. USE WHEN: User asks "find outdated pages", "which pages need review", "show stale content", "wiki hygiene check". NOT FOR: Recent activity (use mediawiki_get_recent_changes). Not for orphaned pages (use mediawiki_find_orphaned_pages). PARAMETERS:
RETURNS: Stale pages sorted by last edit (oldest first), with days since edit and last editor. |
| mediawiki_get_user_contributionsA | Get all edits made by a specific user. USE WHEN: User asks "what did John edit", "show user's contributions", "list edits by admin". NOT FOR: Page-specific history (use mediawiki_get_revisions). Not for wiki-wide activity (use mediawiki_get_recent_changes). PARAMETERS:
RETURNS: List of pages edited with timestamps and summaries. |
| mediawiki_get_wiki_infoA | Get information about the wiki itself. USE WHEN: User asks "what wiki is this", "wiki statistics", "MediaWiki version". PARAMETERS: None RETURNS: Wiki name, version, statistics (pages, users, edits). |
| mediawiki_list_categoriesA | List all categories in the wiki. USE WHEN: User asks "what categories exist", "show all categories", "list available categories". NOT FOR: Getting pages in a category (use mediawiki_get_category_members). PARAMETERS:
RETURNS: Category names and page counts. |
| mediawiki_list_pagesA | List wiki pages with optional prefix filter. USE WHEN: User asks "list all pages", "show pages starting with API", "what pages exist". NOT FOR: Finding pages by content (use mediawiki_search). PARAMETERS:
RETURNS: Page titles and IDs. |
| mediawiki_list_usersA | List wiki users with optional group filtering. USE WHEN: User asks "who are the admins", "list all users", "show active editors". PARAMETERS:
RETURNS: User names, groups, edit counts, and registration dates. |
| mediawiki_manage_categoriesA | Add or remove categories from a page without editing the full content. USE WHEN: User says "add category X to this page", "remove this from category Y", "categorize this page". NOT FOR: Listing categories (use mediawiki_list_categories). Not for viewing category members (use mediawiki_get_category_members). PARAMETERS:
RETURNS: Which categories were added, removed, already present, or not found. Includes revision ID, diff URL, and undo instructions. NOTE: Requires authentication (bot password) to apply changes. Anonymous sessions cannot edit. |
| mediawiki_move_pageA | Move (rename) a wiki page. Creates a redirect from the old title. USE WHEN: User says "rename the page", "move X to Y", "change the page title". NOT FOR: Editing page content (use mediawiki_edit_page or mediawiki_find_replace). PARAMETERS:
RETURNS: Includes revision ID, diff URL, and undo instructions. WARNING: Requires authentication (bot password) and move permissions. Creates a redirect from the old title by default. |
| mediawiki_parseA | Parse wikitext and return rendered HTML. USE WHEN: User wants to preview wikitext rendering, test markup syntax. PARAMETERS:
RETURNS: Rendered HTML output. |
| mediawiki_resolve_titleA | RECOVERY tool when page not found due to case sensitivity or typos. USE WHEN: User got "page not found" and suspects wrong capitalization or spelling. E.g., "module overview" should be "Module Overview". NOT FOR: Finding pages about a topic (use mediawiki_search instead). PARAMETERS:
RETURNS: Suggested correct page titles with confidence scores. |
| mediawiki_searchA | Search ACROSS the entire wiki for pages containing specific text. USE WHEN: User asks "find pages about X", "where is X documented", "search for X", or doesn't know which page contains information. NOT FOR: Searching within a specific known page (use mediawiki_search_in_page instead). PARAMETERS:
RETURNS: Page titles, snippets with highlights, and relevance scores. |
| mediawiki_search_and_readA | Search wiki AND read the top result(s) in a single call. USE WHEN: User asks a question about wiki content. This is the fastest path from question to answer — eliminates the search-then-read round trip. NOT FOR: Known page titles (use mediawiki_get_page directly). Not for listing search results without reading (use mediawiki_search). PARAMETERS:
RETURNS: Full content of top result(s) plus remaining search hits as summaries. |
| mediawiki_search_in_fileA | Search for text within wiki-hosted files (PDFs, text files). USE WHEN: User asks "search the PDF for X", "find X in the uploaded document". NOT FOR: Searching wiki pages (use mediawiki_search or mediawiki_search_in_page). PARAMETERS:
RETURNS: Matches with page numbers (for PDFs) or line numbers. NOTE: Supports text-based PDFs and text files (TXT, MD, CSV, JSON, XML, HTML). Scanned/image PDFs require OCR and are not supported. |
| mediawiki_search_in_pageA | Search WITHIN a known page (not across wiki). USE WHEN: User says "find X on page Y", "does page Y mention X", "search for X in the Configuration page". NOT FOR: Finding which page contains info (use mediawiki_search instead). PARAMETERS:
RETURNS: Matches with line numbers and surrounding context. |
| mediawiki_upload_fileA | Upload a file to the wiki from base64 bytes or a URL. USE WHEN: User says "upload this image", "add file to wiki", "import document". PARAMETERS:
RETURNS: Upload status and file page URL. Includes revision ID, diff URL, and undo instructions. NOTE: Requires authentication. For file_url, the URL must be publicly accessible. SECURITY: file_data uploads bytes directly and never triggers a server-side fetch, so the allowlist/SSRF gates do not apply to that path. For file_url, the source host must be on the MEDIAWIKI_UPLOAD_ALLOWED_DOMAINS env-var allowlist (fail-closed when unset), and private/internal IPs are blocked unconditionally. Decoded file_data is capped at 100 MiB by default — matching MediaWiki's default max upload size — and is adjustable via MEDIAWIKI_MAX_UPLOAD_DATA_BYTES. ignore_warnings=true overwrites existing files; the destructive-hint annotation is set so hosts that gate destructive operations will prompt before this runs. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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