by professionalwiki
Integrate with MediaWiki via REST API for searching, content retrieval, file info, revisions, and page management with d
Connects to MediaWiki instances (like Wikipedia) to search, read, create, and edit wiki pages through the REST API. Supports multiple wikis with automatic discovery and authenticated operations.
MediaWiki is a community-built MCP server published by professionalwiki that provides AI assistants with tools and capabilities via the Model Context Protocol. Integrate with MediaWiki via REST API for searching, content retrieval, file info, revisions, and page management with d It is categorized under productivity. This server exposes 16 tools that AI clients can invoke during conversations and coding sessions.
You can install MediaWiki in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
MediaWiki is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
MediaWiki is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: MediaWiki surfaces stars and publisher context so we could sanity-check maintenance before adopting.
I recommend MediaWiki for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
We evaluated MediaWiki against two servers with overlapping tools; this profile had the clearer scope statement.
MediaWiki is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We evaluated MediaWiki against two servers with overlapping tools; this profile had the clearer scope statement.
I recommend MediaWiki for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Strong directory entry: MediaWiki surfaces stars and publisher context so we could sanity-check maintenance before adopting.
We evaluated MediaWiki against two servers with overlapping tools; this profile had the clearer scope statement.
MediaWiki is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
showing 1-10 of 75
An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.
| Name | Description | Permissions |
|---|---|---|
add-wiki | Adds a new wiki as an MCP resource from a URL. | - |
create-page 🔐 | Create a new wiki page. | Create, edit, and move pages |
delete-page 🔐 | Delete a wiki page. | Delete pages, revisions, and log entries |
get-category-members | Gets all members in the category | - |
get-file | Returns the standard file object for a file page. | - |
get-page | Returns the standard page object for a wiki page. | - |
get-page-history | Returns information about the latest revisions to a wiki page. | - |
get-revision | Returns the standard revision object for a page. | - |
remove-wiki | Removes a wiki resource. | - |
search-page | Search wiki page titles and contents for the provided search terms. | - |
search-page-by-prefix | Perform a prefix search for page titles. | - |
set-wiki | Sets the wiki resource to use for the current session. | - |
undelete-page 🔐 | Undelete a wiki page. | Delete pages, revisions, and log entries |
update-page 🔐 | Update an existing wiki page. | Edit existing pages |
upload-file 🔐 | Uploads a file to the wiki from the local disk. | Upload new files |
upload-file-from-url 🔐 | Uploads a file to the wiki from a web URL. | Upload, replace, and move files |
mcp://wikis/{wikiKey}
token, username, password) are never exposed in resource content.add-wiki/remove-wiki, the server sends notifications/resources/list_changed so clients refresh.{
"resources": [
{
"uri": "mcp://wikis/en.wikipedia.org",
"name": "wikis/en.wikipedia.org",
"title": "Wikipedia",
"description": "Wiki "Wikipedia" hosted at https://en.wikipedia.org"
}
]
}
</details>
<details><summary>Example read result</summary>
{
"contents": [
{
"uri": "mcp://wikis/en.wikipedia.org",
"mimeType": "application/json",
"text": "{ "sitename":"Wikipedia","server":"https://en.wikipedia.org","articlepath":"/wiki","scriptpath":"/w","private":false }"
}
]
}
</details>
| Name | Description | Default |
|---|---|---|
CONFIG | Path to your configuration file | config.json |
MCP_TRANSPORT | Type of MCP server transport (stdio or http) | stdio |
PORT | Port used for StreamableHTTP transport | 3000 |
Note: Config is only required when interacting with a private wiki or using authenticated tools.
Create a config.json file to configure wiki connections. Use the config.example.json as a starting point.
{
"defaultWiki": "en.wikipedia.org",
"wikis": {
"en.wikipedia.org": {
"sitename": "Wikipedia",
"server": "https://en.wikipedia.org",
"articlepath": "/wiki",
"scriptpath": "/w",
"token": null,
"username": null,
"password": null,
"private": false
}
}
}
| Field | Description |
|---|---|
defaultWiki | The default wiki identifier to use (matches a key in wikis) |
wikis | Object containing wiki configurations, keyed by domain/identifier |
| Field | Required | Description |
|---|---|---|
sitename | Yes | Display name for the wiki |
server | Yes | Base URL of the wiki (e.g., https://en.wikipedia.org) |
articlepath | Yes | Path pattern for articles (typically /wiki) |
scriptpath | Yes | Path to MediaWiki scripts (typically /w) |
token | No | OAuth2 access token for authenticated operations (preferred) |
username | No | Bot username (fallback when OAuth2 is not available) |
password | No | Bot password (fallback when OAuth2 is not available) |
private | No | Whether the wiki requires authentication to read (default: false) |
For tools marked with 🔐, authentication is required.
Preferred method: OAuth2 Token
Special:OAuthConsumerRegistration/propose/oauth2 on your wikitoken to your wiki configuration in config.jsonNote: OAuth2 requires the OAuth extension to be installed on the wiki.
Fallback method: Username & Password
If OAuth2 is not available on your wiki, you can use bot credentials (from Special:BotPasswords ) instead of the OAuth2 token.
To install MediaWiki MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @ProfessionalWiki/mediawiki-mcp-server --client claude
</details>
<details>
<summary><b>Install in Claude Desktop</b></summary>
Follow the guide, use following configuration:
{
"mcpServers": {
"mediawiki-mcp-server": {
"command": "npx",
"args": [
"@professional-wiki/mediawiki-mcp-server@latest"
],
"env": {
"CONFIG": "path/to/config.json"
}
}
}
}
</details>
<details><summary><b>Install in VS Code</b></summary>
code --add-mcp '{"name":"mediawiki-mcp-server","command":"npx","args":["@professional-wiki/mediawiki-mcp-server@latest"]}'
</details>
<details>
<summary><b>Install in Cursor</b></summary>
Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command npx @professional-wiki/mediawiki-mcp-server. You can also verify config or add command like arguments via clicking Edit.
{
"mcpServers": {
"mediawiki-mcp-server": {
"command": "npx",
"args": [
"@professional-wiki/mediawiki-mcp-server@latest"
],
"env": {
"CONFIG": "path/to/config.json"
}
}
}
}
</details>
<details>
<summary><b>Install in Windsurf</b></summary>
Follow the guide, use following configuration:
{
"mcpServers": {
"mediawiki-mcp-server": {
"command": "npx",
"args": [
"@professional-wiki/mediawiki-mcp-server@latest"
],
"env": {
"CONFIG": "path/to/config.json"
}
}
}
}
</details>
<details>
<summary><b>Install in Claude Code</b></summary>
Follow the Claude Code MCP docs.
Run the below command, optionally with -e flags to specify environment variables.
claude mcp add mediawiki-mcp-server npx @professional-wiki/mediawiki-mcp-server@latest
You should end up with something like the below in your .claude.json config:
"mcpServers": {
"mediawiki-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"@professional-wiki/mediawiki-mcp-server@latest"
],
"env": {
"CONFIG": "path/to/config.json"
}
}
},
</details>
🐋 Develop with Docker: Replace the
npm runpart of the command withmake(e.g.make inspector).
Test and debug the MCP server without a MCP client and LLM.
To start the development server and the MCP Inspector together:
npm run inspector
The command will build and start the MCP Proxy server locally at 6277 and the MCP Inspector client UI at http://localhost:6274.
Test and debug the MCP server, with a built-in MCP client and support for different LLMs.
To start the development server and the MCP Inspector together:
npm run mcpjam
To enable your MCP client to use this MediaWiki MCP Server for local development:
command and args values as shown in the mcp.json file (or mcp.docker.json if you prePrerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.