XWiki MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
XWiki MCP Server
MCP (Model Context Protocol) server for interacting with XWiki instances. This server allows you to search, read, and create pages in XWiki through the REST API.
π Features
Article Search: Search pages in XWiki using the search API
Page Reading: Get the full content of any XWiki page
Page Creation/Update: Create or update pages in XWiki using XWiki syntax
Related MCP server: wikijs-mcp-rag
π Prerequisites
Docker and Docker Compose installed
Node.js 20+ (if running without Docker)
Access to an XWiki instance with REST API enabled
π§ Installation
Option 1: Using Docker (Recommended)
Clone the repository:
git clone https://github.com/alfredfs85/xwiki-mcp-server.git
cd xwiki-mcp-serverConfigure environment variables by creating a
.envfile:
XWIKI_URL=https://your-xwiki-instance.com
XWIKI_USERNAME=your_username
XWIKI_PASSWORD=your_password
XWIKI_WIKI=xwikiBuild and run the container:
docker-compose up -d --buildVerify the server is running:
curl http://localhost:3000/healthOption 2: Local Execution
Install dependencies:
npm installConfigure environment variables:
export XWIKI_URL=https://your-xwiki-instance.com
export XWIKI_USERNAME=your_username
export XWIKI_PASSWORD=your_password
export XWIKI_WIKI=xwikiRun the server:
node server.jsThe server will be available at http://localhost:3000
π SSL Configuration (Optional)
If you need HTTPS, you can use the setup.sh script to generate self-signed SSL certificates:
chmod +x setup.sh
./setup.sh --sslNote: Generated certificates (server.key and server.crt) are in .gitignore and will not be uploaded to the repository.
π‘ Endpoints
Health Check
GET /healthReturns the server status and XWiki configuration.
MCP JSON-RPC
POST /mcpMain endpoint for MCP communication using JSON-RPC 2.0.
Server-Sent Events (SSE)
GET /sse
POST /messages?sessionId={sessionId}Alternative endpoints for communication via Server-Sent Events.
π οΈ Available Tools
search_xwiki
Searches for articles in XWiki.
Parameters:
query(required): Search termlimit(optional): Maximum number of results (default: 10)
Example:
{
"method": "tools/call",
"params": {
"name": "search_xwiki",
"arguments": {
"query": "documentation",
"limit": 5
}
}
}get_xwiki_page
Gets the content of an XWiki page.
Parameters:
page_path(required): Page path (e.g.,Main.WebHomeorSpace.Page)
Example:
{
"method": "tools/call",
"params": {
"name": "get_xwiki_page",
"arguments": {
"page_path": "Main.WebHome"
}
}
}create_xwiki_page
Creates or updates a page in XWiki.
Parameters:
page_path(required): Page pathtitle(required): Page titlecontent(required): Content in XWiki syntax
Example:
{
"method": "tools/call",
"params": {
"name": "create_xwiki_page",
"arguments": {
"page_path": "Test.MyPage",
"title": "My Test Page",
"content": "= Title =\n\nPage content..."
}
}
}π Integration with Cursor/Claude Desktop
To use this MCP server with Cursor or Claude Desktop, add the following configuration to your MCP configuration file:
{
"mcpServers": {
"xwiki": {
"url": "http://localhost:3000/mcp",
"transport": "http"
}
}
}π³ Environment Variables
Variable | Description | Default |
| Server port |
|
| Your XWiki instance URL | - |
| Username for authentication | - |
| Password for authentication | - |
| Wiki name |
|
| MCP operation mode |
|
| Disable SSL validation (development only) |
|
π Security Notes
β οΈ Never commit credentials to the repository
β οΈ Self-signed SSL certificates are for development only
β οΈ In production, use valid certificates and set
NODE_TLS_REJECT_UNAUTHORIZED=1β οΈ The
.envfile is in.gitignorefor security
π€ Contributing
Contributions are welcome. Please:
Fork the project
Create a feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
π License
This project is licensed under the MIT License. See the LICENSE file for more details.
π Reporting Issues
If you encounter any issues, please open an issue on the GitHub repository.
π€ Author
alfredfs85
GitHub: @alfredfs85
π Acknowledgments
XWiki for their excellent platform and REST API
The Model Context Protocol team for the MCP standard
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Search and manage your team's knowledge from MCP clients.
Read and write your team's shared, AI-readable wiki from any MCP client.
Enable Large Language Model clients to interact seamlessly with any MediaWiki wiki. Perform actionβ¦
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, search, and write to a public wiki knowledge base via MCP.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to manage Wiki.js pages, users, and groups via CRUD tools and to perform semantic RAG search over wiki content with hybrid vector and lexical retrieval.MIT
- AlicenseNot gradedqualityAmaintenanceEnables LLM clients to read, search, create, edit, and manage pages, files, and metadata on any MediaWiki wiki through MCP tools, including extension packs for Semantic MediaWiki, Cargo, Wikibase, Bucket, and NeoWiki. Supports multiple wikis with OAuth authentication and configurable access controls.8 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables LLM clients to read, search, compare, create, edit, move, protect, and delete wiki pages, manage files, inspect site info and history, and query extension data from NeoWiki, Semantic MediaWiki, Cargo, Bucket, and Wikibase. Supports multiple wikis with optional OAuth authentication and per-wiki tool availability.8 npmMIT