Nextcloud Control Plane MCP Server
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-21Nextcloud Control Plane MCP Server
Status: Active | Last Verified Date: 2026-08-21
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, and execute arbitrary OCC commands.
What it does not do: It does not run Nextcloud itself; it only controls an existing nextcloud-app Docker container. 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, or optimizing the database after upgrades.
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,httpx>=0.27.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 the
nextcloud-appcontainer running Nextcloud with thewww-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
CONTAINER_NAME(internal constant insrc/nextcloud_mcp_control/server.py): Target Docker container (hardcoded tonextcloud-app). No specific external environment variables are currently required other than the host's standard Docker configuration.
Complete MCP tool/API table with side effects
Tool/API | Description | Side Effects |
| Executes arbitrary OCC command inside the | Variable: Depending on the specific OCC command invoked. |
| 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. |
Security model and trust boundaries
Trust Boundary: The server assumes the host running it has authorization to execute
docker execagainst thenextcloud-appcontainer. 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.
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
Hardcoded container name (
nextcloud-app) prevents managing multiple Nextcloud instances on the same host without code changes.
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.2237AGPL 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.339AGPL 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