Skip to main content
Glama

MCP File Server

by codyde

MCP 파일 서버

표준화된 인터페이스를 통해 파일 시스템 작업을 제공하는 MCP(모델 컨텍스트 프로토콜) 서버 구현입니다.

개요

MCP 파일 서버는 AI 모델이 표준화된 API를 통해 로컬 파일 시스템에서 파일 작업을 수행할 수 있도록 지원합니다. MCP 파일 서버는 Model Context Protocol SDK를 사용하여 구축되었으며, 파일을 읽고, 생성하고, 나열하는 도구를 제공합니다.

특징

  • 파일 생성 : 지정된 내용으로 새 파일을 생성합니다.
  • 파일 읽기 : 기존 파일의 내용을 읽습니다.
  • 디렉토리 내용 나열 : 자세한 정보와 함께 파일 및 디렉토리 나열
  • 성능 모니터링 : 오류 추적 및 성능 모니터링을 위한 Sentry 통합 기능 내장

설치

지엑스피1

용법

MCP 파일 서버를 시작합니다.

node src/index.js

서버는 MCP 프로토콜을 사용하여 stdin/stdout을 통해 통신합니다.

사용 가능한 도구

createfile

제공된 콘텐츠로 지정된 경로에 새 파일을 만듭니다.

매개변수:

  • filePath : 파일이 생성되어야 하는 경로
  • content : 파일에 쓸 내용

보고:

  • 파일 경로 및 크기 정보가 포함된 성공 메시지

읽기 파일

지정된 경로에 있는 파일의 내용을 읽습니다.

매개변수:

  • filePath : 읽을 파일의 경로

보고:

  • 파일의 내용

목록 파일

지정된 경로에 있는 파일과 디렉토리를 나열합니다.

매개변수:

  • path : 내용을 나열할 디렉토리 경로

보고:

  • 파일 이름, 크기, 유형을 포함하는 마크다운 테이블

환경 변수

  • SENTRY_DSN : 오류 추적을 위한 Sentry 데이터 소스 이름(선택 사항)

종속성

  • @modelcontextprotocol/sdk : MCP SDK 패키지
  • zod : 스키마 검증
  • @sentry/node : 오류 추적 및 성능 모니터링

예시

MCP 프로토콜을 통해 이러한 도구를 호출하는 방법의 예:

{ "name": "createfile", "params": { "filePath": "example/test.txt", "content": "Hello, world!" } }
{ "name": "readfile", "params": { "filePath": "example/test.txt" } }
{ "name": "listfiles", "params": { "path": "example" } }
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

표준화된 모델 컨텍스트 프로토콜 인터페이스를 통해 AI 모델이 로컬 파일 시스템에서 파일 시스템 작업(파일 읽기, 생성, 나열)을 수행할 수 있도록 합니다.

  1. 개요
    1. 특징
      1. 설치
        1. 용법
          1. 사용 가능한 도구
            1. createfile
            2. 읽기 파일
            3. 목록 파일
          2. 환경 변수
            1. 종속성
              1. 예시

                Related MCP Servers

                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.
                  Last updated -
                  3
                  TypeScript
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A comprehensive MCP (Model Context Protocol) server for file system operations, providing Claude and other AI assistants with access to local files and directories.
                  Last updated -
                  Python
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  A
                  license
                  A
                  quality
                  A secure Model Context Protocol server that provides controlled filesystem access within predefined directories, enabling AI models to perform file and directory operations with strict path validation.
                  Last updated -
                  16
                  64
                  7
                  TypeScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables AI applications to interact with decentralized storage through a standardized Model Context Protocol interface, allowing file uploads, retrievals, and identity management.
                  Last updated -
                  7
                  TypeScript
                  Apache 2.0
                  • Linux
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/codyde/mcp-file-tool'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server