MediaWiki MCP adapter
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MediaWiki MCP adapterfetch the content of the Main Page article"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MediaWikiAdapter
A custom Model Context Protocol (MCP) adapter for interacting with MediaWiki and WikiBase APIs. This adapter allows you to fetch and edit MediaWiki pages programmatically using the MCP framework.
Features
Fetch the content of a MediaWiki page.
Edit a MediaWiki page with new content and an optional summary.
Configurable API base URLs for different MediaWiki and WikiBase instances.
Related MCP server: MCP Server for OpenMetadata
Requirements
Node.js (v16 or later)
TypeScript (for development)
MediaWiki instance with API access enabled
Installation
Clone the repository:
git clone https://github.com/yourusername/mediawikiadapter.git
cd mediawikiadapterInstall dependencies:
npm installBuild the project:
npm run build
Usage
Configure the Adapter
You can configure the adapter to use custom MediaWiki and WikiBase API endpoints:
server.configure({
mediaWikiAPIBase: "https://my.mediawiki.instance/api.php",
wikiBaseAPIBase: "https://my.wikibase.instance/api.php",
});Start the MCP Server
Run the MCP server using the following command:
node build/index.jsResources
getPageContent
Fetches the content of a MediaWiki page.
Input Schema:
{
"title": "string"
}Output Schema:
{ "content": "string" }
Example Usage:
const response = await server.callResource("getPageContent", {
title: "Main Page",
});
console.log(response.content);Tools
editPage
Edits a MediaWiki page with new content.
Input Schema:
{
"title": "string",
"content": "string",
"summary": "string (optional)"
}Output Schema:
{
"success": "boolean"
}Example Usage:
const response = await server.callTool("editPage", {
title: "Main Page",
content: "Updated content for the page.",
summary: "Updated via MediaWikiAdapter",
});
console.log(response.success ? "Edit successful" : "Edit failed");Development
Run in Development Mode
To run the project in development mode with TypeScript:
npm run devLinting
Run the linter to check for code quality:
npm run lintTesting
Currently, no tests are implemented. You can add tests to the test directory and run them using:
npm testConfiguration
The adapter uses the following default API base URLs:
MediaWiki API Base: https://en.wikipedia.org/w/api.php
WikiBase API Base: https://www.wikidata.org/w/api.php
You can override these defaults using the server.configure() method.
Contributing
Contributions are welcome! Please follow these steps:
Fork the repository.
Create a new branch for your feature or bug fix.
Submit a pull request with a detailed description of your changes.
License
This project is licensed under the LGPL-3.0-or-later license. See the LICENSE file for details.
Author
Created by Luca Mauri.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables interaction with the Audius music platform API, supporting user, track, and playlist operations through the Model Context Protocol.275MIT
- AlicenseCqualityDmaintenanceEnables integration with OpenMetadata by wrapping its REST API for standardized interaction through the Model Context Protocol.10024MIT
- AlicenseAqualityFmaintenanceA server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.548MIT
- AlicenseAqualityAmaintenanceModel Context Protocol (MCP) server for MediaWiki29910123MIT
Related MCP Connectors
Wikidata MCP — wraps Wikidata API (wikidata.org/w/api.php)
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lucamauri/MediaWiki-MCP-adapter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server