collectives-mcp
MCP server for Nextcloud Collectives that exposes collectives, pages, tags, attachments, page history, and trash to Claude and MCP-compatible clients via OCS API and WebDAV.
README
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 (/ocs/v2.php/apps/collectives/api/v1.0/...) |
All CRUD operations: collectives, pages, tags, attachments, trash, templates, search, favorites |
WebDAV (/remote.php/dav/files/{user}/...) |
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_collective - Collective trash:
list_trashed_collectives,restore_trashed_collective,permanently_delete_collective - Pages:
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_page - Tags:
list_tags,create_tag,update_tag,delete_tag - Trash & history:
list_trashed_pages,restore_page,purge_page,list_page_versions,restore_page_version,list_recent_pages - Templates:
list_templates,create_template,update_template,set_template_emoji,delete_template - Search:
search,search_in_collective - Attachments:
list_attachments,upload_attachment,delete_attachment - Other:
ping,get_backlinks
Install
Download collectives-mcp-0.2.1.tgz from the latest release, then:
npm install -g ./collectives-mcp-0.2.1.tgz
This 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.