duke-book MCP Server
Manage Duke Bookmark notes, categories, and plan-enabled knowledge search over MCP.
duke-book scores 50 (Fair), with no SPDX license recorded. It installs as a local process. It does not declare tools yet. Filed under Search, Knowledge, Productivity. Package registries report about 43 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
50 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade C
55/100 for listing completeness. Lost points: short README, no listed tools, short summary.
How quality is graded
Where the 50 comes from
22 + 15 + 0 + 0 + 10 + 3 = 50. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "githubdujianfeng-duke-book": { "command": "npx", "args": [ "-y", "duke-book@0.1.5" ], "env": { "DUKE_API_BASE_URL": "", "DUKE_API_TOKEN": "YOUR_DUKE_API_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
DUKE_API_BASE_URL | Optional | Base URL of the Duke Bookmark service. |
DUKE_API_TOKENSecret | Required | Explicit-scope Duke Bookmark API token whose plan enables API_ACCESS and MCP_ACCESS; knowledge search also requires AI_RAG. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
duke-book
Expose Duke Bookmark notes, categories, and knowledge search to MCP clients such as Cursor, Claude Code, and VS Code.
Configuration
Create an API token in Duke Bookmark: API Docs / Token (/api-docs?tab=tokens).
DUKE_API_BASE_URL=http://localhost:3001
DUKE_API_TOKEN=your_api_token
DUKE_API_BASE_URL defaults to http://localhost:3001. DUKE_API_TOKEN is required for every tool, including duke_validate_token and duke_health_check. The token owner must have a current plan with API_ACCESS and MCP_ACCESS.
DUKE_API_TOKEN may be configured as either the raw token or Bearer <token>; the server normalizes it before calling Duke Bookmark.
Create an explicit-scope token with: notes:read, notes:write, notes:delete, categories:read, categories:write, knowledge:read, and profile:read. Legacy compatibility tokens are deliberately rejected by MCP even if their owner has a paid plan. duke_search_knowledge additionally requires the plan capability AI_RAG.
Every tool performs a commercial preflight and the actual Duke API request independently revalidates the API token, API_ACCESS, MCP_ACCESS, any domain capability, and the method-aware scope. X-Duke-Client: duke-book-mcp is only a server-side tightening hint after token verification; it is never treated as identity.
Local Usage
npm install
npm run build
$env:DUKE_API_BASE_URL="http://localhost:3001"
$env:DUKE_API_TOKEN="your_api_token"
npm start
After publishing to npm, clients can also run this server with npx -y duke-book.
Local Verification
Start Duke Bookmark first, then run:
npm run smoke
The smoke test always verifies that the MCP server starts and exposes all expected tools. If DUKE_API_TOKEN is set, it performs the authenticated commercial health check, reads /api/v1/token-info, and verifies the current plan, enabled features, and every scope required by MCP without performing a write.
To require a token during verification:
npm run smoke:token
Cursor
The project includes .cursor/mcp.json. Set DUKE_API_TOKEN in your local shell/user environment before starting Cursor:
{
"mcpServers": {
"duke-book": {
"command": "node",
"args": ["${workspaceFolder}/mcp-server/dist/index.js"],
"env": {
"DUKE_API_BASE_URL": "http://localhost:3001",
"DUKE_API_TOKEN": "${env:DUKE_API_TOKEN}"
}
}
}
}
Claude Code
claude mcp add duke-book -e DUKE_API_BASE_URL=http://localhost:3001 -e DUKE_API_TOKEN=your_api_token -- node D:/duke/mcp-server/dist/index.js
VS Code
The project includes .vscode/mcp.json. VS Code prompts for the token the first time the MCP server starts:
{
"inputs": [
{
"type": "promptString",
"id": "duke-api-token",
"description": "Duke Bookmark API Token",
"password": true
}
],
"servers": {
"dukeBook": {
"type": "stdio",
"command": "node",
"args": ["${workspaceFolder}/mcp-server/dist/index.js"],
"env": {
"DUKE_API_BASE_URL": "http://localhost:3001",
"DUKE_API_TOKEN": "${input:duke-api-token}"
}
}
}
}
Tools
duke_list_categoriesduke_search_notesduke_get_noteduke_create_noteduke_update_noteduke_delete_noteduke_create_categoryduke_search_knowledge(AI_RAGplusknowledge:read)duke_validate_tokenduke_health_check
Publishing Checklist
- Run
npm run smokeandnpm run smoke:token. - Publish the package with
npm publish --access public. - Publish
server.jsonto the MCP Registry or the target marketplace.
Full release notes are documented in docs/MCP发布流程.md.
Frequently asked questions
What is duke-book MCP Server?
Manage Duke Bookmark notes, categories, and plan-enabled knowledge search over MCP.
How do I install duke-book MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. duke-book MCP Server runs locally from the npm package duke-book with the command npx -y duke-book@0.1.5.
Does duke-book MCP Server support remote (HTTP) connections?
No remote endpoint is listed for duke-book MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is duke-book MCP Server's trust score calculated?
duke-book MCP Server scores 50 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.