Skip to main content
Glama
rncz

Nextcloud Notes MCP Server

by rncz

create_category

Create a new category in Nextcloud Notes by generating a subdirectory to organize your notes efficiently.

Instructions

Create a new category inside Notes by creating a subdirectory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
category_nameYes

Implementation Reference

  • The create_category tool handler, decorated with @mcp.tool(). Creates a category by ensuring the remote directory /Notes/{category_name} exists.
    @mcp.tool()
    def create_category(category_name: str) -> str:
        """
        Create a new category inside Notes by creating a subdirectory.
        """
        full_path = f"Notes/{category_name}"
        _ensure_remote_dir(full_path)
        return f"Category created successfully: {full_path}"
  • _ensure_remote_dir helper function called by create_category to create the category directory if it doesn't exist.
    def _ensure_remote_dir(path: str):
        """Ensure that a remote directory exists in Nextcloud."""
        try:
            client.mkdir(path)
        except Exception:
            # Folder probably already exists → ignore
            pass

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/rncz/nextcloud-notes-mcp-server'

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