sriniketh/mediawiki-mcp-server
3.2
If you are the rightful owner of mediawiki-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MediaWiki MCP Server is a Kotlin-based server that provides access to MediaWiki content through the Model Context Protocol (MCP), facilitating the grounding of answers.
Tools
2
Resources
0
Prompts
0
MediaWiki MCP Server
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.
Tools available
search_wiki: Search for pages on the wikiget_page_content: Retrieve the content of a specific page
Build Steps
Environment Variables
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")
Build
docker build -t mediawiki-mcp-server .
Running with application
docker run -i -e WIKI_NAME="Stardew Valley Wiki" -e WIKI_API_URL="https://stardewvalleywiki.com/mediawiki/api.php" mediawiki-mcp-server
Example MCP Configuration
The 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"
]
}
}
}
Logging
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
License
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.