概览
What is File MCP?
File MCP is a Model Context Protocol server that exposes common file system operations through a standardized API. It is designed to help prototype and integrate error logs into MCP clients.
How to use File MCP?
Install dependencies with npm install, build the project with npm run build, then start the server with npm start. For development use npm run dev, and for inspection use npm run inspect. The server exposes tools such as readFile, writeFile, listFiles, tailFile, and listTools.
Key features of File MCP
- Standardized file system API via Model Context Protocol.
- Read and write file contents.
- List files in a directory.
- Tail the last N lines of a file.
- List all registered tools.
Use cases of File MCP
- Reading logs or configuration files from an MCP client.
- Writing data to files programmatically.
- Browsing directory contents for debugging.
- Quickly inspecting the last lines of a growing log file.
- Discovering available file operations during development.
FAQ from File MCP
How do I install File MCP?
Run npm install in the project directory.
How do I build and start the server?
Run npm run build then npm start.
What tools are available?
The available tools are readFile, writeFile, listFiles, tailFile, and listTools.
How can I inspect the server during development?
Use npm run inspect.
What license does File MCP use?
File MCP is licensed under MIT.