Using Nextcloud with Claude

Claude, our AI assistant, can work with your Nextcloud for you: mail, files, calendar, contacts, Deck, Talk, Notes and Nextcloud Office documents. It does this through the "nextcloud-api" skill, which calls Nextcloud's own API directly. This page explains the one-time setup and how to use it well.

What Claude can do with Nextcloud

Claude only sees what your own Nextcloud account can see. Anything it changes is done as you.

One-time setup

The skill is set up for everyone already; the only thing you need to do yourself is create your app password (step 3). In full, you need three things:

  1. Claude on your own computer. The skill works in the Claude desktop app (Code tab) or in Claude Code, on macOS, Linux or Windows (with WSL or Git Bash). Your app password stays in a file on your computer.
  2. The skill. It's already set up for everyone in our Claude organisation, so there's nothing to install. If it doesn't show up for you (for example, in a Claude Code setup outside the organisation), download nextcloud-api.skill from the attachments on this page (paperclip icon, top right). Open it and click Save skill, or unzip it into ~/.claude/skills/.
  3. Your personal Nextcloud app password, saved in a private file on your computer:
    1. In a Claude chat, ask something like "Using Nextcloud, what's on my calendar this week?"
    2. The first time, Claude creates the file ~/.config/nextcloud-api/credentials.env, with your Nextcloud username filled in and the password left blank.
    3. In Nextcloud, go to your avatar (top right) → Personal settings → Security → Devices & sessions. Type claude-api as the app name and click Create new app password. Copy the password. It's only shown once.
    4. Open the file. On a Mac: Finder → Go → Go to Folder… → ~/.config/nextcloud-api, then open credentials.env with TextEdit. Paste the password straight after NEXTCLOUD_APP_PASSWORD=, with no spaces or quotes, and save.
    5. Tell Claude "done". It will confirm that it can sign in as you.

To revoke access, delete the claude-api entry under Devices & sessions.

Keeping your password safe

How Claude handles changes

Tips for good results

Troubleshooting

What you see What to do
"No Nextcloud app password found" Fill in NEXTCLOUD_APP_PASSWORD in ~/.config/nextcloud-api/credentials.env and save.
"File does not exist" when opening the file The .config folder is hidden. Use Finder → Go → Go to Folder…, and make sure you didn't copy a trailing full stop.
Error 401 The app password is wrong or was revoked. Create a new one and update the file.
A mail folder shows 0 messages or "not cached" Claude syncs it automatically. If it still looks wrong, open the folder once in Nextcloud Mail.
A mail filter you want isn't available Sieve filtering is off for that account. It's under Mail → account settings → Sieve server → Enable sieve filter. Claude will ask before turning it on.
The mcphub Nextcloud tools return "Invalid request parameters" That's the separate mcphub connector, not this skill. Use this skill instead, and let Aaron know so mcphub can be checked.

For admins

Last reviewed: 20 October 2026 by Aaron Tushabe (skill now set up for the whole organisation)


Revision #2
Created 2026-10-20 13:29:31 UTC by aaron.tushabe
Updated 2026-10-20 13:38:00 UTC by aaron.tushabe