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) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mediawiki_apply_formatting | 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. |
| mediawiki_bulk_replace | 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. |
| mediawiki_check_links | 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_terminology | 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_translations | 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_revisions | 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_topic | 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_markdown | 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_page | 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:
WARNING: This overwrites entire page content unless section is specified. |
| mediawiki_find_broken_internal_links | 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_pages | 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_replace | 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. |
| mediawiki_find_similar_pages | 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_backlinks | 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_members | 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_links | 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_batch | 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_images | 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_page | 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_info | 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_recent_changes | 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_related | 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_revisions | 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_sections | 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_user_contributions | 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_info | 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_categories | 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_pages | 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_users | 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_parse | Parse wikitext and return rendered HTML. USE WHEN: User wants to preview wikitext rendering, test markup syntax. PARAMETERS:
RETURNS: Rendered HTML output. |
| mediawiki_resolve_title | 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_search | 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_in_file | 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_page | 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_file | Upload a file to the wiki from a URL. USE WHEN: User says "upload this image", "add file to wiki", "import document". PARAMETERS:
RETURNS: Upload status and file page URL. NOTE: Requires authentication. URL must be publicly accessible. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |