Lets LLMs read, search and analyze code files from the local file system, with caching and live file watching.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add file-context -- npx -y @smithery/cli install @bsmi021/mcp-file-context-server --client claude~/.codex/config.toml
[mcp_servers.file-context]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@bsmi021/mcp-file-context-server", "--client", "claude"]
# codex mcp add file-context -- npx -y @smithery/cli install @bsmi021/mcp-file-context-server --client claude~/.cursor/mcp.json
{
"mcpServers": {
"file-context": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-file-context-server",
"--client",
"claude"
]
}
}
}.vscode/mcp.json
{
"servers": {
"file-context": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-file-context-server",
"--client",
"claude"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"file-context": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-file-context-server",
"--client",
"claude"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"file-context": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-file-context-server",
"--client",
"claude"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"file-context": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-file-context-server",
"--client",
"claude"
]
}
}
}