PkgxSAFE
can your ai run anything? yes it can
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A [Model Context Protocol] server that can run any Open Source tool via pkgx.
Usage
- Install [
pkgx] (or not, we download it for you if you don’t) git clone https://github.com/pkgxdev/pkgx-mcp- Consume in an MCP client (see below for configuration examples)
Cursor/Claude Configuation
~/.cursor/mcp.json:~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pkgx": {
"command": "/path/to/pkgx-mcp/main.ts"
}
}
}Or without pkgx, but with npx:
{
"mcpServers": {
"pkgx": {
"command": "npx",
"args": ["ts-node", "/path/to/pkgx-mcp/main.ts"]
}
}
}MCP Inspector
npx @modelcontextprotocol/inspector ts-node ./main.ts
Suggested Prompts
Use pkgx to run a series of git commands and generate statistics about this repository.
Security
Security? Hah.
But seriously, this is a dangerous tool. You are letting AI read any file on your computer†. We have the decency to run pkgx in a sandbox so at least a rogue AI can’t run rm -rf /. But we have not restricted reads because that seemed too limiting.
We need the MCP protocol to advance to allow the user to be prompted with UI to approve certain things that the AI cannot by itself do or something like that.
In the meantime USE WITH ABSURD AMOUNTS OF CAUTION.
† well, on macOS at least we prevent reads to~/.sshand~/.aws, PRs welcome to exclude more and add Linux sandboxing.
[!IMPORTANT] The AI cannot write to your file system. On macOS anyway. On Linux we need you to PR that for us.
[Model Context Protocol]: https://github.com/modelcontextprotocol [pkgx]: https://pkgx.sh
3a4904c5df2dOBSERVED · 2026-10-09Exposed tools (2)
0 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
run-command-line | write | Run a command line with \ |
run-program-with-array-of-args | write | Run a single program with \ |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (2 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, @types/node, typescript
Gates applied: no_behavioural_pass, no_license.
3a4904c5df2dfull audit observations/trust-audit/mcp-server/pkgxdev__pkgx.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 3a4904c5df2d | SAFE | B | 89 | first audit |
Questions
What is the Pkgx MCP server?
can your ai run anything? yes it can
What tools does Pkgx expose?
2 in total: 0 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Pkgx safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Pkgx need?
No credential environment variables were found in its source, so it appears to need none.
How does Pkgx run?
It speaks stdio, so it runs as a local process your client starts.
How current is this page?
The grade is for one exact copy of the source (3a4904c5df2d), read on 2026-10-09. The repository is watched and re-audited when it changes.