NextcloudCAUTION
Nextcloud MCP Server
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/cbcoutinho/nextcloud-mcp-server/pkgs/container/nextcloud-mcp-server)
A production-ready MCP server that connects AI assistants to your Nextcloud instance.
Enable Large Language Models like Claude, GPT, and Gemini to interact with your Nextcloud data through a secure API. Create notes, manage calendars, organize contacts, work with files, and more - all through natural language conversations.
This is a dedicated standalone MCP server designed for external MCP clients like Claude Code and IDEs. It runs independently of Nextcloud (Docker, VM, Kubernetes, or local) and provides deep CRUD operations across Nextcloud apps.
[!NOTE] Want AI features inside Nextcloud instead? You can point Nextcloud's own Assistant at this server — see AI inside Nextcloud below.
[!TIP] Don't want to self-host? Astrolabe Cloud is a managed hosting service for this MCP server, aimed at users and teams who want advanced features like background sync and semantic search without operating the infrastructure themselves. The service is currently under development — sign up on the landing page to join the early-adopter list.
Quick Start
Run the server locally with uvx (no installation required):
NEXTCLOUD_HOST=https://your.nextcloud.instance.com \ NEXTCLOUD_USERNAME=your_username \ NEXTCLOUD_PASSWORD=your_app_password \ uvx nextcloud-mcp-server run --transport stdio
Or add it directly to your MCP client configuration (e.g. claude_desktop_config.json or .claude/settings.json):
{
"mcpServers": {
"nextcloud": {
"command": "uvx",
"args": ["nextcloud-mcp-server", "run", "--transport", "stdio"],
814ca78437c0OBSERVED · 2026-10-03Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add nextcloud-mcp-server --env CUSTOM_PROCESSOR_API_KEY=${CUSTOM_PROCESSOR_API_KEY} --env NEXTCLOUD_OIDC_TOKEN_TYPE=${NEXTCLOUD_OIDC_TOKEN_TYPE} --env NEXTCLOUD_PASSWORD=${NEXTCLOUD_PASSWORD} --env PACT_PASSWORD=${PACT_PASSWORD} -- uvx nextcloud-mcp-server{
"mcpServers": {
"nextcloud-mcp-server": {
"command": "uvx",
"args": [
"nextcloud-mcp-server"
],
"env": {
"CUSTOM_PROCESSOR_API_KEY": "${CUSTOM_PROCESSOR_API_KEY}",
"NEXTCLOUD_OIDC_TOKEN_TYPE": "${NEXTCLOUD_OIDC_TOKEN_TYPE}",
"NEXTCLOUD_PASSWORD": "${NEXTCLOUD_PASSWORD}",
"PACT_PASSWORD": "${PACT_PASSWORD}"
}
}
}
}Exposed tools (12)
10 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
boom | read | raise Bang |
denied | read | raise ScopeDenied( |
get_item | read | return Item(name= |
leaky_tool | read | raise _http_error(404) |
my_tool | read | client = await get_client(ctx) |
nc_notes_create_note | write | return |
nc_semantic_search | read | raise ValueError( |
peek | read | A tool, to prove the bridge is live on tools/call too. |
raises_mcp_error | read | The shape ~140 of our tool raise sites use. |
raises_nextcloud_404 | read | An unhandled Nextcloud HTTP failure escaping a tool. |
start_login | write | Drives progressive consent exactly as the auth path does. |
tailored_tool | read | raise MCPError(code=-1, message= |
Trust audit
CAUTIONgrade F · trust 52/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (6 observation(s))
- Network
- declared (6 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- found
Findings (25)
# - "client_id" → loopback redirect URIs (http://localhost:*, http://127.0.0.1:*)
== "postgresql://mcp:p%40ss@db:5432/mcp?sslmode=require&connect_timeout=7"
== "postgresql://mcp:s@db/mcp?sslmode=require"
assert config_module.get_procrastinate_conninfo() == "postgresql://mcp:s@db/mcp"
.containerignore
.env.keycloak.sample
.gitmodules
.pre-commit-config.yaml
.secrets.toml.example
assert pickle.loads(pickle.dumps(chunks)) == chunks
assert pickle.loads(pickle.dumps(chunks)) == chunks
assert pickle.loads(pickle.dumps(exc.value)).args == exc.value.args
assert pickle.loads(pickle.dumps(exc.value)).args == exc.value.args
pickle.loads(pickle.dumps(exc.value))
hash_bytes = hashlib.md5(word.encode()).digest()
logger.info("Temporary Talk conversation created (token=%s)", token)logger.info("Cleaning up temporary Talk conversation token=%s", token)logger.info("Successfully deleted Talk conversation token=%s", token)logger.info("Posted message id=%s into token=%s", posted_id, token)await client.get_attachment(100, "../../evil")
await client.add_participant("../../admin", "bob")"Documents/../../otheruser/secret.txt",
spy, _ = _run(fusion="../../etc/passwd\n\nrandom-unique-value")
bogus = "../../etc/passwd" + "A" * 500
auth_states, callback_url = oauth_callback_server
Gates applied: no_behavioural_pass.
814ca78437c0full audit observations/trust-audit/mcp-server/cbcoutinho__nextcloud.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-03 | 814ca78437c0 | CAUTION | F | 52 | first audit |
Questions
What is the Nextcloud MCP server?
Nextcloud MCP Server
What tools does Nextcloud expose?
12 in total: 10 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Nextcloud safe to connect to an agent?
With care. The audit graded it F (52/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Nextcloud need?
It reads CUSTOM_PROCESSOR_API_KEY, NEXTCLOUD_OIDC_TOKEN_TYPE, NEXTCLOUD_PASSWORD, PACT_PASSWORD and WEBHOOK_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Nextcloud run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as nextcloud-mcp-server.
How current is this page?
The grade is for one exact copy of the source (814ca78437c0), read on 2026-10-03. The repository is watched and re-audited when it changes.