nc-mcp-server
Provides tools for managing Nextcloud files, sharing, calendar, contacts, tasks, mail, collectives, forms, circles, cospend, and more.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nc-mcp-serverlist files in my Documents folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nextcloud MCP Server
Experimental — This repository is fully maintained by AI (Claude). It serves as an experiment in autonomous AI-driven open-source development.
An MCP (Model Context Protocol) server that exposes Nextcloud APIs as tools for AI assistants. Connect any MCP-compatible client (Claude Desktop, Claude Code, etc.) to your Nextcloud instance and let AI manage your files, calendar, contacts, conversations, and more.
Quick Start
pip install nc-mcp-serverSet environment variables and connect:
export NEXTCLOUD_URL=https://your-nextcloud.example.com
export NEXTCLOUD_USER=your-username
export NEXTCLOUD_PASSWORD=your-app-password
nc-mcp-serverRelated MCP server: pyfastmail-mcp
140 Tools Across 23 Nextcloud Apps
A 141st tool, upload_file_from_path, is registered only when the operator sets
NEXTCLOUD_MCP_UPLOAD_ROOT. See Files for details.
Category | Tools | Protocol |
list, read, search, upload (text / binary / from path), copy, move, delete | WebDAV | |
list, get, create, update, delete shares | OCS | |
list, restore, delete item, empty trash | WebDAV | |
list, restore versions | WebDAV | |
list, add, edit, delete comments | WebDAV | |
get, set, remove per-file reminders | OCS | |
list, create, assign, unassign, delete tags | WebDAV | |
get current, list, get, create, delete users | OCS | |
get, set, clear status | OCS | |
list, dismiss one, dismiss all | OCS | |
get activity feed with filtering | OCS | |
conversations, messages, participants | OCS | |
get, create, vote, close polls | OCS | |
list, create, delete announcements | OCS | |
list calendars, CRUD events | CalDAV | |
list address books, CRUD contacts | CardDAV | |
list lists, CRUD tasks, complete | CalDAV | |
accounts, mailboxes, messages, send | OCS | |
list, pages, create, trash, restore | OCS | |
CRUD forms, questions, options, shares, submissions + export | OCS | |
list, CRUD, members (add/remove/promote), join/leave, search | OCS | |
shared expense tracking — projects, members, bills | OCS | |
list providers, search across apps | OCS | |
list, info, enable, disable apps | OCS |
Security: Permission Model
Every tool has a required permission level. You control what the AI is allowed to do:
Level | What it can do | Environment variable |
| List files, read files, get users, view notifications |
|
| Everything in |
|
| Everything in |
|
If a tool is called without sufficient permission, it returns a clear error explaining what permission is needed — no silent failures, no accidental deletions.
Installation
pip install nc-mcp-serverOr with pipx / uvx for isolated installation:
pipx install nc-mcp-server
# or
uvx nc-mcp-serverOr from source:
git clone https://github.com/cloud-py-api/nc_mcp_server.git
cd nc_mcp_server
pip install -e .Configuration
Set these environment variables:
# Required
export NEXTCLOUD_URL=https://your-nextcloud.example.com
export NEXTCLOUD_USER=your-username
export NEXTCLOUD_PASSWORD=your-app-password # Use an app password, not your main password!
# Optional
export NEXTCLOUD_MCP_PERMISSIONS=read # read (default), write, or destructive
export NEXTCLOUD_MCP_RETRY_MAX=3 # max retries on 429/503 (default: 3, 0 to disable)
export NEXTCLOUD_MCP_UPLOAD_ROOT= # unset (default). If set to an absolute directory,
# enables upload_file_from_path, restricted to files
# inside that directory (symlinks resolved).Getting an App Password
Log into your Nextcloud instance
Go to Settings > Security
Under "Devices & sessions", create a new app password
Use this password for
NEXTCLOUD_PASSWORD
Usage
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"nextcloud": {
"command": "nc-mcp-server",
"env": {
"NEXTCLOUD_URL": "https://your-nextcloud.example.com",
"NEXTCLOUD_USER": "your-username",
"NEXTCLOUD_PASSWORD": "your-app-password",
"NEXTCLOUD_MCP_PERMISSIONS": "read"
}
}
}
}With Claude Code
claude mcp add nextcloud \
-e NEXTCLOUD_URL=https://your-nextcloud.example.com \
-e NEXTCLOUD_USER=your-username \
-e NEXTCLOUD_PASSWORD=your-app-password \
-e NEXTCLOUD_MCP_PERMISSIONS=read \
-- nc-mcp-serverAs HTTP Server (for containers/remote)
nc-mcp-server --transport http
# Listens on http://0.0.0.0:8100 by defaultStdio Mode (default)
nc-mcp-server
# Communicates via stdin/stdout — used by MCP clients like Claude DesktopAvailable Tools
Files
Tool | Permission | Description |
| read | List files and folders in a directory |
| read | Read a file's content (returns images as MCP ImageContent) |
| read | Search files by name, MIME type, or path pattern |
| write | Upload or overwrite a text file |
| write | Upload or overwrite a binary file (images, PDFs, archives) from base64-encoded content |
| write | Stream a local file from the server's filesystem — only registered when |
| write | Create a new directory |
| write | Copy a file or directory |
| destructive | Move or rename a file |
| destructive | Delete a file or directory (moves to trash) |
upload_file_from_path is off by default because it gives the AI read access
to the local filesystem. To enable it, set NEXTCLOUD_MCP_UPLOAD_ROOT to an
absolute directory — only files resolving inside that directory (after symlink
resolution) can be uploaded. This is the right choice when you need to upload
multi-GB files that would blow past the size limit of an inline base64 tool
call; the body is streamed in chunks rather than loaded into memory.
File Sharing
Tool | Permission | Description |
| read | List shares for a file/folder or all shares |
| read | Get details of a specific share |
| write | Share a file/folder (user, group, public link, email) |
| write | Update share permissions, expiration, password, etc. |
| destructive | Remove a share |
Trashbin
Tool | Permission | Description |
| read | List deleted files in the trash bin |
| write | Restore a file from trash to its original location |
| destructive | Permanently delete a single item from trash |
| destructive | Permanently delete all items in trash |
File Versions
Tool | Permission | Description |
| read | List version history of a file |
| write | Restore a previous version of a file |
File Comments
Tool | Permission | Description |
| read | List comments on a file |
| write | Add a comment to a file |
| write | Edit an existing comment |
| destructive | Delete a comment |
File Reminders
Tool | Permission | Description |
| read | Get the reminder set on a file (null if none) |
| write | Set or replace a reminder due date (ISO 8601, must be in the future) |
| destructive | Remove the reminder from a file |
System Tags
Tool | Permission | Description |
| read | List all available tags |
| read | Get tags assigned to a file |
| write | Create a new tag |
| write | Assign a tag to a file |
| destructive | Remove a tag from a file |
| destructive | Delete a tag |
Users
Tool | Permission | Description |
| read | Get current authenticated user info |
| read | List or search users |
| read | Get specific user details |
| write | Create a new user (admin only) |
| destructive | Delete a user (admin only) |
User Status
Tool | Permission | Description |
| read | Get a user's status (online, away, dnd, etc.) |
| write | Set your status and custom message |
| destructive | Clear your status |
Notifications
Tool | Permission | Description |
| read | List all notifications |
| write | Dismiss a single notification |
| write | Dismiss all notifications |
Activity
Tool | Permission | Description |
| read | View recent activity with filtering, sorting, and pagination |
Talk
Tool | Permission | Description |
| read | List all Talk conversations |
| read | Get conversation details |
| read | Get messages from a conversation |
| read | List participants in a conversation |
| write | Send a message to a conversation |
| write | Create a new conversation |
| destructive | Delete a message |
| destructive | Leave a conversation |
Talk Polls
Tool | Permission | Description |
| read | Get poll details and results |
| write | Create a poll in a conversation |
| write | Vote on a poll |
| write | Close a poll |
Announcements
Tool | Permission | Description |
| read | List announcements |
| write | Create an announcement |
| destructive | Delete an announcement |
Calendar
Tool | Permission | Description |
| read | List user's calendars |
| read | Get events from a calendar (with date filtering) |
| read | Get a single event by UID |
| write | Create a calendar event |
| write | Update an event (partial updates supported) |
| destructive | Delete a calendar event |
Contacts
Tool | Permission | Description |
| read | List user's address books |
| read | Get contacts with pagination |
| read | Get a single contact by UID |
| write | Create a contact (multi-value email/phone supported) |
| write | Update a contact (ETag concurrency control) |
| destructive | Delete a contact |
Tasks
Tool | Permission | Description |
| read | List task lists (CalDAV VTODO collections) |
| read | List tasks in a list (with status/completed filters) |
| read | Get a single task by UID |
| write | Create a task (due date, priority, categories, etc.) |
| write | Update a task (partial updates supported) |
| write | Mark a task as completed |
| destructive | Delete a task |
Tool | Permission | Description |
| read | List mail accounts |
| read | List mailboxes (folders) for an account |
| read | List messages in a mailbox |
| read | Get full message content |
| write | Send an email |
Collectives
Tool | Permission | Description |
| read | List all collectives |
| read | List pages in a collective |
| read | Get a page's content |
| write | Create a new collective |
| write | Create a page in a collective |
| destructive | Move a collective to trash |
| destructive | Permanently delete a trashed collective |
| destructive | Move a page to trash |
| destructive | Permanently delete a trashed page |
| write | Restore a collective from trash |
| write | Restore a page from trash |
Forms
Tool | Permission | Description |
| read | List forms (filter by ownership: "owned" or "shared"; omit to merge both) |
| read | Get a form with questions, options, shares |
| read | List questions on a form |
| read | Get a single question |
| read | List submissions (owner only), with pagination and text filter |
| read | Get a single submission with answers |
| write | Create an empty form or clone from an existing form |
| write | Update form properties (title, access, state, maxSubmissions, etc.) |
| write | Add a question (short, long, multiple, dropdown, date, file, grid, …) |
| write | Update question properties |
| write | Reorder all questions on a form |
| write | Add answer options to a choice question |
| write | Update option text |
| write | Reorder options within a question |
| write | Share a form with user, group, circle, or link |
| write | Update share permissions |
| write | Submit answers to a form |
| write | Edit an existing submission (requires allowEditSubmissions) |
| write | Export submissions as a spreadsheet to a Nextcloud folder |
| destructive | Delete a form and all its content |
| destructive | Delete a question |
| destructive | Delete an option |
| destructive | Revoke a share |
| destructive | Delete one submission |
| destructive | Delete every submission on a form |
Circles (Teams)
Tool | Permission | Description |
| read | List circles the current user can see |
| read | Get a single circle including the current user's membership |
| read | List members of a circle |
| read | Search circles and candidate members (users/groups/mail) by term |
| write | Create a circle; caller becomes owner |
| write | Rename a circle |
| write | Update description |
| write | Update config bitmask (VISIBLE, OPEN, INVITE, HIDDEN, etc.) |
| write | Add a user, group, email, or nested circle as a member |
| write | Promote/demote a member (member/moderator/admin/owner) |
| write | Join an open circle |
| write | Leave a circle |
| destructive | Delete a circle |
| destructive | Kick a member |
Cospend
Shared expense tracking ("who paid for what"). Requires the Cospend app to be installed and enabled. All routes are OCS at /ocs/v2.php/apps/cospend/api/v1/.
Tool | Permission | Description |
| read | List projects the user can access |
| read | Get full project info (members, balance, shares, settings) |
| read | Per-member spending stats (paid/spent/balance) with filters |
| read | Suggested reimbursement transactions to settle a project |
| read | List members of a project |
| read | List bills with filters (payer, category, search, pagination) |
| read | Get a single bill |
| write | Create a project (caller becomes ADMIN) |
| write | Update project name, currency, sort, archive, etc. |
| write | Add a member (free-form name or linked to a Nextcloud user) |
| write | Update name/weight/color/activated/userid |
| write | Create a bill (defaults date to today if neither date nor timestamp set) |
| write | Update any bill field |
| destructive | Delete a project and all its data |
| destructive | Delete (or soft-disable if member has bills) |
| destructive | Delete a bill (default: trash; pass |
Unified Search
Tool | Permission | Description |
| read | List available search providers (files, mail, talk, etc.) |
| read | Search across one or more providers with pagination |
App Management
Tool | Permission | Description |
| read | List installed apps |
| read | Get detailed app information |
| write | Enable an app (admin only) |
| destructive | Disable an app (admin only) |
Development
# Clone and install
git clone https://github.com/cloud-py-api/nc_mcp_server.git
cd nc_mcp_server
python3 -m venv venv && source venv/bin/activate
pip install -e ".[dev]"
# Run tests
pytest # Unit tests
pytest tests/integration/ -v # Integration tests (needs running Nextcloud)
# Lint & type check
ruff check . && ruff format --check .
pyrightIntegration Tests
Integration tests run against a real Nextcloud instance. Set the environment variables and run:
export NEXTCLOUD_URL=http://localhost:8080
export NEXTCLOUD_USER=admin
export NEXTCLOUD_PASSWORD=admin
pytest tests/integration/ -vCI automatically runs integration tests against the two newest released Nextcloud versions — currently 32 and 33 — using the official Docker images. Nextcloud 34 (GA 2026-06-09) joins the matrix once its image is published on Docker Hub.
About This Project
This project is an experiment in AI-autonomous open-source development. The entire codebase — including this README — is written and maintained by Claude (Anthropic's AI assistant). Human oversight is limited to:
High-level design decisions
Code review of pull requests
Resolving architectural questions
The goal is to explore how far autonomous AI development can go in building production-quality, well-tested software.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/cloud-py-api/nc_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server