MCP Server for Wolai — Connect AI agents to your Wolai knowledge base
Project description
Wolai MCP Server 🐺
Connect AI agents to your Wolai knowledge base via the Model Context Protocol (MCP).
Read, write, search, and navigate your Wolai pages — all from Claude, Gemini, Cursor, or any MCP-compatible AI agent.
✨ Features
| Category | Tools | Description |
|---|---|---|
| 📖 Read | get_page_content, list_child_blocks, get_root_info, get_breadcrumbs |
Read pages, list children, navigate hierarchy |
| 🔍 Search | search_pages_by_title |
Fuzzy title search across page tree |
| ✏️ Write | create_page, add_block, add_code_block |
Create pages, append text/lists/headings/code |
| ⚙️ Config | set_wolai_credentials, set_root_page, get_wolai_config |
Runtime credential & root page management |
11 tools total — covering read, write, search, and configuration.
🚀 Quick Start
Install
pip install wolai-mcp
Or install from source:
git clone https://github.com/LittlePeter52012/wolai-mcp.git
cd wolai-mcp
pip install -e .
Get Credentials
- Go to Wolai Developer Console
- Create an application → get App ID and App Secret
- Find the Root Page ID from your Wolai page URL
📋 Configuration
All credentials are passed via environment variables — no need to edit any code.
Environment Variables
| Variable | Description | Required |
|---|---|---|
WOLAI_APP_ID |
Wolai Application ID | ✅ |
WOLAI_APP_SECRET |
Wolai Application Secret | ✅ |
WOLAI_ROOT_ID |
Root page ID for your knowledge base | Optional (for search/navigation) |
🔧 Platform Configuration
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"wolai-kb": {
"command": "wolai-mcp",
"env": {
"WOLAI_APP_ID": "your_app_id",
"WOLAI_APP_SECRET": "your_app_secret",
"WOLAI_ROOT_ID": "your_root_page_id"
}
}
}
}
Claude Code
claude mcp add-json wolai-kb '{
"type": "stdio",
"command": "wolai-mcp",
"env": {
"WOLAI_APP_ID": "your_app_id",
"WOLAI_APP_SECRET": "your_app_secret",
"WOLAI_ROOT_ID": "your_root_page_id"
}
}' --scope user
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"wolai-kb": {
"command": "wolai-mcp",
"env": {
"WOLAI_APP_ID": "your_app_id",
"WOLAI_APP_SECRET": "your_app_secret",
"WOLAI_ROOT_ID": "your_root_page_id"
}
}
}
}
Cursor
Add to Cursor Settings → MCP:
{
"wolai-kb": {
"command": "wolai-mcp",
"env": {
"WOLAI_APP_ID": "your_app_id",
"WOLAI_APP_SECRET": "your_app_secret",
"WOLAI_ROOT_ID": "your_root_page_id"
}
}
}
💡 Usage Examples
Once configured, ask your AI agent:
- "读取我 Wolai 知识库的首页内容"
- "搜索标题包含'项目计划'的页面"
- "在首页下创建一个新页面叫'会议纪要'"
- "往指定页面添加一段代码"
- "显示当前 Wolai 配置状态"
🔐 Runtime Configuration
You can also change credentials at runtime without restarting:
set_wolai_credentials— Switch Wolai accountset_root_page— Change the root knowledge base pageget_wolai_config— Check current configuration
📄 License
MIT License — see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wolai_mcp-1.1.0.tar.gz.
File metadata
- Download URL: wolai_mcp-1.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf1ce0c94d676ad064ce0db15d53dc8910ab74d2558250da6b46a3b91cd64580
|
|
| MD5 |
edd1af09ab679c636ce6b9c33f54cf9a
|
|
| BLAKE2b-256 |
a49b0e47f3deca6419c1daf950b4bdcdab760bf21bdd8337ab7870da409b88b8
|
File details
Details for the file wolai_mcp-1.1.0-py3-none-any.whl.
File metadata
- Download URL: wolai_mcp-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b3f2327e1a1f7b310ae720ac2db0031de77a3227dd9692e38dc2863b7442dac
|
|
| MD5 |
37b4ea743884590c0a5545069398930e
|
|
| BLAKE2b-256 |
76e5ada5c83c8cf15c9427a0cbf394547d75e6fb18f98d00286a363a0880d99c
|