nextcloud-mcp
Provides tools to interact with a Nextcloud instance: manage files via WebDAV, work with Deck boards/stacks/cards/comments, manage shares and Notes, and run search and ping/auth checks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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 |
|
Files (WebDAV) |
|
Deck | boards, stacks, cards, labels, assignees, comments ( |
Shares |
|
Notes app |
|
Transport:
Streamable HTTP (default) — for Docker / remote Cursor MCP
stdio — for local Cursor MCP (
--stdio)
Related MCP server: nextcloud-agent
Quick start (Docker)
Create an app password in Nextcloud: avatar → Personal settings → Security → App passwords.
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)Build and run:
docker compose up -d --build
curl -s http://127.0.0.1:3000/healthMCP 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
Remote HTTP (recommended with Docker)
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
nextcloud_ping— confirm auth and capabilities.files_mkdir/files_write— keep project notes, specs, and agent outputs in Files.deck_list_boards→deck_list_stacks→deck_create_card/deck_add_comment— track work on Deck.notes_*— scratchpads when the Notes app is installed.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 |
| yes | Instance URL, no trailing slash |
| yes | Login name |
| yes | App password (not your login password if 2FA is on) |
| HTTP mode | Bearer token for |
| no | Default |
| no | Subfolder jail for file tools |
| no | Max |
Development
npm ci
npm run dev # HTTP on :3000
npm run dev:stdio # stdio transport
npm test
npm run typecheckSecurity notes
Prefer an app password dedicated to this MCP server; revoke it anytime.
Treat
MCP_AUTH_TOKENlike an API key.This server can read/write anything the Nextcloud user can. Use a limited account and/or
NEXTCLOUD_FILES_ROOTwhen collaborating with agents.Binary
files_readresponses are base64; large files are rejected pastNEXTCLOUD_MAX_READ_BYTES.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP 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.57MIT
- AlicenseBqualityBmaintenanceEnables to manage Nextcloud files, user info, sharing, calendar, and contacts through optimized MCP tools with dynamic tool selection and enterprise-grade security.891MIT
- AlicenseNot gradedqualityAmaintenanceA 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.22AGPL 3.0
- AlicenseAqualityCmaintenanceConnects 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.23MIT