Connect your AI assistant to any MediaWiki wiki.
MediaWiki MCP Server
Connect your AI assistant to any MediaWiki wiki. Search, read, and edit wiki content using natural language.
Works with: Claude Desktop, Claude Code, Cursor, ChatGPT, n8n, and any MCP-compatible tool.
Documentation
| Document | Description |
|---|---|
| QUICKSTART.md | Get running in 2 minutes |
| TIETO_SETUP.md | Connect to Tieto's Public 360° Wiki (beginner-friendly) |
| CHANGELOG.md | Version history |
| ARCHITECTURE.md | System design |
| CONTRIBUTING.md | How to contribute |
| SECURITY.md | Security policies |
| WIKI_USE_CASES.md | Detailed workflows |
What Can You Do?
Once connected, just ask your AI:
| You say... | What happens |
|---|---|
| "What does our wiki say about onboarding?" | AI searches and summarizes relevant pages |
| "Find all pages mentioning the API" | Full-text search across your wiki |
| "Who edited the Release Notes last week?" | Shows revision history |
| "Are there broken links on the Docs page?" | Checks all external URLs |
| "Strike out John Smith on the Team page" | Applies formatting (requires auth) |
| "Convert this README to wiki format" | Transforms Markdown → MediaWiki markup ✨ |
Get Started
Step 1: Download
Option A: Download pre-built binary (easiest)
Go to Releases and download for your platform.
Option B: Build from source (requires Go 1.24+)
git clone https://github.com/olgasafonova/mediawiki-mcp-server.git
cd mediawiki-mcp-server
go build -o mediawiki-mcp-server .
Step 2: Find Your Wiki's API URL
Your wiki's API URL is usually:
| Wiki type | API URL |
|---|---|
| Standard MediaWiki | https://your-wiki.com/api.php |
| Wikipedia | https://en.wikipedia.org/w/api.php |
| Fandom | https://your-wiki.fandom.com/api.php |
Tip: Visit Special:Version on your wiki to find the exact API endpoint.
Step 3: Configure Your AI Tool
Pick your tool:
| I use... | Jump to setup |
|---|---|
| Claude Desktop (Mac/Windows) | Setup instructions |
| Claude Code CLI | Setup instructions |
| Cursor | Setup instructions |
| ChatGPT | Setup instructions |
| n8n | Setup instructions |
| VS Code + Cline | Setup instructions |
| Google ADK (Go/Python) | Setup instructions |
Claude Desktop
Works on Mac and Windows. No terminal needed after initial setup.
Mac
Open the config file:
open ~/Library/Application\ Support/Claude/claude_desktop_config.jsonIf the file doesn't exist, create it.
Add this configuration (replace the path and URL):
{ "mcpServers": { "mediawiki": { "command": "/path/to/mediawiki-mcp-server", "env": { "MEDIAWIKI_URL": "https://your-wiki.com/api.php" } } } }Restart Claude Desktop (quit and reopen)
Test it: Ask "Search the wiki for getting started"
Windows
Open the config file:
%APPDATA%\Claude\claude_desktop_config.jsonIf the file doesn't exist, create it.
Add this configuration (replace the path and URL):
{ "mcpServers": { "mediawiki": { "command": "C:\\path\\to\\mediawiki-mcp-server.exe", "env": { "MEDIAWIKI_URL": "https://your-wiki.com/api.php" } } } }Restart Claude Desktop (quit and reopen)
Test it: Ask "Search the wiki for getting started"
Claude Code CLI
The fastest setup. One command and you're done.
claude mcp add mediawiki /path/to/mediawiki-mcp-server \
-e MEDIAWIKI_URL="https://your-wiki.com/api.php"
Test it: Ask "Search the wiki for getting started"
Cursor
Cursor Marketplace (easiest):
/add-plugin mediawiki
Manual setup:
Mac
Open the config file:
~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonAdd this configuration:
Tools (4)
search_wikiPerform full-text search across the wikiread_pageRead content from a specific wiki pageedit_pageEdit or update content on a wiki pageget_revision_historyRetrieve the edit history of a wiki pageEnvironment Variables
MEDIAWIKI_URLrequiredThe API endpoint URL of your MediaWiki instanceConfiguration
{"mcpServers": {"mediawiki": {"command": "/path/to/mediawiki-mcp-server", "env": {"MEDIAWIKI_URL": "https://your-wiki.com/api.php"}}}}