Skip to main content
Glama

mediawiki-mcp-server

GPL 2.0
249

MediaWiki MCP Server

An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.

Feature

Tools

🔐 Requires OAuth 2.0 token: Request from the Special:OAuthConsumerRegistration/propose/oauth2 page on the wiki.

NameDescription
create-page 🔐Create a new wiki page.
get-fileReturns the standard file object for a file page.
get-pageReturns the standard page object for a wiki page.
get-page-historyReturns information about the latest revisions to a wiki page.
search-pageSearch wiki page titles and contents for the provided search terms.
set-wikiSet the wiki to use for the current session.
update-page 🔐Update an existing wiki page.

Environment variables

NameDescription
WIKI_SERVERDomain of the wiki (e.g. https://en.wikipedia.org)
ARTICLE_PATHArticle path of the wiki (e.g. /wiki)
SCRIPT_PATHScript path of the wiki (e.g. /w)
OAUTH_TOKENOAuth token from the OAuth extension

Installation

To install MediaWiki MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @ProfessionalWiki/mediawiki-mcp-server --client claude

Follow the guide, use following configuration:

{ "mcpServers": { "mediawiki-mcp-server": { "command": "npx", "args": [ "@professional-wiki/mediawiki-mcp-server@latest" ] } } }

code --add-mcp '{"name":"mediawiki-mcp-server","command":"npx","args":["@professional-wiki/mediawiki-mcp-server@latest"]}'

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" ] } } }

Follow the guide, use following configuration:

{ "mcpServers": { "mediawiki-mcp-server": { "command": "npx", "args": [ "@professional-wiki/mediawiki-mcp-server@latest" ] } } }

Development

🐋 Develop with Docker: Replace the npm run part of the command with make (e.g. make dev).

MCP Inspector

To start the development server and the MCP Inspector:

npm run dev

The command will build and start the MCP Proxy server locally at 6277 and the MCP Inspector client UI at http://localhost:6274.

Test with MCP clients

To enable your MCP client to use this MediaWiki MCP Server for local development:

  1. Register the MCP server in your client config (e.g. claude_desktop_config.json for Claude Desktop). An example config is provided at mcp.json.
  2. Run the watch command so that the source will be compiled whenever there is a change:
    npm run watch

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for bugs, feature requests, or suggestions.

License

This project is licensed under the GPL 2.0 License. See the LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

Model Context Protocol (MCP) server for MediaWiki

  1. Feature
    1. Tools
    2. Environment variables
  2. Installation
    1. Development
      1. MCP Inspector
      2. Test with MCP clients
    2. Contributing
      1. License

        Related MCP Servers

        View all related MCP servers

        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/ProfessionalWiki/MediaWiki-MCP-Server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server