Skip to main content
Glama
hemanthshashidhar

Local AI Files MCP

Local AI Files MCP

Allowlisted local filesystem access for MCP-compatible AI clients.

This project gives desktop AI clients a controlled way to inspect and edit files on your device. It exposes a local MCP server over stdio for desktop clients such as Claude Desktop, and a Streamable HTTP mode for remote/tunneled clients such as ChatGPT custom MCP apps.

What It Can Do

  • Show configured allowed folders.

  • Inspect file and directory metadata.

  • List directories.

  • Read UTF-8 text files with byte limits.

  • Search text files with optional glob filtering.

  • Create, overwrite, or append text files.

The server refuses every path outside explicit allowed roots, resolves real paths to block symlink escapes, and enforces read/write byte limits.

Related MCP server: LocalFS MCP Server

Install

npm install
npm run build

Allow at least one folder:

node dist/cli.js allow ~/Projects

Run With Claude Desktop

Build the project, then add this to Claude Desktop's MCP config, replacing the path:

{
  "mcpServers": {
    "local-ai-files": {
      "command": "node",
      "args": [
        "/home/hemanth/local-ai-files-mcp/dist/cli.js",
        "stdio"
      ]
    }
  }
}

Restart Claude Desktop and ask it to use local-ai-files.

Build Claude Desktop Extension

The included manifest.json follows MCPB manifest version 0.3.

npm run pack:mcpb

That creates local-ai-files-mcp.mcpb. Install it in Claude Desktop through Settings -> Extensions -> Advanced settings -> Install Extension.

Run HTTP Mode For ChatGPT-Style Remote MCP

ChatGPT web cannot connect directly to a local MCP server. Run HTTP mode locally, then expose it through a secure tunnel or OpenAI Secure MCP Tunnel if available for your workspace.

node dist/cli.js http --host 127.0.0.1 --port 3033

MCP endpoint:

http://127.0.0.1:3033/mcp

For ChatGPT custom apps, configure the externally reachable tunnel URL as the MCP server endpoint. Keep the tunnel private, authenticated, and scoped to your own account or workspace.

Commands

local-ai-files-mcp allow <folder>
local-ai-files-mcp deny <folder>
local-ai-files-mcp roots
local-ai-files-mcp stdio [folder...]
local-ai-files-mcp http [folder...] --host 127.0.0.1 --port 3033

Passing folders to stdio or http allows them for that process without changing the saved config.

Security Notes

  • Do not allow your whole home folder unless you really want the AI to see it.

  • Prefer project-specific folders.

  • Treat write_file as a real local write operation.

  • Do not expose HTTP mode to the public internet without authentication and network controls.

  • Search skips common heavy folders such as .git, node_modules, dist, and build.

Verification

npm run check
F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Provides secure file system operations for AI assistants including directory listing, file reading/writing, deletion, searching, and copying. Features safety controls like path validation, permission checks, and file size limits.
    Last updated
  • F
    license
    -
    quality
    D
    maintenance
    Provides sandboxed access to local filesystem operations including directory and file management, content search with glob and regex patterns, and binary file support with configurable safety limits.
    Last updated
  • F
    license
    -
    quality
    C
    maintenance
    A secure, sandboxed file system server that enables reading, writing, searching, and managing files through MCP-compatible AI clients with path traversal protection and size limits.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Securely search and manage workspace context files for AI agents and teams.

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hemanthshashidhar/mcpclaude'

If you have feedback or need assistance with the MCP directory API, please join our Discord server