FileMCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FileMCPcreate a new file called hello.txt with the content 'Hello World'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FileMCP
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.
Related MCP server: files-mcp-ts
Requirements
Node.js 18+
npm
Install FileMCP
From your root directory:
npm install --save https://github.com/devcheyannagraham/FileMCP.gitUse 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 Files' 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Zero-install remote MCP server for proof-of-existence file attestation.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP Server that enables LLMs to interact with the local filesystem.13865 npm23MIT
- FlicenseBqualityDmaintenanceA lightweight MCP server for basic file operations, enabling reading, writing, and listing files securely via the Model Context Protocol.31-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides secure access to local file system operations.-
- FlicenseCqualityCmaintenanceAn MCP server for reading files from the local filesystem. Currently supports listing files in directories on the Desktop.3-