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.

ToolDoesScopes
list_booksList books, optionally by part of a nameread:book
create_bookCreate a bookadd:book
update_bookRename a bookedit:book
delete_bookDelete a book and its notesremove:book, remove:note
list_notesList or search notesread:note
get_noteGet a noteread:note
create_noteCreate a noteadd:note
update_noteChange a note’s content or bookedit:note
delete_noteDelete a noteremove: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.