Nextcloud
Nextcloud OCS API: users, groups, file shares, app capabilities and server status on your own Nextcloud. Basic auth with an app password, the OCS-APIRequest header and format=json.
7 天免费 · 无需信用卡 · EU 托管
问 Nextcloud 任何事
通过 AnythingMCP 对 Nextcloud 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 NextcloudClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 Nextcloud。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
配置 Nextcloud
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
Use an app password, never the account password.
- Sign in to Nextcloud and open Settings → Security → Devices & sessions.
- Create a new app password named e.g.
AnythingMCP. Nextcloud shows it once. - Set
NEXTCLOUD_URLto your instance root (no trailing slash),NEXTCLOUD_USERNAMEto the login name andNEXTCLOUD_APP_PASSWORDto the generated value. An app password can be revoked on its own, and it sidesteps two-factor authentication, which would otherwise break API access entirely.
Three things every OCS call needs, all of which this adapter sends for you:
Authorization: Basic …from the username and app password,- the
OCS-APIRequest: trueheader — without it Nextcloud answers with an HTML login page and a 200, which looks like success and parses like nonsense, format=json, or the response comes back as XML.
Two OCS versions live side by side. The provisioning API (users, groups) is on ocs/v1.php; the sharing API is on ocs/v2.php. They also report errors differently — v1 puts the real status in the body's meta.statuscode while returning HTTP 200. Read ocs.meta before trusting ocs.data.
Admin-only endpoints. Listing users and groups requires an administrator or a group admin. A normal user's app password gets an OCS 997 (unauthorised) inside an HTTP 200.
Files themselves are WebDAV, not OCS, and are out of scope here: this connector manages users, groups and shares, not file contents.
Self-hosted, which is the thing to plan for.
- On AnythingMCP Cloud the instance must be reachable from the public internet on a real hostname with a valid TLS certificate. A self-signed certificate will fail: the connector offers no trust-anything switch.
- On an internal host (
cloud.intern,10.0.0.x), self-host AnythingMCP on the same network and add that host toSSRF_ALLOWED_HOSTS, or the outbound guard refuses the call before it is made.
Writes: nextcloud_create_share publishes a real share. A public link share (shareType: 3) is reachable by anyone who has the URL — set a password and an expiry date unless you mean it to be open.