Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

list_notes

Retrieve and display notes from NotesKeep with options to limit results and include archived items for efficient note management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of notes to return
includeArchivedNoInclude archived notes

Implementation Reference

  • The handler for the 'list_notes' MCP tool. It fetches notes from the NotesKeep API with optional limit and archive filtering.
    server.tool(
        "list_notes",
        {
            limit: z.number().optional().default(20).describe("Maximum number of notes to return"),
            includeArchived: z.boolean().optional().default(false).describe("Include archived notes"),
        },
        async ({ limit, includeArchived }) => {
            try {
                const params = new URLSearchParams();
                params.set("limit", limit.toString());
                if (includeArchived) params.set("includeArchived", "true");
    
                const data = await apiRequest(`/api/notes?${params}`);
    
                return {
                    content: [{
                        type: "text",
                        text: JSON.stringify(data.notes, null, 2)
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error listing notes: ${error}`
                    }],
                    isError: true
                };
            }
        }
    );

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/mariomosca/noteskeep-mcp'

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