MCP File Tools Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP File Tools Server
An MCP (Model Context Protocol) server that provides file system and utility tools for Claude.
Features
Tools
get_time: Get current time in any timezone
search_files: Search for files by pattern in a directory
read_file: Read file contents (with optional line limit)
list_directory: List directory contents
file_info: Get detailed file/directory information
run_command: Run safe shell commands (limited set)
Resources
env://system: System and environment information
Related MCP server: FS-MCP
Prerequisites
Node.js 18+
npm or yarn
Installation
npm installUsage
Development
npm run devProduction
npm run build
npm startTesting with Inspector
npm run inspectThis opens a web UI to test your tools interactively.
Connecting to Claude
Claude Code
Add to ~/.claude/config.json:
{
"mcpServers": {
"file-tools": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/src/index.ts"]
}
}
}Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"file-tools": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/src/index.ts"]
}
}
}Example Prompts
Once connected, try these with Claude:
"What time is it in Tokyo?"
"Find all TypeScript files in my project"
"Read the package.json file"
"Show me what's in the src directory"
"Get info about this file: ./tsconfig.json"
Project Structure
├── src/
│ └── index.ts # Main MCP server
├── package.json
├── tsconfig.json
└── README.mdTechnologies
@modelcontextprotocol/sdk: Official MCP SDK
Zod: Schema validation
TypeScript: Type safety
Security Notes
The
run_commandtool only allows a whitelist of safe commandsFile operations are limited to what the process has permission to access
Consider running with appropriate permissions in production
License
MIT
Article
Read the full tutorial: [Link to Medium article]
Related MCP Connectors
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceExtends Claude Desktop with custom tools for file management, system operations, and command execution. Supports creating/reading/deleting files, directory listing, system information retrieval, and file searching capabilities.-
- AlicenseNot gradedqualityCmaintenanceProvides Claude with complete file system integration including directory management, file operations, Office document creation/editing, and advanced file tree visualization.3MIT
- AlicenseAqualityCmaintenanceProvides filesystem, web search, SQLite, and system tools for AI assistants like Claude, enabling secure access to local resources and the web.6MIT
- FlicenseNot gradedqualityDmaintenanceProvides filesystem access to Claude via the MCP protocol, enabling local file operations through natural language.-