Skip to main content
Glama
README.md
# Leanote MCP Connector

**MCP** tools for connecting to any Leanote server

## Quick start

Use this option to run the server via `npx` directly from the Git repository (no local clone needed).

```json
{
  "mcpServers": {
    "leanote": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "github:PascalNoisette/leanote-clipper-mcp", "mcp"],
      "env": {
        "LEANOTE_EMAIL": "demo@leanote.com",
        "LEANOTE_PWD": "demo",
        "LEANOTE_URL": "http://localhost:3000"
      }
    }
  }
}
```
*(Replace `owner/leanote-simulation` with your actual GitHub owner/repository name).*



## Test

A standalone Node.js simulation of the [Leanote](https://github.com/leanote/leanote) web-clipper server API is provided. 

- **Drop-in replacement** for a Leanote server instance
- **5 API endpoints** matching the web-clipper client exactly:
  - `POST /api/auth/login` — Authentication
  - `GET /api/notebook/getNotebooks` — List notebooks
  - `GET /api/notebook/getSyncNotebooks` — Sync notebooks with filters
  - `POST /api/note/addNote` — Create notes (HTML content)
  - `POST /api/file/upload` — Upload images

- **Notes are stored as Markdown files** in a local directory
- **In-memory store session** with pre-seeded demo data
- **Token-based auth** matching Leanote's exact error format (`NOTLOGIN`) with credentials seeded from a YAML file.

```
  npx -y github:PascalNoisette/leanote-clipper-mcp serve
```