nextcloud-mcp
A remote MCP server that exposes a Nextcloud account as tools for file management via WebDAV, calendar events, share links, and Talk chat.
README
nextcloud-mcp
A remote MCP server that exposes a Nextcloud account as MCP tools: files (WebDAV), calendars (CalDAV), share links (OCS Share API), and Talk chat (proxy-read).
Need admin operations (create/disable users, quotas, groups) instead? See the sibling package, admin/ — it's a separate server with its own tiered authorization model, not part of this one.
Scope
User-level only: every tool call acts with the permissions of one Nextcloud account (an App Password, never the main account password), scoped exactly like that account logging into the Nextcloud web UI. There is no authorization model here beyond "whatever this account can already do" — for anything that needs per-caller permission tiers or targets other people's accounts, use nextcloud-admin-mcp.
Design
- Remote, not local. One deployment, always current with the MCP spec, no per-user install to keep updated.
- Stateless. No MCP protocol-level session — every request is self-contained, matching the 2026-07-28 MCP spec and Nextcloud's own stateless WebDAV/CalDAV/OCS APIs.
- Multi-tenant. One deployment serves any Nextcloud instance — the instance URL and credentials are per-request, not baked into the server.
- Auth via connection-layer headers, not tool arguments. The Nextcloud App Password never enters the LLM's context — the MCP client attaches it when it opens the connection, exactly like a local MCP server reading credentials from an env var.
For AI agents / MCP clients: connecting
Every request to POST /mcp must carry:
Authorization: Basic <base64(username:app-password)>— standard HTTP Basic Auth.username/app-passwordare the Nextcloud account this request acts as (generate the App Password under the account's own Nextcloud Settings → Security → "Create new app password").X-Nextcloud-Url: https://your-nextcloud-instance.example— the base URL of the caller's Nextcloud instance.
No initialize handshake is required — tools/list and tools/call work directly per-request.
Example mcpServers entry (Claude Code / any HTTP-transport MCP client):
{
"mcpServers": {
"nextcloud-mcp": {
"type": "http",
"url": "https://your-deployment.example/mcp",
"headers": {
"Authorization": "Basic <base64(username:app-password)>",
"X-Nextcloud-Url": "https://your-nextcloud-instance.example"
}
}
}
}
Tools
| Category | Tool | Description |
|---|---|---|
| Files (WebDAV) | list_directory |
List files/folders at a path |
read_file |
Read a text file's content | |
write_file |
Create or overwrite a file (text or base64 encoding) |
|
delete_entry |
Delete a file or folder | |
create_folder |
Create a folder | |
move_entry |
Move/rename a file or folder | |
copy_entry |
Copy a file or folder | |
| Calendar (CalDAV) | list_calendars |
List the account's calendars |
list_events |
List events in a date range | |
get_event |
Get a single event | |
create_event |
Create an event | |
update_event |
Update an event (only the fields given; others are preserved) | |
delete_event |
Delete an event | |
| Shares (OCS Share API) | list_shares |
List a file/folder's shares |
create_share |
Create a share (public link or user share) | |
update_share |
Update a share's password/expiration/permissions | |
delete_share |
Delete a share | |
| Talk (proxy-read) | list_conversations |
List the account's Talk conversations |
list_messages |
List messages (recent or since_last_read mode) |
|
get_message |
Get a single message | |
send_message |
Send a message (text, mentions, replies) |
Development
npm install
npm run build
npm test
PORT=3939 node dist/index.js
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。