FileMCP
БесплатноНе проверенMinimal MCP file server for safe file operations under a local AgentFiles directory.
Описание
Minimal MCP file server for safe file operations under a local AgentFiles directory.
README
FileMCP is a small Model Context Protocol (MCP) file server for AI Agents.
The server exposes simple file operations under an AgentFiles folder.
What It Does
FileMCP exposes these MCP tools:
createFileTool: creates a new file underAgentFilesand refuses to silently overwrite an existing file.overwriteFileTool: writes or replaces a file underAgentFiles.createDirectoryTool: creates a directory underAgentFiles.readFileTool: reads a UTF-8 text file fromAgentFiles.listDirectoryTool: lists files and folders underAgentFiles.
The read and list tools include path traversal checks so requests cannot escape the AgentFiles directory.
Requirements
- Node.js 18+
- npm
Install FileMCP
From your root directory:
npm install --save https://github.com/devcheyannagraham/FileMCP.git
Use With An Agent
In your import the server and pass it into your agent config:
import { filemcp } from "filemcp/server.ts";
import { agent } from "<your-agent-sdk>";
const myAgent = agent({
mcpServer: filemcp,
});
File Operations
File operations are relative to an AgentFiles folder in the working directory.
Asking the agent to read file.txt actually reads AgentFiles/file.txt.
Same with writes.
Ensure there is a folder called 'Agent Directory' in the root directory for the agent to read.
The code is simple and you can change this locally if you want. :)
Project Files
server.ts: creates the MCP server, registers tools, and starts stdio transport.tools.ts: implements the filesystem tools.toolSchemas.ts: defines tool descriptions and Zod schemas.
Установка FileMCP
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/devcheyannagraham/FileMCPFAQ
FileMCP MCP бесплатный?
Да, FileMCP MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для FileMCP?
Нет, FileMCP работает без API-ключей и переменных окружения.
FileMCP — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить FileMCP в Claude Desktop, Claude Code или Cursor?
Открой FileMCP на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare FileMCP with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
