
Hithereiamaliff Mcp Nextcloud
ai.smithery由 smithery.ai 发布官方发布者v1.0.0更新于 Oct 24, 2026
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
发布方自己的服务:222wcnm Bilistalkermcp
概览
让助手通过 30 个工具读取和管理 Nextcloud 账户的笔记、日历、联系人、表格和 WebDAV 文件。
- 可以做什么
- 将助手连接到 Nextcloud 实例,提供覆盖五个应用领域的工具:笔记(创建、更新、追加、搜索、删除)、通过 CalDAV 管理日历和事件、通过 CardDAV 管理联系人和通讯录、表格(查看结构及行级增删改查),以及 WebDAV 文件(列目录、读取、写入、建目录、删除)。统一的文件搜索工具可按文件名、内容和元数据匹配,并支持按类型、大小、日期和目录过滤。另有 hello 工具用于检查连通性并列出可用工具。
- 适用场景
- 当笔记、日历、联系人和文件都存放在 Nextcloud,且希望助手通过一个连接器搜索、总结或编辑这些内容,而不必在多个应用间切换时适用。
- 运行要求
- 托管端点需要来自服务商密钥服务的用户级密钥,以 Authorization Bearer 令牌发送。npm 包在本地运行,需 Node.js 18+,并读取 NEXTCLOUD_HOST、NEXTCLOUD_USERNAME 和 NEXTCLOUD_PASSWORD。自托管 HTTP 模式使用 MCP_API_KEY 以及 X-Nextcloud-Host、X-Nextcloud-Username、X-Nextcloud-Password 请求头。需要一个 Nextcloud 实例。
安装
在 SourceWeft 中
- 打开 控制台中的 Hithereiamaliff Mcp Nextcloud,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/ai.smithery%2Fhithereiamaliff-mcp-nextcloud/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"hithereiamaliff-nextcloud": {
"type": "http",
"url": "https://server.smithery.ai/@hithereiamaliff/mcp-nextcloud/mcp"
}
}
}README
Nextcloud MCP Server
MCP Endpoint: https://mcp.techmavie.digital/nextcloud/mcp
Note: This project is a complete rewrite in TypeScript of the original Python-based cbcoutinho/nextcloud-mcp-server, now with self-hosted VPS deployment and Smithery deployment support.
Key Differences from the Original Repository:
- Language: This project is written in TypeScript, while the original is in Python.
- Smithery Support: Added full support for Smithery deployment and local testing via Smithery playground.
- Project Structure: The project structure has been adapted for a Node.js/TypeScript environment with MCP SDK integration.
- Dependencies: This project uses npm for package management, whereas the original uses Python's dependency management tools.
- Deployment: Now supports both local development and cloud deployment via Smithery.
The Nextcloud MCP (Model Context Protocol) server allows Large Language Models (LLMs) like OpenAI's GPT, Google's Gemini, or Anthropic's Claude to interact with your Nextcloud instance. This enables automation of various Nextcloud actions across Notes, Calendar, Contacts, Tables, and WebDAV file operations.
The hosted HTTP integration now supports a safer multi-user flow through the MCP Key Service. Instead of embedding raw Nextcloud credentials in the connector URL, hosted clients can use a user-scoped usr_... key and let the server resolve credentials server-side.
Features
The server provides integration with multiple Nextcloud apps, enabling LLMs to interact with your Nextcloud data through a comprehensive set of 30 tools across 5 main categories.
Supported Nextcloud Apps
Available Tools (30 Total)
📝 Notes Tools (5 tools)
📅 Calendar Tools (6 tools)
👥 Contacts Tools (6 tools)
📊 Tables Tools (6 tools)
📁 WebDAV File System Tools (6 tools)
🔍 Revolutionary Unified WebDAV Search Feature
The crown jewel of this MCP server is the powerful unified search system for WebDAV files, inspired by modern search interfaces like on an another MCP that I have created: mcp-datagovmy. This completely transforms how you interact with your Nextcloud files by eliminating the need to specify exact file paths.
✨ Key Features
- 🎯 Multi-scope Search: Search across filenames, file content, and metadata simultaneously
- 🧠 Smart File Type Detection: Automatically handles text files, code, configuration files, documents, and media
- 🔧 Advanced Filtering: Filter by file type, size range, modification date, and directory
- 📈 Intelligent Ranking: Results ranked by relevance with bonuses for recent files and exact matches
- 👀 Content Preview: Optional content previews for matched text files
- ⚡ Performance Optimized: Intelligent caching, timeout protection, and parallel processing
- 🛡️ Error Recovery: Fallback strategies prevent timeouts and provide helpful suggestions
🚀 Usage Examples
📋 Complete Parameter Reference
🎯 Performance Tips
- For root directory searches: Use
quickSearch: trueandmaxDepth: 2-3for faster results - For specific directories: Use
basePath: "/Documents"instead of searching root "/" - For large result sets: Add
fileTypesfilter to narrow scope - For timeout issues: Enable
quickSearchand use smallerlimitvalues
🧪 Test Tool (1 tool)
🔄 Before vs After: The Search Revolution
Before Unified Search
After Unified Search ✨
🛠️ Advanced Search Strategies
Content-Aware Search
The system intelligently extracts and searches content from:
- 📝 Text Files:
.txt,.md,.csv- Full content indexing - 💻 Code Files:
.js,.ts,.py,.html,.css- Syntax-aware search - ⚙️ Config Files:
.json,.xml,.yaml- Structure-aware indexing - 📄 Documents:
.pdf,.docx- Metadata and properties - 🎬 Media Files: Images, videos - EXIF data and metadata
Smart Ranking System
Results are ranked using advanced algorithms:
- Exact filename matches → 100 points
- Word boundaries in filenames → 80 points
- Partial filename matches → 60+ points (position bonus)
- Content frequency matches → 50+ points (term density)
- Recent file bonus → +10 points (last 30 days)
- File type preference → +5 points (text/code files)
- Size convenience → +5 points (files under 100KB)
Error Handling & Recovery
- 🕐 20-second timeout protection - Prevents hanging operations
- 🔄 Automatic fallback search - Falls back to directory listing if indexing fails
- 💡 Intelligent suggestions - Provides helpful tips for optimization
- 📊 Performance metrics - Shows search duration and result counts
Installation
Quick Start with npm (Recommended)
Install directly from npm and run as an MCP server:
Usage as MCP Server
After installation, you can run the MCP server directly:
Environment Setup: Create a .env file with your Nextcloud credentials:
Integration with LLM Applications
Add to your MCP client configuration (e.g., Claude Desktop, Continue, etc.):
For CLI mode (local, single-user):
For hosted HTTP mode (via MCP Key Service):
Recommended for hosted clients: Use the path-based URL form (
/mcp/usr_...) for Claude.ai and similar hosted connectors. Keep the query-param form as a compatibility option for inspectors and clients that preserve query params reliably.
For self-hosted HTTP mode (your own server):
Prerequisites
- Node.js 18+
- Access to a Nextcloud instance
- npm or yarn package manager
Local Development Setup
-
Clone the repository:
-
Install dependencies:
-
Configure your Nextcloud credentials (see Configuration section)
-
Build the project:
Configuration
Environment Variables
Create a .env file in the root directory based on .env.sample:
Important Security Notes:
- Use a dedicated Nextcloud App Password instead of your regular login password. Generate one in your Nextcloud Security settings.
- In HTTP mode,
NEXTCLOUD_*environment variables are never used. Self-hosted clients provide credentials viaX-Nextcloud-*headers, while key-service clients send only ausr_...key. - Generate a strong API key:
openssl rand -hex 32
Smithery Configuration
When deploying via Smithery, you can configure credentials through:
- Smithery's configuration interface for URL-published servers
For Smithery, the recommended model is:
- users enter
nextcloudHost,nextcloudUsername, andnextcloudPassworddirectly - Smithery forwards those values to the dedicated
/smithery/mcpendpoint as headers - the hosted
usr_...key-service flow remains separate and continues to use/mcp/usr_...
Deployment & Usage
Option 1: Hosted Server (Recommended)
The easiest way to use this MCP server is via the hosted endpoint. No installation required!
Endpoint: https://mcp.techmavie.digital/nextcloud/mcp
Authentication
The hosted server uses the MCP Key Service for authentication. You get a personal API key (usr_XXXXXXXX) from the MCP Key Service portal:
The server then resolves your Nextcloud credentials automatically through the resolver endpoint behind the scenes.
Why this is safer than the old query-credential approach:
- raw Nextcloud credentials are not embedded in the connector URL
- revoking a
usr_...key is easier than rotating a user's underlying Nextcloud password everywhere - server-side auditing and policy are easier to centralize
- support/debug workflows are safer because users share a scoped key, not their real Nextcloud password
Claude.ai / hosted connector URL (recommended):
Alternative URL for clients that preserve query params correctly:
Client Configuration
Test with MCP Inspector
Option 2: Self-Hosted (VPS)
If you prefer to run your own instance, the built-in Docker + Nginx setup is:
Recommended VPS setup
- Clone the repo onto your server:
- Create a
.envfile with your server settings: Notes:- Use
KEY_SERVICE_URL+KEY_SERVICE_TOKENonly if you want hosted-styleusr_...key resolution. - Users obtain and manage those keys at
https://mcpkeys.techmavie.digital. - The MCP server itself should keep using the resolver endpoint path, not the portal homepage.
- Set
ENABLE_SMITHERY_ENDPOINT=trueonly if you want to publish the dedicated Smithery direct-credentials endpoint.
- Use
- Start the container:
- Add the reverse proxy config from deploy/nginx-mcp.conf to your nginx server block.
- Validate and reload nginx:
- Verify the server:
Important: The HTTP server does NOT use
NEXTCLOUD_*environment variables. In self-hosted mode, each client must provide Nextcloud credentials via request headers. In key-service mode, clients send onlyapi_key=usr_....
Remote MCP note: For hosted connectors such as Claude.ai, prefer the path-based URL form (
/mcp/usr_...). Keep the query-param form as a compatibility option for inspectors and clients that preserve query params reliably.
Debugging note: If a hosted client shows a generic auth prompt, it does not automatically mean OAuth is required. First verify the auth-free diagnostics route, the key-service resolver response, and the actual
initializeSSE body.
Option 3: npm Package (CLI)
Install and run as a local MCP server:
Note: In CLI mode, credentials are read from environment variables (
NEXTCLOUD_HOST,NEXTCLOUD_USERNAME,NEXTCLOUD_PASSWORD). This is safe because CLI mode runs locally for a single user.
Option 4: Smithery Deployment
For Smithery's current URL-published model, use a dedicated endpoint that accepts direct Nextcloud credentials via headers:
Use this public MCP URL in Smithery:
Recommended Smithery config schema for this server:
Why this split is recommended:
- Smithery users can connect directly without creating an MCP Key Service key first
- the hosted
usr_...connector flow remains unchanged for Claude.ai and other hosted clients - the Smithery path is isolated to
/smithery/mcp, so it does not interfere with/mcpor/mcp/usr_...
Important: The Smithery endpoint is designed for direct credentials via headers. It does not use the MCP Key Service and does not require the shared
MCP_API_KEY.To help Smithery discover tools without forcing a live authenticated scan, this server also exposes a static server card at
https://mcp.techmavie.digital/.well-known/mcp/server-card.json. If your reverse proxy mounts the app under/nextcloud, make sure that exact root-level well-known path is proxied to the app.
Publishing to npm
For Maintainers
To publish this package to npm:
-
Prepare the release:
-
Publish to npm:
-
Verify the publication:
Publishing Checklist
- All tests pass (Smithery deployment confirmed working)
- TypeScript builds without errors (
npm run build) - Version bumped appropriately (
npm version) - README updated with changes
-
.npmignoreproperly excludes development files - CLI executable works (
dist/cli.js)
Dual Deployment Strategy
This project supports both deployment methods simultaneously:
- Smithery: For cloud deployment and development testing
- npm: For end-user installation and MCP client integration
The Smithery configuration (smithery.yaml) and npm package configuration coexist without interference.
Smithery Integration
This project includes full Smithery support with:
smithery.yaml: Specifies TypeScript runtime- Development server: Local testing with hot reload
- One-click deployment: Deploy to cloud with a single command
- Configuration management: Secure credential handling
- Playground integration: Immediate testing interface
Security
HTTP Server Security Model
The HTTP server (http-server.ts) supports two authentication modes:
Key Service Mode (hosted/multi-user):
- User API keys (
usr_...) are resolved via the MCP Key Service which returns encrypted Nextcloud credentials. - No raw credentials are sent by the client - only the user-scoped API key.
- Credentials are cached for 60 seconds to reduce key service load, then re-validated.
Self-Hosted Mode (single-operator):
- A server-side
MCP_API_KEYvalidates access. - Each client provides Nextcloud credentials via
X-Nextcloud-*headers.
Common security measures:
- Per-Request Credential Isolation: Each request gets its own isolated set of Nextcloud clients via
AsyncLocalStorage. No credential state is shared between requests. - No Environment Variable Fallback: The HTTP server never falls back to
NEXTCLOUD_*environment variables for credentials. These are only used in CLI mode. - Restricted CORS: Only origins listed in
ALLOWED_ORIGINSare permitted (defaults tosmithery.aiandclaude.ai). - Protected Analytics: The
/analyticsendpoint requiresMCP_API_KEYauthentication in both modes. The dashboard page stores the key in session storage, never in the URL. Client IPs are hashed before storage. - Debug Tools Disabled in Production: Calendar debug tools are automatically disabled when
NODE_ENV=production.
Self-Hosting Checklist
If you deploy your own instance:
- Choose an auth mode: set
KEY_SERVICE_URL+KEY_SERVICE_TOKENfor key service, orMCP_API_KEYfor self-hosted - Set
MCP_API_KEYfor analytics access (required in both modes) - Do NOT set
NEXTCLOUD_*environment variables on the HTTP server - Use HTTPS (TLS) for all connections
- Configure
ALLOWED_ORIGINSto restrict which domains can connect - Use Nextcloud App Passwords (not your main login password)
Troubleshooting
Common Issues
-
404 Errors on WebDAV/Calendar/Contacts:
- Ensure your Nextcloud credentials are correct
- Verify the Nextcloud apps (Calendar, Contacts) are installed and enabled
- Check that your app password has the necessary permissions
-
Authentication Failures:
- Use an App Password instead of your regular password
- Verify the
NEXTCLOUD_HOSTURL is correct (including https://) - Ensure the Nextcloud instance is accessible
-
Missing Tools:
- Run the
hellotool to verify all 30 tools are available - Check the server logs for any initialization errors
- Run the
-
Search Timeout Issues:
- Use
quickSearch: truefor root directory searches - Specify a
basePathlike "/Documents" instead of searching root "/" - Add
fileTypesfilters to narrow the search scope - Reduce
maxDepthparameter for faster results
- Use
Hosted HTTP / Claude.ai Debugging
If the hosted connector still fails, use this order:
- Verify the auth-free diagnostics route first:
- enable
ENABLE_MCP_DIAGNOSTICS=true - test
/mcp-debug/open - if this works, the issue is likely auth or an upstream dependency, not basic MCP transport
- enable
- Verify the key-service resolver directly from the deployed MCP host:
Expected:
200 OKContent-Type: application/json- valid JSON response
- Verify the MCP initialize response body, not just the status code:
Expected:
200 OKContent-Type: text/event-stream- non-empty SSE initialize response body
- If the hosted client keeps retrying the same initialize request every few seconds, suspect an empty or malformed SSE initialize response even if the HTTP status is
200. - Enable temporary tracing with
MCP_TRACE_HTTP=trueand inspect:- final status code
- request
accept - request
content-type content-typeresponse header- auth outcome (
resolved,invalid_key,service_unavailable,malformed_response)
Development
Project Structure
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test with
npm run dev - Submit a pull request
License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) - see the LICENSE file for details.
Acknowledgments
- Original Python implementation by cbcoutinho
- Built with Model Context Protocol
- Deployable via Smithery
来源:README.md,提交 05be513
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Smithery 集成

222wcnm Bilistalkermcp
ai.smithery官方发布者
Bilibili 创作者分析服务器,让助手查询指定用户的资料、视频、动态、专栏、字幕、关注列表和评论。

Zwldarren Akshare One Mcp
ai.smithery官方发布者
远程 MCP 服务器,让助手以只读方式获取中国股市数据:历史与实时行情、新闻和财务报表。

Zhaoganghao Hellomcp
ai.smithery官方发布者
一个小型远程 MCP 服务器,让助手按名字向人问候,并介绍“Hello, World”的由来。

Zeta Chain Cli
ai.smithery官方发布者
一个远程 MCP 服务器,让助手为任意姓名或受众生成友好、可定制的问候语。

Yuna0x0 Hackmd Mcp
ai.smithery官方发布者
一个连接 HackMD API 的 MCP 服务器,让助手读取、创建、更新和删除 HackMD 笔记并管理团队。