ONES Wiki MCP Server
A Spring AI MCP-based service for retrieving ONES Wiki content and converting it to AI-friendly text format.
Features
- 🔐 ONES platform authentication support
- 🌐 Automatic conversion from Wiki URLs to API endpoints
- 📄 Extract and format Wiki page content
- 🤖 AI-friendly text output format
- ⚙️ Configuration via properties file or command line arguments
Prerequisites
- Java 17 or higher
- Maven 3.6 or higher
- Access to a ONES platform instance
Quick Start
1. Build the Project
mvn clean package
2. Configure Authentication
Option 1: Modify application.properties
Edit src/main/resources/application.properties:
ones.host=your-ones-host.com
[email protected]
ones.password=your-password
Option 2: Use Command Line Arguments
java -jar target/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar \
--ones.host=your-ones-host.com \
[email protected] \
--ones.password=your-password
Option 3: Use Environment Variables
export ONES_HOST=your-ones-host.com
export [email protected]
export ONES_PASSWORD=your-password
./start-mcp-server.sh
3. Configure in MCP Client
Add to Claude Desktop configuration file:
{
"mcpServers": {
"ones-wiki": {
"command": "java",
"args": [
"-jar",
"/path/to/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar",
"--ones.host=your-ones-host.com",
"[email protected]",
"--ones.password=your-password"
]
}
}
}
Usage
Get Wiki Content
Provide the complete Wiki page URL when using the tool:
Please get the content of this Wiki page: https://your-ones-host.com/wiki/#/team/TEAM_UUID/space/SPACE_UUID/page/PAGE_UUID
URL Format
Supported Wiki URL format:
https://{host}/wiki/#/team/{team_uuid}/space/{space_uuid}/page/{page_uuid}
Automatically converts to API endpoint:
https://{host}/wiki/api/wiki/team/{team_uuid}/online_page/{page_uuid}/content
Output Format
The service converts Wiki page HTML content to structured Markdown format, including:
- ✅ Heading levels (H1-H6)
- ✅ Paragraph text
- ✅ Ordered and unordered lists
- ✅ Table data (key-value format)
- ✅ Image descriptions
- ✅ Link information
- ❌ Strikethrough content (automatically filtered)
Technical Architecture
- Spring Boot 3.4.5 - Application framework
- Spring AI MCP - MCP protocol support
- Jsoup 1.17.2 - HTML parsing
- RestClient - HTTP client
Security Notes
- Authentication credentials should be managed via environment variables or configuration files
- HTTPS connections supported
- Automatic handling of ONES platform login authentication
Development
Project Structure
src/main/java/org/springframework/ai/mcp/sample/server/
├── McpServerApplication.java # Main application
└── OnesWikiService.java # ONES Wiki service
Running Tests
mvn test
Building from Source
git clone https://github.com/your-username/ones-wiki-mcp-server.git
cd ones-wiki-mcp-server
mvn clean package
Extending Functionality
You can add more tool methods to OnesWikiService, such as:
- Search Wiki pages
- Get Wiki directory structure
- Batch process multiple pages
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
Apache License 2.0
Recommend MCP Servers 💡
cfbd-mcp-server
An MCP server that provides access to comprehensive college football statistics and data from the College Football Data API V2, enabling AI assistants like Claude Desktop to query game results, team records, player statistics, and more using natural language.
mcp-server-odoo
A Model Context Protocol (MCP) server that enables AI assistants to securely interact with Odoo ERP systems through standardized resources and tools for data retrieval and manipulation.
@r-huijts/oorlogsbronnen-mcp
MCP server for accessing Dutch World War II archives through the Oorlogsbronnen API. Provides structured access to historical records, photographs, and documents from 1940-1945 Netherlands.
project-mem-mcp
An MCP server for AI agents to store and retrieve project information persistently via a memory file.
pab1it0/chess-mcp
A Model Context Protocol server for Chess.com's Published Data API. This provides access to Chess.com player data, game records, and other public information through standardized MCP interfaces, allowing AI assistants to search and analyze chess information.
mcp-postman
An MCP server that enables running Postman collections using Newman, allowing LLMs to execute API tests and get detailed results.