
claude desktop mcp
为Claude桌面提供文件系统功能的MCP服务器实现,支持文件操作和安全保障。
Repository Info
About This Server
为Claude桌面提供文件系统功能的MCP服务器实现,支持文件操作和安全保障。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Claude Desktop MCP Server
A filesystem Model Context Protocol (MCP) server implementation for Claude Desktop. This server provides filesystem capabilities to Claude, allowing it to read, write, and manipulate files on your system.
Features
- List files with glob pattern matching
- Read file contents
- Write to files
- Edit files with diff output
- Delete files
- Secure path normalization to prevent directory traversal attacks
Prerequisites
- Bun v1.2.5 or later
Installation
Clone the repository and install dependencies:
git clone https://github.com/yourusername/claude-desktop-mcp.git
cd claude-desktop-mcp
bun install
Usage
Run the MCP server:
bun run index.ts [base-directory]
If no base directory is provided, the current working directory will be used.
Available Tools
The server exposes the following tools:
list_files: Lists files matching a glob patternread_file: Reads the content of a filewrite_file: Writes content to a fileedit_file: Edits an existing file with the provided content and shows diffdelete_file: Deletes a file
Security
The server implements path normalization and validation to ensure that operations are restricted to the specified base directory, preventing directory traversal attacks.
License
MIT
Acknowledgments
- Based on the Model Context Protocol specification
- Built with Bun JavaScript runtime
Quick Start
Clone the repository
git clone https://github.com/tkc/claude-desktop-mcpInstall dependencies
cd claude-desktop-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.