Skip to main content
Glama

get_notes

Retrieve notes from NotePlan to access and review your content directly within Claude conversations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool registration and inline handler for 'get_notes'. Fetches all notes from noteService.getAllNotes() and returns formatted JSON in MCP content structure.
    'get_notes', {}, async () => { const notes = noteService.getAllNotes(); return { content: [ { type: 'text', text: JSON.stringify(notes, null, 2), }, ], }; } );
  • Core helper function getAllNotes() that implements note loading with caching from filesystem or mock data, called by the get_notes handler.
    function getAllNotes(): Note[] { const now = Date.now(); // Use cache if still valid if (notesCache.length > 0 && (now - lastCacheUpdate) < CACHE_DURATION) { return notesCache; } // Refresh cache notesCache = loadNotesFromFileSystem(); lastCacheUpdate = now; return notesCache; }
  • TypeScript interface defining the Note structure used in responses from get_notes tool.
    interface Note { id: string; title: string; content: string; created: string; modified: string; folder: string; filePath?: string; filename?: string; type?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bscott/noteplan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server