Nextcloud Control Plane MCP Server
This server lets you administer a Dockerized Nextcloud instance via OCC commands through MCP.
Get Nextcloud system status (
get_status)List trusted domains (
get_trusted_domains)Add trusted domains (
add_trusted_domain)Optimize the database (
optimize_db) — adds missing indices, columns, primary keys, and converts filecache bigintExport Deck boards for a user (
export_deck)Run arbitrary OCC commands (
run_occ), with full administrative control and potentially destructive side effects
Manage and administer a Nextcloud instance via OCC commands, including running arbitrary OCC commands, checking status, managing trusted domains, and optimizing the database.
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., "@Nextcloud Control Plane MCP Servercheck the health of my Nextcloud instance"
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.
module_type: mcp-server
status: active
protocol: mcp
primary_capability: nextcloud-administration
requires: docker, python>=3.10
works_with: nextcloud
last_verified: 2026-08-30Nextcloud Control Plane MCP Server
Status: Active | Last Verified Date: 2026-08-30
Provides a Model Context Protocol (MCP) server for managing and administering Nextcloud instances via dockerized OCC commands.
What it does / does not do
What it does: Provides an MCP server that securely interfaces with a local Dockerized Nextcloud deployment via OCC (php occ) commands. It allows AI agents to retrieve Nextcloud system status, view/manage trusted domains, perform database optimizations, export Deck Kanban data, and execute arbitrary OCC commands.
What it does not do: It does not run Nextcloud itself; it only controls a running Nextcloud Docker container (default: nextcloud_app_1). It interfaces via Docker Exec, not over HTTP via Nextcloud's Provisioning API.
Related MCP server: Nextcloud MCP Server
Why an agent would use it
Agents can use this to administer, configure, troubleshoot, and maintain a Nextcloud instance without requiring SSH access or manual GUI interaction, fully automating tasks like adding trusted domains when network topology changes, optimizing the database after upgrades, or exporting Deck boards.
Architecture and dependencies
Language: Python 3.10+
Protocol: Model Context Protocol (FastMCP)
Integrations: Executes commands against the local Docker daemon via
asyncio.create_subprocess_exec.Dependencies:
mcp>=1.0.0, local Docker CLI.
Compatibility
Linux, macOS, or any host with a functional Docker CLI.
Compatible with any MCP client (Claude Desktop, Antigravity).
Designed for Nextcloud containers running with the
www-datauser.
Quick start and health check
pip install -e .
nextcloud-mcp-controlHealth Check: Once connected via an MCP client, call the get_status tool to verify successful OCC communication with the container.
Configuration and environment variables
Variable | Description | Default |
| Target Nextcloud Docker container name |
|
No other external environment variables are required beyond the host's standard Docker configuration.
Complete MCP tool/API table with side effects
Tool/API | Description | Side Effects |
| Gets Nextcloud system status via | None: Read-only operation. |
| Lists configured trusted domains in Nextcloud. | None: Read-only operation. |
| Adds a new trusted domain to Nextcloud configuration. | Modifies State: Updates |
| Runs missing indices, missing columns, missing primary keys, and filecache bigint conversions. | Modifies State: Alters database schema and indices. |
| Exports Nextcloud Deck boards and cards for a specific user via | None: Read-only operation. |
| Executes arbitrary OCC command inside the Nextcloud container. | Variable: Depending on the specific OCC command invoked. |
Security model and trust boundaries
Trust Boundary: The server assumes the host running it has authorization to execute
docker execagainst the configured Nextcloud container. The MCP server runs with the same permissions as the user executing it.Security Risks: The
run_occtool allows executing arbitrary administrative commands against the Nextcloud instance, which could be destructive (e.g.,occ maintenance:install,occ app:disable, etc.). Agents with access to this MCP server have full administrative control over the Nextcloud container.Design Philosophy & Upstream Reconciliation: This repository is a specialized, security-hardened reference implementation for TheNovaNodes ecosystem. Unlike some generic or upstream production Docker images (e.g.,
ghcr.io/cbcoutinho/...) which may blindly expose 90+ tools, this Control Plane intentionally exposes only a strictly minimized subset of critical tools. This deliberate reduction in the attack surface prevents autonomous agents from unintentionally triggering destructive commands, while still preserving manual execution capability viarun_occif explicitly required. (Fixes #3)
Tests and exact commands
Run the test suite using pytest:
pytestOperations, logs, backup/restore, rollback
Operations & Logs: Logs are output to standard error via Python's
loggingmodule.Backup/Restore: Since this server is stateless and interfaces with Nextcloud, standard Nextcloud backup procedures apply (database dump and file backup). No state is stored within the MCP server itself.
Rollback: To rollback changes made by
add_trusted_domain, userun_occto manuallyconfig:system:delete trusted_domains <index>.
Generic MCP-client example
Add this to your mcp_config.json or claude_desktop_config.json:
{
"mcpServers": {
"nextcloud-control": {
"command": "python",
"args": ["-m", "nextcloud_mcp_control.server"]
}
}
}Limitations and roadmap
Operates on a single Nextcloud container per server instance (configurable via
NC_CONTAINER_NAME).
Related TheNovaNodes modules
Part of the TheNovaNodes and Antigravity Agent Ecosystem.
License
Refer to the repository license for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with Nextcloud instances through 30 tools across Notes, Calendar, Contacts, Tables, and WebDAV file operations, featuring a powerful unified search system for finding files without exact paths.2637AGPL 3.0
- AlicenseNot gradedqualityAmaintenanceConnects AI assistants to Nextcloud instances with 90+ tools for managing notes, calendars, contacts, files, recipes, and more through natural language conversations. Supports semantic search and multiple deployment options.340AGPL 3.0
- AlicenseBqualityBmaintenanceMCP server for Nextcloud that exposes occ admin commands, OCS provisioning, and WebDAV file operations as tools.31MIT
- FlicenseBqualityCmaintenanceEnables system automation and control including command execution, process management, network tools, environment variables, disk usage, and service status.11
Related MCP Connectors
Manage Appwrite projects, databases, auth, storage, functions, and messaging; search Appwrite docs
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/TheNovaNodes/nextcloud-mcp-control'
If you have feedback or need assistance with the MCP directory API, please join our Discord server