ShobanChiddarth/mcp-readonly-filesystem-gitignore
An MCP server for giving only READ access that respects .gitignore
Platform-specific configuration:
{
"mcpServers": {
"mcp-readonly-filesystem-gitignore": {
"command": "npx",
"args": [
"-y",
"mcp-readonly-filesystem-gitignore"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A read-only MCP filesystem server that respects .gitignore. Mount any directory into the container and expose it to an AI agent - files matched by .gitignore and the .git directory are never accessible.
Served over SSE via mcp-proxy on port 9090.
docker run -it --rm -p 127.0.0.1:9090:9090 -v $(pwd):/app shobanchiddarth/mcp-readonly-filesystem-gitignoredocker run -d -p 127.0.0.1:9090:9090 -v $(pwd):/app shobanchiddarth/mcp-readonly-filesystem-gitignoreThe server is now available at http://localhost:9090/sse.
| Tool | Description | |---|---| | read_file | Read the contents of a file | | list_directory | List files and directories at a path | | search_files | Search for files by glob pattern |
.gitignore in the mounted directory.git directoryNo command execution, no file editing, no permission changes.
Loading reviews...