Skip to main content
Glama

nextcloud-mcp

Docker-deployable Model Context Protocol server that lets Cursor (and other MCP clients) collaborate with you through your Nextcloud instance.

Use Files for docs and artifacts, Deck for boards/cards/comments, plus Shares, Notes, and Search.

Features

Area

Tools

System

nextcloud_ping, files_search

Files (WebDAV)

files_list, files_stat, files_read, files_write, files_mkdir, files_delete, files_move, files_copy

Deck

boards, stacks, cards, labels, assignees, comments (deck_*)

Shares

shares_list, shares_create, shares_delete

Notes app

notes_list, notes_get, notes_create, notes_update, notes_delete

Transport:

  • Streamable HTTP (default) — for Docker / remote Cursor MCP

  • stdio — for local Cursor MCP (--stdio)

Related MCP server: nextcloud-agent

Quick start (Docker)

  1. Create an app password in Nextcloud: avatar → Personal settings → Security → App passwords.

  2. Copy env and fill in values:

cp .env.example .env
# edit .env — set NEXTCLOUD_URL, NEXTCLOUD_USERNAME, NEXTCLOUD_APP_PASSWORD,
# and a long random MCP_AUTH_TOKEN (e.g. openssl rand -hex 32)
  1. Build and run:

docker compose up -d --build
curl -s http://127.0.0.1:3000/health

MCP endpoint: http://<host>:3000/mcp
Auth: Authorization: Bearer <MCP_AUTH_TOKEN>

Reverse proxy tip

Terminate TLS in front of the container (Caddy, Traefik, nginx). Keep MCP_AUTH_TOKEN required; do not expose /mcp publicly without auth.

Connect from Cursor

In Cursor MCP settings, add a server similar to:

{
  "mcpServers": {
    "nextcloud": {
      "url": "https://mcp.example.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_AUTH_TOKEN"
      }
    }
  }
}

(Exact UI/fields vary by Cursor version; use Streamable HTTP / remote MCP with the bearer header.)

Local stdio

npm ci && npm run build
{
  "mcpServers": {
    "nextcloud": {
      "command": "node",
      "args": ["/absolute/path/to/nextcloud-mcp/dist/index.js", "--stdio"],
      "env": {
        "NEXTCLOUD_URL": "https://cloud.example.com",
        "NEXTCLOUD_USERNAME": "you",
        "NEXTCLOUD_APP_PASSWORD": "xxxx-xxxx-xxxx-xxxx"
      }
    }
  }
}

Collaboration workflow

  1. nextcloud_ping — confirm auth and capabilities.

  2. files_mkdir / files_write — keep project notes, specs, and agent outputs in Files.

  3. deck_list_boards → deck_list_stacks → deck_create_card / deck_add_comment — track work on Deck.

  4. notes_* — scratchpads when the Notes app is installed.

  5. shares_create — share a folder or file with a teammate or public link when needed.

Optional: set NEXTCLOUD_FILES_ROOT=Projects/Agent so file tools stay inside one project folder.

Configuration

Variable

Required

Description

NEXTCLOUD_URL

yes

Instance URL, no trailing slash

NEXTCLOUD_USERNAME

yes

Login name

NEXTCLOUD_APP_PASSWORD

yes

App password (not your login password if 2FA is on)

MCP_AUTH_TOKEN

HTTP mode

Bearer token for /mcp

PORT / HOST

no

Default 3000 / 0.0.0.0

NEXTCLOUD_FILES_ROOT

no

Subfolder jail for file tools

NEXTCLOUD_MAX_READ_BYTES

no

Max files_read size (default 1 MiB)

Development

npm ci
npm run dev          # HTTP on :3000
npm run dev:stdio    # stdio transport
npm test
npm run typecheck

Security notes

  • Prefer an app password dedicated to this MCP server; revoke it anytime.

  • Treat MCP_AUTH_TOKEN like an API key.

  • This server can read/write anything the Nextcloud user can. Use a limited account and/or NEXTCLOUD_FILES_ROOT when collaborating with agents.

  • Binary files_read responses are base64; large files are rejected past NEXTCLOUD_MAX_READ_BYTES.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      MCP server for Nextcloud Collectives that exposes collectives, pages, tags, attachments, page history, and trash to Claude and MCP-compatible clients via OCS API and WebDAV.
      57
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      A native Nextcloud app that exposes the instance as an MCP server so Claude and other MCP clients can read, search, and (with admin-granted permissions) edit files, notes, calendars, Deck cards, and Talk conversations. It runs inside Nextcloud with OAuth or app-password sign-in, applying each user's own Nextcloud permissions and admin-controlled per-operation grants.
      22
      AGPL 3.0
    • A
      license
      A
      quality
      C
      maintenance
      Connects any MCP client to a Nextcloud instance through official WebDAV and OCS APIs, enabling browsing, searching, uploading, downloading, copying, moving, and deleting files and folders, plus managing favorites, public links and user/group shares, and the trash bin. Authentication uses the browser-based Login Flow with a saved app password.
      23
      MIT