发现优秀的 MCP 服务器

通过 MCP 服务器扩展您的代理能力,拥有 10,038 个能力。

文件系统15
Filesystem MCP Server

Filesystem MCP Server

一个 MCP 服务器,允许 Claude AI 执行文件系统操作,包括在指定的允许路径内读取、写入、列出、移动文件和搜索目录。 (Alternative, slightly more formal and technical:) 一个 MCP 服务器,它赋予 Claude AI 在预先设定的允许路径下执行文件系统操作的能力,包括读取、写入、列出、移动文件以及搜索目录。

本地
JavaScript
MCP Source Tree Server

MCP Source Tree Server

Okay, I understand. Here's how you can generate a JSON file tree from a specified directory's `src` folder, respecting `.gitignore` rules, suitable for quick project structure review in Claude. I'll provide a Python script to accomplish this. **Explanation:** 1. **`gitignore_parser` Library:** We'll use the `gitignore_parser` library to correctly interpret `.gitignore` files. This is crucial for accurately reflecting what files should be excluded. If you don't have it, you'll need to install it: `pip install gitignore_parser` 2. **`os.walk()`:** This function recursively traverses the directory tree. 3. **`.gitignore` Handling:** The script reads and parses `.gitignore` files in each directory it encounters. 4. **JSON Output:** The script constructs a JSON representation of the file tree. **Python Script:** ```python import os import json import gitignore_parser def generate_file_tree_json(root_dir, output_file="file_tree.json"): """ Generates a JSON file tree from the 'src' folder of a specified directory, respecting '.gitignore' rules. Args: root_dir (str): The root directory of the project. output_file (str): The name of the output JSON file. Defaults to "file_tree.json". """ src_dir = os.path.join(root_dir, "src") if not os.path.exists(src_dir): print(f"Error: 'src' directory not found in {root_dir}") return def build_tree(directory, ignore_checker): """Recursively builds the file tree.""" tree = {} for item in os.listdir(directory): full_path = os.path.join(directory, item) relative_path = os.path.relpath(full_path, src_dir) # Path relative to src if ignore_checker(relative_path): continue # Skip ignored files/directories if os.path.isfile(full_path): tree[item] = None # Represent files as None elif os.path.isdir(full_path): tree[item] = build_tree(full_path, ignore_checker) return tree def create_ignore_checker(root_directory): """Creates a function to check if a file/directory is ignored based on .gitignore files.""" ignore_files = [] for root, _, files in os.walk(root_directory): if '.gitignore' in files: ignore_files.append(os.path.join(root, '.gitignore')) ignore_list = [] for ignore_file in ignore_files: ignore_list.append(gitignore_parser.parse(ignore_file)) def is_ignored(path): for ignore in ignore_list: if ignore(os.path.join(src_dir, path)): # Check against the full path return True return False return is_ignored ignore_checker = create_ignore_checker(src_dir) file_tree = build_tree(src_dir, ignore_checker) with open(output_file, "w") as f: json.dump(file_tree, f, indent=4) print(f"File tree JSON saved to {output_file}") # Example Usage: if __name__ == "__main__": # Replace with the actual root directory of your project project_root = "/path/to/your/project" # <---- CHANGE THIS! generate_file_tree_json(project_root) ``` **How to Use:** 1. **Install `gitignore_parser`:** `pip install gitignore_parser` 2. **Replace Placeholder:** In the `if __name__ == "__main__":` block, replace `"/path/to/your/project"` with the actual absolute path to the root directory of your project (the directory containing the `src` folder). 3. **Run the Script:** Execute the Python script. It will create a file named `file_tree.json` in the same directory as the script. 4. **Upload to Claude:** Upload the `file_tree.json` file to Claude. **Example `file_tree.json` Output (Illustrative):** ```json { "components": { "Button.js": null, "Input.js": null }, "utils": { "api.js": null, "helpers.js": null }, "App.js": null, "index.js": null } ``` **Key Improvements and Considerations:** * **`.gitignore` Parsing:** Uses `gitignore_parser` for accurate `.gitignore` handling. This is *essential* for real-world projects. * **Error Handling:** Includes a check to ensure the `src` directory exists. * **Relative Paths:** Uses `os.path.relpath` to store paths relative to the `src` directory in the JSON, making the output more concise and readable. * **Clearer Structure:** Represents files as `null` in the JSON tree, which is a common and easily understood convention. * **Example Usage:** Provides a clear example of how to use the script. * **Comments:** Includes comments to explain the code. * **`create_ignore_checker` Function:** This function encapsulates the logic for creating the ignore checker, making the code more modular and readable. It finds all `.gitignore` files within the `src` directory and its subdirectories. * **Full Path Checking:** The `is_ignored` function now checks the full path (relative to the `src` directory) against the `.gitignore` rules, ensuring accurate matching. * **Modularity:** The code is broken down into functions for better organization and reusability. **How to Use with Claude:** 1. **Upload the JSON:** Upload the generated `file_tree.json` file to Claude. 2. **Prompt Claude:** Craft a prompt that asks Claude to analyze the file structure. For example: * "Here is a JSON representation of the file structure of a project's `src` directory. Can you identify the main components and utilities?" * "Analyze this file structure and suggest potential areas for refactoring." * "Based on this file structure, what design patterns might be in use?" * "This JSON represents the file tree of a React project. Identify the likely component structure." The more specific your prompt, the better the results you'll get from Claude. You can also ask Claude to generate diagrams or visualizations based on the JSON data.

本地
Python
Everything Search MCP Server

Everything Search MCP Server

提供与 Everything 搜索器的集成,通过模型上下文协议实现强大的文件搜索功能,并提供高级搜索选项,如正则表达式、区分大小写和排序。

本地
JavaScript
Deskaid

Deskaid

一个 MCP 服务器,提供用于在本地文件系统上读取、写入和编辑文件的工具。

本地
Python
Model Control Plane (MCP) Server

Model Control Plane (MCP) Server

一个服务器实现,通过 REST API 端点,为 OpenAI 服务、Git 仓库分析和本地文件系统操作提供统一的接口。

本地
Python
MCP Documentation Service

MCP Documentation Service

一个模型上下文协议的实现,使 AI 助手能够与 Markdown 文档文件进行交互,提供文档管理、元数据处理、搜索和文档健康分析等功能。

本地
JavaScript
MCP File Context Server

MCP File Context Server

一个模型上下文协议服务器,使大型语言模型能够读取、搜索和分析代码文件,并具有高级缓存和实时文件监控功能。

本地
JavaScript
Deskaid

Deskaid

Coding assistant MCP for Claude Desktop. Contribute to ezyang/codemcp development by creating an account on GitHub.

本地
Python
Code Snippet Server

Code Snippet Server

Contribute to ngeojiajun/mcp-code-snippets development by creating an account on GitHub.

本地
JavaScript
filesystem@quarkiverse/quarkus-mcp-servers

filesystem@quarkiverse/quarkus-mcp-servers

Model Context Protocol Servers in Quarkus. Contribute to quarkiverse/quarkus-mcp-servers development by creating an account on GitHub.

本地
Zoom Transcript MCP Server

Zoom Transcript MCP Server

一个 MCP 服务器,使用户能够通过结构化的界面列出、下载、搜索和管理 Zoom 会议记录。

JavaScript
MCP GitHub Repository Server

MCP GitHub Repository Server

一个服务器,允许 AI 助手浏览和读取指定 GitHub 仓库中的文件,并通过模型上下文协议提供对仓库内容的访问。

JavaScript
File Context MCP

File Context MCP

这个服务器提供了一个 API,可以使用本地文件的上下文来查询大型语言模型,支持各种模型和文件类型,以实现上下文感知的响应。

TypeScript
Box MCP Server

Box MCP Server

Box MCP 服务器方便使用开发者令牌认证在 Box 中搜索和读取 PDF 和 Word 文件。

JavaScript
Unstructured Document Processor MCP

Unstructured Document Processor MCP

一个模型上下文协议服务器,它使大型语言模型能够从各种文件格式的非结构化文档中提取和使用内容。

Python
MCP SSH Server

MCP SSH Server

一个安全的 SSH 服务器实现,用于模型上下文协议,支持远程命令执行和文件操作,并同时支持密码和密钥认证。 (Alternative, slightly more formal and technical:) 一个为模型上下文协议设计的安全 SSH 服务器实现,该实现支持远程命令执行和文件操作,并提供密码和密钥两种认证方式。

TypeScript
MCP Server for Apache OpenDAL™

MCP Server for Apache OpenDAL™

一个模型上下文协议服务器,通过 Apache OpenDAL™ 提供对包括 S3、Azure Blob 存储和 Google Cloud Storage 在内的多个存储服务的无缝访问。

Python
Dropbox MCP Server

Dropbox MCP Server

MCP Server for Dropbox. Contribute to amgadabdelhafez/dbx-mcp-server development by creating an account on GitHub.

TypeScript
File System MCP Server

File System MCP Server

镜子 (jìng zi)

mcp_server_local_files

mcp_server_local_files

本地文件系统 MCP 服务器 (Běn dì wénjiàn xìtǒng MCP fúwùqì)

MCP Filesystem

MCP Filesystem

具有模型上下文协议 (MCP) 服务器,工作区中的每个文件都有一个资源

Filesystem MCP 🌐

Filesystem MCP 🌐

Node.js 模型上下文协议 (MCP) 服务器,为 Cline/Claude 等 AI 代理提供安全、相对的文件系统访问。

filesystem-mcp-server

filesystem-mcp-server

Go-MCP-File-Server

Go-MCP-File-Server

Filesystem MCP Server

Filesystem MCP Server

镜子 (jìng zi)

Filesystem MCP Server

Filesystem MCP Server

Filesystem MCP Server SSE

Filesystem MCP Server SSE

MCP 服务的 SSE 版本是从文件系统 MCP 服务器修改而来的。

MCP Filesystem Server

MCP Filesystem Server

MCP Server Filesystem Service

MCP Server Filesystem Service

MCP 文件系统解决方案 (MCP wénjiàn xìtǒng jiějuéfāng'àn)

Filesystem MCP Server

Filesystem MCP Server