collectives-mcp
Provides tools for managing Nextcloud Collectives, including collectives, pages, tags, attachments, trash, templates, search, favorites, page versions, and backlinks.
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., "@collectives-mcplist all pages in the 'Meeting Notes' collective"
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.
collectives-mcp
A Model Context Protocol server for Nextcloud Collectives — exposes collectives, pages, tags, attachments, page history, and trash to Claude and any MCP-compatible client.
How it works
The server uses two Nextcloud APIs, verified against the Collectives OpenAPI spec:
Layer | Used for |
OCS API ( | All CRUD operations: collectives, pages, tags, attachments, trash, templates, search, favorites |
WebDAV ( | Page body read/write (no OCS equivalent), attachment upload, file version history |
The OCS API handles structured operations and returns typed JSON. WebDAV is used only where OCS has no equivalent — primarily reading and writing page markdown content.
Tools exposed (41)
Collectives:
list_collectives,create_collective,update_collective,delete_collectiveCollective trash:
list_trashed_collectives,restore_trashed_collective,permanently_delete_collectivePages:
list_pages,get_page,create_page,update_page,delete_page,rename_page,move_page,copy_page,set_page_emoji,set_page_tags,favorite_page,unfavorite_pageTags:
list_tags,create_tag,update_tag,delete_tagTrash & history:
list_trashed_pages,restore_page,purge_page,list_page_versions,restore_page_version,list_recent_pagesTemplates:
list_templates,create_template,update_template,set_template_emoji,delete_templateSearch:
search,search_in_collectiveAttachments:
list_attachments,upload_attachment,delete_attachmentOther:
ping,get_backlinks
Install
Download collectives-mcp-0.2.1.tgz from the latest release, then:
npm install -g ./collectives-mcp-0.2.1.tgzThis installs the collectives-mcp command globally.
Configuration
Add to your MCP client config (Claude Code shown):
{
"mcpServers": {
"collectives": {
"command": "collectives-mcp",
"args": [],
"env": {
"NEXTCLOUD_URL": "https://your-nextcloud.example.com",
"NEXTCLOUD_USER": "your-username",
"NEXTCLOUD_APP_PASSWORD": "xxxx-xxxx-xxxx-xxxx-xxxx"
}
}
}
}Generate the app-password in Nextcloud under Settings > Security > Devices & sessions > "Create new app password". The MCP server only needs an app-password, never your real account password — and you can revoke it without affecting your main login.
Development
pnpm install
pnpm dev # stdio MCP server, point mcp inspector at it
pnpm test # integration tests against MCP_TEST_COLLECTIVE
pnpm build # tsc -> dist/Required env vars: NEXTCLOUD_URL, NEXTCLOUD_USER, NEXTCLOUD_APP_PASSWORD. Tests additionally need MCP_TEST_COLLECTIVE pointing at a throwaway collective.
Disclosure
This project was 100% written by AI (Claude), including all source code, tests, CI configuration, and documentation.
License
MIT — see LICENSE.
Related
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/megamaced/nc_collectives-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server