DocFS
Click on "Install 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., "@DocFSshow directory tree of src"
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.
DocFS
DocFS is a Model Context Protocol (MCP) server that exposes read-only file system tools to MCP clients. It supports multiple root directories, filters paths using .gitignore, and caches file metadata in an in-memory LRU cache for faster access. Requires Node.js 18 or later.
Tools
dir_tree– view directory structure as a treelist_files– list directories and filessearch_files– search text across filesread_files– read file contents
Related MCP server: mcp-file-lens
Differences from a generic filesystem MCP server
DocFS trades the broader read/write capabilities of a standard filesystem server for a narrower, read-only feature set with extra safety and convenience features:
Read-only operations only
Limited to
dir_tree,list_files,search_files, andread_filesEnforces one or more user-specified root directories
Applies
.gitignorerules and caches file metadata using an in-memory LRU cache
Quick Start
Add the server to any MCP-compatible client by including this JSON in its configuration:
JSON:
{
"mcpServers": {
"docfs": {
"command": "npx",
"args": ["-y", "docfs", "--root", "/path/to/project"]
}
}
}Claude Code:
claude mcp add docfs -- npx -y docfs --root /path/to/project
Codex CLI:
[mcp_servers.docfs]
command = "npx"
args = ["-y", "docfs", "--root", "/path/to/project"]Replace /path/to/project with the directory you want to expose. Repeat --root to allow multiple directories.
Development
pnpm install
pnpm format
pnpm lint
pnpm typecheck
pnpm test
pnpm buildRun DocFS on demand with npx:
npx -y docfs --root /path/to/projectLicense
MIT
Maintenance
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
- -license-quality-maintenanceA secure MCP server enabling read-only access and file search capabilities within a specified directory, while respecting .gitignore patterns.
- Alicense-qualityCmaintenanceAn MCP server that provides a flexible lens into directory structures and files, enabling LLM clients to efficiently navigate and understand codebases with minimal noise. It offers secure, gitignore-aware file access with tools like directory listing, file reading, and grep-like search.1MIT
- AlicenseBqualityDmaintenanceA secure, read-only MCP server for browsing and searching files in a specified directory with path traversal protection and .gitignore support.3MIT
- Alicense-qualityDmaintenanceA professional MCP server that provides filesystem operations while automatically respecting .gitignore patterns, enabling efficient and token-friendly file access for Claude.MIT
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for accessing curated awesome list documentation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/feli0x/docfs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server