nextcloud-mcp
Provides tools for file operations such as listing, reading, writing, creating folders, deleting, and searching files in a Nextcloud instance over WebDAV.
Provides tools for interacting with an Obsidian vault, including reading and updating frontmatter, listing notes by tag, resolving wikilinks, finding backlinks, and exploring graph neighbors.
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-mcpShow backlinks to my weekly review note"
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
A custom MCP (Model Context Protocol) server that gives Claude the ability to list, read, write, create folders in, delete, and search files in a self-hosted Nextcloud instance over WebDAV.
Works with Claude Desktop out of the box (local/stdio), with an optional HTTP/Docker version for remote setups.
Tools it exposes
File operations
Tool | Description |
| List files/folders at a path |
| Read a text file's contents |
| Create or overwrite a text file |
| Create a folder |
| Delete a file or folder (permanent beyond trash retention) |
| Recursively search filenames |
Obsidian vault operations
These understand Markdown notes as an Obsidian vault, not just plain files — parsing frontmatter, [[wikilinks]], and #tags the way Obsidian itself would. Built for the common setup where your vault syncs through Nextcloud (via the Nextcloud desktop client) rather than living in a local-only folder, which is what most Obsidian-focused MCP servers assume.
Tool | Description |
| Read a note's YAML frontmatter as JSON |
| Merge new fields into a note's frontmatter without touching the body |
| Find every note carrying a tag, frontmatter or inline |
| Find every note that links to a given note |
| Resolve a wikilink to the actual file it points to, fuzzy-matched like Obsidian does |
| List notes connected to a given note by links, out to N hops |
Related MCP server: Obsidian MCP Server - Enhanced
Which version should I use?
server_stdio.py— Recommended for most people. Claude Desktop launches this locally as a subprocess and it talks to Nextcloud over your LAN/Tailscale/VPN directly. No public exposure needed.server.py— An HTTP version for running as a standalone service (e.g. in Docker). Only needed if you want to add this as a remote custom connector in Claude — which requires the server to be reachable via a public HTTPS URL (e.g. behind a Cloudflare Tunnel or reverse proxy), since custom connectors are reached from Anthropic's cloud infrastructure, not your local device.
Setup — Claude Desktop (local, recommended)
Clone this repo and install dependencies for the Python interpreter Claude Desktop will use:
git clone https://github.com/yourusername/nextcloud-mcp.git cd nextcloud-mcp pip install -r requirements.txtCreate a Nextcloud app password: in Nextcloud, go to Settings → Security → App passwords, create one (e.g. named
claude-mcp), and save it somewhere safe. Don't use your real account password.Edit your Claude Desktop config file (
claude_desktop_config.json):macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Copy the contents of
claude_desktop_config.example.json, and update:argsto the absolute path ofserver_stdio.pyon your machineNEXTCLOUD_URL,NEXTCLOUD_USER,NEXTCLOUD_PASSWORDto your own values
Fully restart Claude Desktop (quit from the system tray/menu bar, not just close the window).
You should now see Nextcloud tools available in your conversations.
Setup — HTTP/Docker (remote custom connector)
Copy
.env.exampleto.envand fill in your Nextcloud URL, username, and app password.Build and run:
docker compose up -d --buildExpose the container's port (default
8765) via a public HTTPS URL — for example a Cloudflare Tunnel, Tailscale Funnel, or a reverse proxy with TLS. A private LAN address alone will not be reachable by Claude's custom connector setup.In Claude, add a custom connector pointing at
https://your-public-url/mcp.
Troubleshooting
ModuleNotFoundError: No module named 'mcp.server.fastmcp'— you likely installedmcpversion2.x, which restructured the package. This project pinsmcp>=1.6.0,<2.0.0inrequirements.txt; reinstall with that constraint.ModuleNotFoundErrorforrequestsormcpeven after installing — if you have multiple Python versions installed, make sure you install dependencies against the exact interpreter Claude Desktop launches (check Claude Desktop's MCP logs for the interpreter path if unsure).Server doesn't show up in Claude Desktop — make sure you fully restarted the app after editing the config, and double-check the
argspath is absolute and correct for your OS.
Security notes
Always use a scoped Nextcloud app password, not your real account password — revoke it anytime via Settings → Security → Devices & Sessions.
delete_item()is permanent beyond Nextcloud's trash retention. Use with care, especially since Claude can call it directly during a conversation.Never commit your
.envfile or real credentials —.gitignoreis already set up to exclude.env.
License
MIT — see LICENSE.
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.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables Claude Desktop and other MCP clients to interact with WebDAV file systems through natural language commands for CRUD operations.84717MIT
- Alicense-qualityCmaintenanceA Model Context Protocol server that provides comprehensive access to Obsidian vaults with Claude.ai remote integration, Tailscale support, and advanced query capabilities.7,17332Apache 2.0
- Alicense-qualityDmaintenanceA Model Context Protocol server that enables Claude Desktop to perform file operations like reading, writing, listing directories, and managing files through natural language commands.MIT
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server enabling Claude to read, write, search, and analyse your Obsidian vault with advanced research capabilities.1MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
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/fridder12/nextcloud-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server