# duke-book

> duke-book is an open-source MCP server. Manage Duke Bookmark notes, categories, and plan-enabled knowledge search over MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/githubdujianfeng/duke-book
- **MCP Registry name:** io.github.gitHubDujianfeng/duke-book
- **Listing updated:** 2026-11-13

## About

Manage Duke Bookmark notes, categories, and plan-enabled knowledge search over MCP.

## Install

### Claude Code (Terminal)

```sh
claude mcp add duke-book --env DUKE_API_TOKEN='<DUKE_API_TOKEN>' -- npx -y duke-book
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "duke-book": {
      "command": "npx",
      "args": [
        "-y",
        "duke-book"
      ],
      "env": {
        "DUKE_API_TOKEN": "<DUKE_API_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "duke-book": {
      "command": "npx",
      "args": [
        "-y",
        "duke-book"
      ],
      "env": {
        "DUKE_API_TOKEN": "<DUKE_API_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "duke-book": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "duke-book"
      ],
      "env": {
        "DUKE_API_TOKEN": "<DUKE_API_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "duke-book": {
      "command": "npx",
      "args": [
        "-y",
        "duke-book"
      ],
      "env": {
        "DUKE_API_TOKEN": "<DUKE_API_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "duke-book": {
      "command": "npx",
      "args": [
        "-y",
        "duke-book"
      ],
      "env": {
        "DUKE_API_TOKEN": "<DUKE_API_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is duke-book free?

Yes. duke-book is open source, so you can use and self-host it for free.

### How do I add duke-book to Claude Code?

Run this command in your terminal: claude mcp add duke-book --env DUKE_API_TOKEN='<DUKE_API_TOKEN>' -- npx -y duke-book

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/duke-book
