File MCP

by mattlemmone

1 274 downloads Not rated yet

About

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.

Explore

- 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.

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.

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

| 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 |

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.