About File MCP
File MCP is a work-in-progress MCP server for basic file system operations. Its README describes it as a prototype for integrating error logs into MCP clients.
Key features
- 01Read file contents
- 02Write file contents
- 03List directory files
- 04Read the last N lines
- 05List registered tools
Use cases
- 01Inspect a file's contents
- 02Write content to a file
- 03Browse files in a directory
- 04Read recent lines from a log
MCP support
It exposes file-reading, writing, listing, tailing, and tool-listing operations to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEFile MCP
A Model Context Protocol (MCP) server that provides file system operations through a standardized API. Mainly just doing this so I can prototype and integrate error logs into mcp clients.
Usage
CLI
npm run build
npm start
Development
npm run dev
Testing
npm run inspect
Available Tools
| Tool Name | Description |
|---|---|
readFile | Read contents of a file |
writeFile | Write content to a file |
listFiles | List files in a directory |
tailFile | Read the last N lines from a file |
listTools | List all tools registered in the server |
Installation
npm install
Build
npm run build
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.