The MediaWiki Syntax MCP Server provides comprehensive and up-to-date MediaWiki markup syntax documentation by dynamically fetching information directly from official MediaWiki help pages.
Key capabilities:
Retrieve MediaWiki syntax: Access complete or summarized documentation covering text formatting, links, tables, images, templates, categories, magic words, and citations
Dynamic updates: Always current by fetching directly from MediaWiki.org API
Clean, structured output: Extracts essential syntax information organized by categories, free of navigation and metadata
Flexible formats: Request documentation in either complete (full syntax guide) or summary (condensed) format
Ready to use: No configuration needed, works out of the box with CLI interaction
LLM-optimized: Designed to enable programmatic access to up-to-date MediaWiki syntax information
Provides comprehensive MediaWiki syntax documentation by dynamically fetching and consolidating markup syntax information from official MediaWiki help pages, enabling access to current documentation for text formatting, links, tables, templates, and other MediaWiki markup elements.
MediaWiki Syntax MCP Server
A comprehensive MediaWiki syntax documentation server built with FastMCP.
This MCP server provides complete MediaWiki markup syntax documentation by dynamically fetching and consolidating information from official MediaWiki help pages. It enables LLMs to access up-to-date and comprehensive MediaWiki syntax information.
Features
Comprehensive Coverage: Fetches syntax information from multiple official MediaWiki help pages
Dynamic Updates: Always provides current documentation from MediaWiki.org
Clean Content: Extracts only the essential syntax information, removing navigation and metadata
Structured Output: Organizes syntax information by categories (formatting, links, tables, etc.)
Related MCP server: Library MCP
Development
To get started, clone the repository and install the dependencies.
Usage
Start the server
If you simply want to start the server, you can use the start script.
However, you can also interact with the server using the dev script.
This will start the server and allow you to interact with it using CLI.
Available Tools
The server provides one main tool:
get-mediawiki-syntax: Retrieves comprehensive MediaWiki syntax documentation
format(optional): "complete" for full documentation (default) or "summary" for condensed version
Testing
The tests verify that the server module can be properly imported and initialized.
Linting
Having a good linting setup reduces the friction for other developers to contribute to your project.
This boilerplate uses Prettier, ESLint and TypeScript ESLint to lint the code.
Formatting
Use npm run format to format the code.
MediaWiki Syntax Coverage
This server fetches syntax documentation from the following official MediaWiki help pages:
Text Formatting: Basic text formatting, headings, lists, and markup
Links: Internal links, external links, interwiki links, and piped links
Tables: Table creation and formatting syntax
Images and Media: Image embedding, sizing, and media file syntax
Templates: Template usage, parameters, and transclusion
Categories: Category assignment and organization
Magic Words: Variables, parser functions, and behavior switches
Citations and References: Reference and citation syntax
Configuration
The server is designed to work out of the box with no configuration required. It dynamically fetches content from MediaWiki.org using the MediaWiki API, similar to the approach used in wikipedia-mcp.