home / mcp / whkerdb mcp server
Provides access to WhkerDB capabilities for room management, note operations, annotations, PDFs, and images with real-time synchronization.
Configuration
View docs{
"mcpServers": {
"a-quark2005-whkerdb-mcp": {
"command": "node",
"args": [
"/absolute/path/to/whkerdb-mcp/dist/index.js"
],
"env": {
"WHKERDB_SERVER_URL": "https://share.whkerdb.top"
}
}
}
}You can run and integrate the WhkerDB MCP Server to enable AI assistants and third‑party apps to access full Shared PDF editor capabilities, including real-time collaboration, note management, annotations, and media handling through a consistent MCP interface.
You use an MCP client to connect to the WhkerDB MCP Server and perform actions such as creating rooms, managing notes, uploading PDFs and images, and annotating content. Start by launching the MCP server in stdio mode, then configure your client to point at the local server or the online endpoint. When connected, you can perform combined workflows like creating a room, adding documents, and applying annotations, with changes syncing in real time to all connected clients.
Prerequisites you need before installation: Node.js version 18 or newer, and a package manager such as pnpm (recommended) or npm/yarn. You also need access to a running WhkerDB server or an online service to connect to.
# Clone the MCP server repository
git clone https://github.com/A-Quark2005/whkerdb-mcp.git
cd whkerdb-mcp
# Install dependencies
pnpm install
# Build the project
pnpm buildAfter building, you can start the MCP server in stdio mode. Set the server URL environment variable if you want to point to a specific remote WhkerDB server, otherwise it defaults to the online service.
# Set the WhkerDB server URL (optional, defaults to https://share.whkerdb.top)
export WHKERDB_SERVER_URL=https://share.whkerdb.top
# Start the MCP server in stdio mode
pnpm startYou can test the MCP interface using the MCP Inspector in stdio mode, which opens an interactive session against the local or remote server.
npx @modelcontextprotocol/inspector stdio node dist/index.jsConfigure client applications to connect to the MCP server by providing the server URL and the path to the MCP entry script when using local stdio mode. The WhkerDB MCP Server exposes capabilities for rooms, notes, annotations, PDFs, and images, and keeps all connected clients in sync via Socket.IO.
The server exposes a suite of tools to manage rooms, notes, annotations, PDFs, and images. You can create and join rooms, browse and modify the note tree, add text or image annotations, upload PDFs, and manage media associated with a room. The system supports real-time synchronization to keep collaborators in sync.
Example workflows include creating a new project room, adding a PDF document, and annotating pages, then sharing the room with teammates for live collaboration.
Ensure you use a trusted WhkerDB server URL and manage access to rooms carefully. Real-time synchronization is enabled via Socket.IO, so monitor connected clients and manage permissions accordingly.
Create a new collaboration room.
Join a room by ID or invite code.
Retrieve information about a room.
List rooms you have joined.
Export a snapshot of a room.
Leave a room.
Get the note tree structure for a room.
Add a file node to the note tree.
Add a page node under a file.
Delete a node from the note tree.
Move a node within the tree.
Update node properties.
Get details of a node.
Retrieve annotations and objects on a page.
Add a text annotation.
Add a path annotation (pen/highlighter).
Add an image annotation.
Update an annotation object.
Delete an annotation object.
Upload a PDF file.
List PDFs in a room.
Get information about a PDF.
Upload an image into a room.
List images in a room.