{"id":28163741,"url":"https://github.com/cbcoutinho/nextcloud-mcp-server","last_synced_at":"2026-04-07T15:01:32.163Z","repository":{"id":291477072,"uuid":"977737334","full_name":"cbcoutinho/nextcloud-mcp-server","owner":"cbcoutinho","description":"Nextcloud MCP Server","archived":false,"fork":false,"pushed_at":"2026-04-03T10:18:13.000Z","size":11711,"stargazers_count":173,"open_issues_count":61,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-04-03T14:18:40.383Z","etag":null,"topics":["mcp-server","model-context-protocol","nextcloud","nextcloud-deck","nextcloud-notes","rag"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbcoutinho.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-04T21:25:13.000Z","updated_at":"2026-04-03T11:38:46.000Z","dependencies_parsed_at":"2026-02-13T00:01:42.376Z","dependency_job_id":null,"html_url":"https://github.com/cbcoutinho/nextcloud-mcp-server","commit_stats":null,"previous_names":["cbcoutinho/nextcloud-mcp-server"],"tags_count":373,"template":false,"template_full_name":null,"purl":"pkg:github/cbcoutinho/nextcloud-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbcoutinho%2Fnextcloud-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbcoutinho%2Fnextcloud-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbcoutinho%2Fnextcloud-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbcoutinho%2Fnextcloud-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbcoutinho","download_url":"https://codeload.github.com/cbcoutinho/nextcloud-mcp-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbcoutinho%2Fnextcloud-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31516839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mcp-server","model-context-protocol","nextcloud","nextcloud-deck","nextcloud-notes","rag"],"created_at":"2025-05-15T11:14:22.082Z","updated_at":"2026-04-07T15:01:32.146Z","avatar_url":"https://github.com/cbcoutinho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"astrolabe.svg\" alt=\"Nextcloud MCP Server\" width=\"128\" height=\"128\"\u003e\n\u003c/p\u003e\n\n# Nextcloud MCP Server\n\n[![Docker Image](https://img.shields.io/badge/docker-ghcr.io/cbcoutinho/nextcloud--mcp--server-blue)](https://github.com/cbcoutinho/nextcloud-mcp-server/pkgs/container/nextcloud-mcp-server)\n\n**A production-ready MCP server that connects AI assistants to your Nextcloud instance.**\n\nEnable Large Language Models like Claude, GPT, and Gemini to interact with your Nextcloud data through a secure API. Create notes, manage calendars, organize contacts, work with files, and more - all through natural language conversations.\n\nThis is a **dedicated standalone MCP server** designed for external MCP clients like Claude Code and IDEs. It runs independently of Nextcloud (Docker, VM, Kubernetes, or local) and provides deep CRUD operations across Nextcloud apps.\n\n\u003e [!NOTE]\n\u003e **Looking for AI features inside Nextcloud?** Nextcloud also provides [Context Agent](https://github.com/nextcloud/context_agent), which powers the Assistant app and runs as an ExApp inside Nextcloud. See [docs/comparison-context-agent.md](docs/comparison-context-agent.md) for a detailed comparison of use cases.\n\n## Quick Start (Docker)\n\nFor full features including semantic search, run with Docker:\n\n```bash\n# 1. Create a minimal configuration\ncat \u003e .env \u003c\u003c EOF\nNEXTCLOUD_HOST=https://your.nextcloud.instance.com\nNEXTCLOUD_USERNAME=your_username\nNEXTCLOUD_PASSWORD=your_app_password\nEOF\n\n# 2. Start the server\ndocker run -p 127.0.0.1:8000:8000 --env-file .env --rm \\\n  ghcr.io/cbcoutinho/nextcloud-mcp-server:latest\n\n# 3. Test the connection\ncurl http://127.0.0.1:8000/health/ready\n\n# 4. Connect to the endpoint\nhttp://127.0.0.1:8000/sse\n\n# Or with --transport streamable-http\nhttp://127.0.0.1:8000/mcp\n```\n\n**Docker Compose Profiles** (for development/testing):\n\n```bash\ndocker compose --profile single-user up -d       # Port 8000\ndocker compose --profile multi-user-basic up -d   # Port 8003\ndocker compose --profile oauth up -d              # Port 8001\ndocker compose --profile login-flow up -d         # Port 8004\n```\n\n**Next Steps:**\n- Connect your MCP client (Claude Desktop, IDEs, `mcp dev`, etc.)\n- See [docs/installation.md](docs/installation.md) for other deployment options. For Kubernetes (Helm), see [cbcoutinho/helm-charts](https://github.com/cbcoutinho/helm-charts)\n\n## Key Features\n\n- **90+ MCP Tools** - Comprehensive API coverage across 8 Nextcloud apps\n- **MCP Resources** - Structured data URIs for browsing Nextcloud data\n- **Semantic Search (Experimental)** - Optional vector-powered search for Notes, Files, News items, and Deck cards (requires Qdrant + Ollama)\n- **Document Processing** - OCR and text extraction from PDFs, DOCX, images with progress notifications\n- **Flexible Deployment** - Docker, Kubernetes ([Helm chart](https://github.com/cbcoutinho/helm-charts)), VM, or local installation\n- **Production-Ready Auth** - Basic Auth with app passwords (recommended) or OAuth2/OIDC (experimental)\n- **Multiple Transports** - SSE, HTTP, and streamable-http support\n\n## Supported Apps\n\n| App | Tools | Capabilities |\n|-----|-------|--------------|\n| **Notes** | 7 | Full CRUD, keyword search, semantic search |\n| **Calendar** | 20+ | Events, todos (tasks), recurring events, attendees, availability |\n| **Contacts** | 8 | Full CardDAV support, address books |\n| **Files (WebDAV)** | 12 | Filesystem access, OCR/document processing |\n| **Deck** | 15 | Boards, stacks, cards, labels, assignments |\n| **Cookbook** | 13 | Recipe management, URL import (schema.org) |\n| **Tables** | 5 | Row operations on Nextcloud Tables |\n| **Sharing** | 10+ | Create and manage shares |\n| **Semantic Search** | 2+ | Vector search for Notes, Files, News items, and Deck cards (experimental, opt-in, requires infrastructure) |\n\nWant to see another Nextcloud app supported? [Open an issue](https://github.com/cbcoutinho/nextcloud-mcp-server/issues) or contribute a pull request!\n\n## Authentication\n\n\u003e [!IMPORTANT]\n\u003e **OAuth2/OIDC is experimental** and requires a manual patch to the `user_oidc` app:\n\u003e - **Required patch**: Bearer token support ([issue #1221](https://github.com/nextcloud/user_oidc/issues/1221))\n\u003e - **Impact**: Without the patch, most app-specific APIs fail with 401 errors\n\u003e - **Recommendation**: Use Basic Auth for production until upstream patches are merged\n\u003e\n\u003e See [docs/oauth-upstream-status.md](docs/oauth-upstream-status.md) for patch status and workarounds.\n\n**Recommended:** Basic Auth with app-specific passwords provides secure, production-ready authentication. See [docs/authentication.md](docs/authentication.md) for setup details and OAuth configuration.\n\n### Authentication Modes\n\nThe server supports four authentication modes:\n\n**Single-User (BasicAuth):**\n- One set of credentials shared by all MCP clients\n- Simple setup: username + app password in environment variables\n- All clients access Nextcloud as the same user\n- Best for: Personal use, development, single-user deployments\n\n**Multi-User (BasicAuth Pass-Through):**\n- MCP clients send credentials via Authorization header\n- Server passes through to Nextcloud (stateless by default)\n- Optional offline access for background operations (`ENABLE_MULTI_USER_BASIC_AUTH=true`)\n- Best for: Multi-user setups without OAuth infrastructure\n\n**Multi-User (OAuth):**\n- Each MCP client authenticates separately with their own Nextcloud account\n- Per-user scopes and permissions (clients only see tools they're authorized for)\n- More secure: tokens expire, credentials never shared with server\n- Best for: Teams, multi-user deployments, production environments with multiple users\n- Requires: Patches to the `user_oidc` app (experimental)\n\n**Multi-User (Login Flow v2):**\n- Uses Nextcloud's native Login Flow v2 to obtain per-user app passwords\n- No OAuth patches required — works with stock Nextcloud\n- Each user authenticates via browser, server manages app passwords\n- Best for: Multi-user deployments without OAuth infrastructure (`ENABLE_LOGIN_FLOW=true`)\n- Experimental: See [ADR-022](docs/ADR-022-deployment-mode-consolidation.md) for details\n\nSee [docs/authentication.md](docs/authentication.md) for detailed setup instructions.\n\n## Semantic Search\n\nThe server provides an experimental RAG pipeline to enable _Semantic Search_ that enables MCP clients to find information in Nextcloud based on **meaning** rather than just keywords. Instead of matching \"machine learning\" only when those exact words appear, it understands that \"neural networks,\" \"AI models,\" and \"deep learning\" are semantically related concepts.\n\n**Example:**\n- **Keyword search**: Query \"car\" only finds notes containing \"car\"\n- **Semantic search**: Query \"car\" also finds notes about \"automobile,\" \"vehicle,\" \"sedan,\" \"transportation\"\n\nThis enables natural language queries and helps discover related content across your Nextcloud notes.\n\n\u003e [!NOTE]\n\u003e **Semantic Search is experimental and opt-in:**\n\u003e - Disabled by default (`ENABLE_SEMANTIC_SEARCH=false`)\n\u003e - Currently supports Notes app only (multi-app support planned)\n\u003e - Requires additional infrastructure: vector database + embedding service\n\u003e - Answer generation (`nc_semantic_search_answer`) requires MCP client sampling support\n\u003e\n\u003e See [docs/semantic-search-architecture.md](docs/semantic-search-architecture.md) for architecture details and [docs/configuration.md](docs/configuration.md) for setup instructions.\n\n## Documentation\n\n### Getting Started\n- **[Installation](docs/installation.md)** - Docker, local, or VM deployment. [Helm chart](https://github.com/cbcoutinho/helm-charts) for Kubernetes\n- **[Configuration](docs/configuration.md)** - Environment variables and advanced options\n- **[Authentication](docs/authentication.md)** - Basic Auth vs OAuth2/OIDC setup\n- **[Running the Server](docs/running.md)** - Start, manage, and troubleshoot\n\n### Features\n- **[App Documentation](docs/)** - Notes, Calendar, Contacts, WebDAV, Deck, Cookbook, Tables\n- **[Document Processing](docs/configuration.md#document-processing)** - OCR and text extraction setup\n- **[Semantic Search Architecture](docs/semantic-search-architecture.md)** - Experimental vector search (Notes, Files, News items, Deck cards; opt-in)\n- **[Vector Sync UI Guide](docs/user-guide/vector-sync-ui.md)** - Browser interface for semantic search visualization and testing\n\n### Advanced Topics\n- **[OAuth Architecture](docs/oauth-architecture.md)** - How OAuth works (experimental)\n- **[OAuth Quick Start](docs/quickstart-oauth.md)** - 5-minute OAuth setup\n- **[OAuth Setup Guide](docs/oauth-setup.md)** - Detailed OAuth configuration\n- **[Troubleshooting](docs/troubleshooting.md)** - Common issues and solutions\n- **[Comparison with Context Agent](docs/comparison-context-agent.md)** - When to use each approach\n\n## Examples\n\n### Create a Note\n```\nAI: \"Create a note called 'Meeting Notes' with today's agenda\"\n→ Uses nc_notes_create_note tool\n```\n\n### Import Recipes\n```\nAI: \"Import the recipe from https://www.example.com/recipe/chocolate-cake\"\n→ Uses nc_cookbook_import_recipe tool with schema.org metadata extraction\n```\n\n### Schedule Meetings\n```\nAI: \"Schedule a team meeting for next Tuesday at 2pm\"\n→ Uses nc_calendar_create_event tool\n```\n\n### Manage Files\n```\nAI: \"Create a folder called 'Project X' and move all PDFs there\"\n→ Uses nc_webdav_create_directory and nc_webdav_move tools\n```\n\n### Semantic Search (Experimental, Opt-in)\n```\nAI: \"Find notes related to machine learning concepts\"\n→ Uses nc_semantic_search to find semantically similar notes (requires Qdrant + Ollama setup)\n```\n\n**Note:** For AI-generated answers with citations, use `nc_semantic_search_answer` (requires MCP client with sampling support).\n\n## Contributing\n\nContributions are welcome!\n\n- Report bugs or request features: [GitHub Issues](https://github.com/cbcoutinho/nextcloud-mcp-server/issues)\n- Submit improvements: [Pull Requests](https://github.com/cbcoutinho/nextcloud-mcp-server/pulls)\n- Development guidelines: [CLAUDE.md](CLAUDE.md)\n\n## Security\n\n[![MseeP.ai Security Assessment](https://mseep.net/pr/cbcoutinho-nextcloud-mcp-server-badge.png)](https://mseep.ai/app/cbcoutinho-nextcloud-mcp-server)\n\nThis project takes security seriously:\n- Production-ready Basic Auth with app-specific passwords\n- OAuth2/OIDC support (experimental, requires upstream patches)\n- Per-user access tokens\n- No credential storage in OAuth mode\n- Regular security assessments\n\nFound a security issue? Please report it privately to the maintainers.\n\n## License\n\nThis project is licensed under the AGPL-3.0 License. See [LICENSE](./LICENSE) for details.\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=cbcoutinho/nextcloud-mcp-server\u0026type=Date)](https://www.star-history.com/#cbcoutinho/nextcloud-mcp-server\u0026Date)\n\n## References\n\n- [Model Context Protocol](https://github.com/modelcontextprotocol)\n- [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)\n- [Nextcloud](https://nextcloud.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbcoutinho%2Fnextcloud-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbcoutinho%2Fnextcloud-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbcoutinho%2Fnextcloud-mcp-server/lists"}