Skip to main content
Glama
mariomosca

NotesKeep MCP Server

by mariomosca

list_labels

Retrieve all available labels to organize and categorize notes within the NotesKeep MCP Server for efficient note management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'list_labels' tool, which fetches labels from the API and returns them as a JSON-formatted text response.
    server.tool(
        "list_labels",
        {},
        async () => {
            try {
                const data = await apiRequest("/api/labels");
    
                return {
                    content: [{
                        type: "text",
                        text: JSON.stringify(data.labels, null, 2)
                    }]
                };
            } catch (error) {
                return {
                    content: [{
                        type: "text",
                        text: `Error listing labels: ${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