MCP
AI apps and agents that support the Model Context Protocol (MCP) can search, read, add, and edit your notes on the server.
Connect an App #
Create an API token, then add an MCP server in your app with:
- URL:
https://your-server.com/api/mcp - Transport: HTTP (streamable HTTP)
- Header:
Authorization: Bearer dnote_...
The app doesn’t need to sign in, because the token authenticates it. An app that runs in the cloud, not on your computer, can only connect if your server is reachable from the internet over HTTPS.
Tools #
Each tool runs the same code as the API endpoint it’s named after and returns the same JSON.
| Tool | Does | Scopes |
|---|---|---|
list_books | List books, optionally by part of a name | read:book |
create_book | Create a book | add:book |
update_book | Rename a book | edit:book |
delete_book | Delete a book and its notes | remove:book, remove:note |
list_notes | List or search notes | read:note |
get_note | Get a note | read:note |
create_note | Create a note | add:note |
update_note | Change a note’s content or book | edit:note |
delete_note | Delete a note | remove:note |
The app sees only the tools its token has scopes for, so give it only the read scopes if it shouldn’t change your notes. MCP accepts only API tokens, not session keys. Results longer than 100,000 characters are cut off.