MCP server · Audited from source
File Context MCP server
by bsmi021/mcp-file-context-serverMIT licenceAudited 8 Oct 2026 · source adca4f899abb
Is it safe? Yes — SAFE, grade B (86/100). It exposes 8 tools: 7 read, 1 write and 0 destructive. The audit recorded 13 findings (0 critical, 0 high, 1 medium, 11 low). Maintainer's description: A Model Context Protocol (MCP) server that provides file system context to Large Language Models (LLMs). This server enables LLMs to read, search, and analyze code files with advanced caching and real-time file watching capabilities.
Cite
Cite this page
ModelsAtlas. “File Context MCP server (bsmi021/mcp-file-context-server)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/bsmi021/file-context
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
13 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemNone observedNothing seen in the source
- NetworkDeclared1 observation
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 4 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 8 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
bsmi021User accountAccount type recorded when we read the repository. - PackagePublished on npm
file-context-serverat version 1.0.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push15 months agoActivity of the repository when we read it.
- Source commit readadca4f899abbThe audit covers exactly this commit, read on 8 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory8 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (13)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · src/index.ts:1787
console.log(`[HTTP] MCP server listening on http://0.0.0.0:${port}/mcp`);- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/index.ts:838
const hash = createHash('md5').update(content).digest('hex');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/index.ts:886
const hash = createHash('md5').update(content).digest('hex');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, @typescript-eslint/parser, @typescript-eslint/types, chokidar, express, glob, handlebars, lru-cache
- Why
- 17 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.credential_read · PRPs/EXAMPLE_multi_agent_prp.md:165
- Load environment variables with defaults
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · docs/llms-full.txt:4450
load_dotenv() # load environment variables from .env
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · docs/llms-full.txt:5828
This creates the beginnings of a .NET console application that can read the API key from user secrets.
- Why
- asks the agent to read credentials
- Fix
- —
LOWSupply chainprompt.pipe_to_shell · docs/llms-full.txt:6048
curl -LsSf https://astral.sh/uv/install.sh | sh
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWPrompt injectionprompt.transfer_instruction · docs/llms-full.txt:8491
MCP clients **MUST NOT** send tokens to the MCP server other than ones issued by the MCP server's authorization server.
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/llms-full.txt:9445
Client->>+Server: POST InitializedNotification<br>Mcp-Session-Id: 1868a90c...
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/llms-full.txt:9449
Client->>+Server: POST ... request ...<br>Mcp-Session-Id: 1868a90c...
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/llms-full.txt:9462
Client->>+Server: POST ... notification/response ...<br>Mcp-Session-Id: 1868a90c...
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOInventory / provenanceinv.oversize · cache/4b648882430d8aad657e9165c33c42a605e7b408d335749f5f401b1eacb7e484.cache
cache/4b648882430d8aad657e9165c33c42a605e7b408d335749f5f401b1eacb7e484.cache
- Why
- 1950422 bytes not read
- Fix
- —
Tools it exposes
8 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
set_profile | write | Set the active profile for context generation |
generate_outline | read | Generate a code outline for a file, showing its structure (classes, functions, imports, etc). Supports TypeScript/JavaScript and Python files. |
getFiles | read | Retrieve multiple files by their paths, returning content and metadata for each file |
get_chunk_count | read | Get the total number of chunks that will be returned for a read_context request.\nUse this tool FIRST before reading content to determine how many chunks you need to request.\nThe parameters should match what you\ |
get_profile_context | read | Get repository context based on current profile settings |
lc-get-files | read | Retrieve specific file contents |
lc-list-modified-files | read | Track file changes since context generation |
search_context | read | Search for patterns in files |
Install
Package version 1.0.0 · audited commit adca4f8
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 1.0.0. The audit covers commit adca4f8 only.
claude mcp add file-context-server -- npx -y [email protected]
{
"mcpServers": {
"file-context-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}The command pins the package version recorded in the source (1.0.0); the audit covers commit adca4f899abb. Transport: stdio · streamable-http. No environment variables required.
Audit history
- ✓SAFE B 86 / 100
First audit ·
adca4f899abb
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/bsmi021/file-context/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about File Context MCP server
What is the File Context MCP server?
What tools does File Context expose?
Is File Context safe to connect to an agent?
What credentials does File Context need?
How does File Context run?
How current is this page?
Sources
- bsmi021/mcp-file-context-server on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit adca4f899abbObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the File Context MCP server?
- What tools does File Context expose?
- Is File Context safe to connect to an agent?