MM

mark3labs/mcp-filesystem-server

Deployment & DevOps

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

693 stars 116 forks 품질 69 트렌드 21MIT

Go 서버는 파일 시스템 작업을 위해 모델 컨텍스트 프로토콜(MCP)을 구현하고 있습니다.

개요

이 MCP 서버는 모델 컨텍스트 프로토콜(MCP)을 통해 로컬 파일 시스템에 안전한 접근을 제공합니다. - - 이름: 파일 시스템 - 설명: 로컬 파일 시스템 내 파일 및 디렉터리에 대한 접근 - - 파일 시스템에서 파일의 전체 내용을 읽기 - 매개변수: 경로(필수): 읽을 파일 경로 - - 한 번의 작업으로 여러 파일의 내용을 읽기 - 매개변수: 경로(필수): 읽어야 할 파일 경로 목록 - - 새 파일을 생성하거나 기존 파일을 새 콘텐츠로 덮어쓰기 - 매개변수: 패스(필수): 파일을 작성할 경로, 콘텐츠(필수): 파일에 쓸 콘텐츠입니다 - - 파일 및 디렉터리 복사 - 매개변수: 소스 (필수): 파일 또는 디렉터리의 소스 경로, 목적지 (필수): 목적지 경로 - - 파일 및 디렉터리 이동 또는 이름 변경 - 매개변수: 소스 (필수): 파일 또는 디렉터리의 소스 경로, 목적지 (필수): 목적지 경로 - - 파일 시스템에서 파일 또는 디렉터리를 삭제하기 - 매개변수: 경로 (필수): ...

개요(AI 번역)

이 MCP 서버는 모델 컨텍스트 프로토콜(MCP)을 통해 로컬 파일 시스템에 안전한 접근을 제공합니다.

구성 요소

자료

  • file://
  • 이름: 파일 시스템
  • 설명: 로컬 파일 시스템의 파일 및 디렉터리에 대한 접근

도구

파일 작업

  • read_file

  • 파일 시스템에서 파일의 전체 내용을 읽기

  • 매개변수: path (필수): 읽을 파일 경로

  • read_multiple_files

  • 한 번의 작업으로 여러 파일의 내용을 읽습니다

  • 매개변수: paths (필수): 읽어야 할 파일 경로 목록

  • write_file

  • 새 파일을 생성하거나 기존 파일을 새 콘텐츠로 덮어쓰기

  • 매개변수: path (필수): 파일을 작성할 경로, content (필수): 파일에 쓸 내용

  • copy_file

  • 파일 및 디렉터리 복사

  • 매개변수: source (필수): 파일 또는 디렉터리의 소스 경로, destination (필수): 목적지 경로

  • move_file

  • 파일 및 디렉터리 이동 또는 이름 변경

  • 매개변수: source (필수): 파일 또는 디렉터리의 소스 경로, destination (필수): 목적지 경로

  • delete_file

  • 파일 시스템에서 파일이나 디렉터리를 삭제하기

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Filesystem Server

This MCP server provides secure access to the local filesystem via the Model Context Protocol (MCP).

Components

Resources

  • file://
    • Name: File System
    • Description: Access to files and directories on the local file system

Tools

File Operations

  • read_file

    • Read the complete contents of a file from the file system
    • Parameters: path (required): Path to the file to read
  • read_multiple_files

    • Read the contents of multiple files in a single operation
    • Parameters: paths (required): List of file paths to read
  • write_file

    • Create a new file or overwrite an existing file with new content
    • Parameters: path (required): Path where to write the file, content (required): Content to write to the file
  • copy_file

    • Copy files and directories
    • Parameters: source (required): Source path of the file or directory, destination (required): Destination path
  • move_file

    • Move or rename files and directories
    • Parameters: source (required): Source path of the file or directory, destination (required): Destination path
  • delete_file

    • Delete a file or directory from the file system
    • Parameters: path (required): Path to the file or directory to delete, recursive (optional): Whether to recursively delete directories (default: false)
  • modify_file

    • Update file by finding and replacing text using string matching or regex
    • Parameters: path (required): Path to the file to modify, find (required): Text to search for, replace (required): Text to replace with, all_occurrences (optional): Replace all occurrences (default: true), regex (optional): Treat find pattern as regex (default: false)

Directory Operations

  • list_directory

    • Get a detailed listing of all files and directories in a specified path
    • Parameters: path (required): Path of the directory to list
  • create_directory

    • Create a new directory or ensure a directory exists
    • Parameters: path (required): Path of the directory to create
  • tree

    • Returns a hierarchical JSON representation of a directory structure
    • Parameters: path (required): Path of the directory to traverse, depth (optional): Maximum depth to traverse (default: 3), follow_symlinks (optional): Whether to follow symbolic links (default: false)

Search and Information

  • search_files

    • Recursively search for files and directories matching a pattern
    • Parameters: path (required): Starting path for the search, pattern (required): Search pattern to match against file names
  • search_within_files

    • Search for text within file contents across directory trees
    • Parameters: path (required): Starting directory for the search, substring (required): Text to search for within file contents, depth (optional): Maximum directory depth to search, max_results (optional): Maximum number of results to return (default: 1000)
GitHub에서 전체 README 보기

설치

docker run -i --rm ghcr.io/mark3labs/mcp-filesystem-server:latest /path/to/allowed/directory
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "filesystem": { "command": "mcp-filesystem-server", "args": ["/path/to/allowed/directory", "/another/allowed/directory"] } } }