by ProfessionalWiki
MediaWiki-MCP-Server is a Model Context Protocol (MCP) Server that allows Large Language Model (LLM) clients to interact with any MediaWiki wiki.
MediaWiki-MCP-Server is an MCP (Model Context Protocol) server designed to enable Large Language Model (LLM) clients to interact seamlessly with any MediaWiki wiki. It acts as a bridge, allowing LLMs to perform various operations on a wiki, such as creating, retrieving, and updating pages.
MediaWiki-MCP-Server can be installed and used with various MCP clients. Installation methods include:
npx -y @smithery/cli install @ProfessionalWiki/mediawiki-mcp-server --client claude
command.npx @professional-wiki/mediawiki-mcp-server@latest
.For development, you can use npm run dev
to start the development server and MCP Inspector, or npm run watch
to compile source changes and test with MCP clients.
MediaWiki-MCP-Server offers a set of tools for interacting with MediaWiki wikis:
create-page
(π Requires OAuth 2.0 token): Create a new wiki page.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.search-page
: Search wiki page titles and contents for provided search terms.set-wiki
: Set the wiki to use for the current session.update-page
(π Requires OAuth 2.0 token): Update an existing wiki page.It also supports environment variables for configuration, such as CONFIG
(path to configuration file), MCP_TRANSPORT
(type of MCP server transport), and PORT
(port for StreamableHTTP transport).
search-page
and get-page
tools to intelligently retrieve specific information from a MediaWiki wiki based on user queries.create-page
and update-page
tools, an OAuth 2.0 token is required. This token is obtained via Special:OAuthConsumerRegistration/propose/oauth2
provided by the MediaWiki OAuth extension.make dev
) or utilize the MCP Inspector by running npm run dev
. For testing with MCP clients, run npm run watch
.LICENSE
file.An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.
π Requires OAuth 2.0 token in configuration: Obtained via
Special:OAuthConsumerRegistration/propose/oauth2
provided by the OAuth extension. Select "This consumer is for use only by UserName"
Name | Description |
---|---|
create-page π |
Create a new wiki page. |
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. |
search-page |
Search wiki page titles and contents for the provided search terms. |
set-wiki |
Set the wiki to use for the current session. |
update-page π |
Update an existing wiki page. |
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 |
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"
]
}
}
}
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": {
"WIKI_SERVER": "your.example.wiki",
"OAUTH_TOKEN": ""
}
}
},
π Develop with Docker: Replace the
npm run
part of the command withmake
(e.g.make dev
).
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
.
To enable your MCP client to use this MediaWiki MCP Server for local development:
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
.
Run the watch command so that the source will be compiled whenever there is a change:
npm run watch
Contributions are welcome! Please feel free to submit a pull request or open an issue for bugs, feature requests, or suggestions.
This project is licensed under the GPL 2.0 License. See the LICENSE file for details.
Please log in to share your review and rating for this MCP.