A MediaWiki MCP server written in Kotlin. Provides access to content on MediaWiki-based websites through MCP and helps ground answers.
Uses the official Kotlin MCP SDK for the server and ktor client for HTTP requests.
search_wiki: Search for pages on the wikiget_page_content: Retrieve the content of a specific page
WIKI_NAME: Display name for the wiki used in tools (e.g., "Wikipedia", "Wikibooks")WIKI_API_URL: Full URL to the MediaWiki API endpoint (e.g., "https://en.wikipedia.org/w/api.php")
docker build -t mediawiki-mcp-server .docker run -i -e WIKI_NAME="Stardew Valley Wiki" -e WIKI_API_URL="https://stardewvalleywiki.com/mediawiki/api.php" mediawiki-mcp-serverThe following can be added to your Claude/LM Studio MCP configuration in order to spin up the containers:
{
"mcpServers": {
"stardew-mediawiki": {
"command": "docker",
"args": [
"run",
"--name",
"stardew-wiki-mcp",
"--rm",
"-i",
"-e",
"WIKI_NAME=Stardew Valley Wiki",
"-e",
"WIKI_API_URL=https://stardewvalleywiki.com/mediawiki/api.php",
"mediawiki-mcp-server"
]
},
"mario-mediawiki": {
"command": "docker",
"args": [
"run",
"--name",
"mario-wiki-mcp",
"--rm",
"-i",
"-e",
"WIKI_NAME=Mario Wiki",
"-e",
"WIKI_API_URL=https://www.mariowiki.com/api.php",
"mediawiki-mcp-server"
]
}
}
}The server uses Logback for logging with the following configuration:
- Console output: Logs are written to stderr for MCP compatibility
- File logging: Logs are saved to
logs/mediawiki-mcp-server.loginside the container with rotation and retention policies
Copyright 2025 Sriniketh Ramachandran
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.