MCP server safety grade
TokenSafe
Context, runtime and review for AI coding agents. One local install.
npx -y tokensafe · npm tokensafe 5.9.14 · score 90/100 · scanned 2026-12-05
What it can do
- Yes: Network access
- Yes: Writes or deletes files
- Yes: Runs programs or shell commands
- Yes: Reads environment variables
- Yes: Runs code built at runtime
These are normal for many MCP servers. They tell you what the server could do with the access you give it.
Risk signals
- Builds and runs code at runtime
tokensafe/repo_compute.py:80exec(compile(_source, "<compute>", "exec"), _scope)
Worth knowing
Not scored. Often harmless (security tools, denylists and chat bots mention these too), shown so you can judge.
- Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)
tokensafe/compactor.py:327…nore|\.prettierrc[\w\.\-]*|\.eslintrc[\w\.\-]*|\.npmignore|\.npmrc|\.yarnrc)'
- Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)
tokensafe/guard.py:38r"(?:\.env(?:\.[\w-]+)?|id_rsa|id_ed25519|credentials\.json|service_account\.json|"
- Mentions credential files (SSH keys, cloud credentials, browser data or crypto wallets)
tokensafe/guard.py:39r"\.npmrc|\.pypirc|[\w.-]*\.(?:pem|key)|secrets?\.(?:json|ya?ml|toml|env))"
- Mentions a webhook, paste or tunnel service address
tokensafe/secret_redactor.py:139"https://discord.com/api/webhooks/[REDACTED_DISCORD_WEBHOOK]"
Package facts
| Weekly downloads | — |
|---|---|
| First published | 2026-11-08 |
| This version published | 2026-12-05 |
| Versions | 225 |
| Maintainers | 1 |
| Licence | Apache-2.0 |
| Source repository | github.com/tokensafe-dev/tokensafe |
| Runs scripts on install | No |
| Files in package | 221 (4,646 KB) |
| Web addresses in code | api.anthropic.com api.deepseek.com api.openai.com api.tokensafe.dev api.z.ai discord.com generativelanguage.googleapis.com gitlab.com hooks.slack.com localhost.evil.com openrouter.ai tokensafe.dev www.apple.com |
Where we saw each capability (12 examples)
- Makes network requests
tokensafe/panel/assets/app.js:141response = await fetch(path, init);
- Runs shell commands or other programs
extensions/cursor-tokensafe/extension.js:2const { execFile } = require('child_process'); - Runs shell commands or other programs
bin/tokensafe-acp.js:15const { spawn } = require('child_process'); - Reads environment variables (where API keys usually live)
bin/tokensafe-acp.js:26env: process.env,
- Runs shell commands or other programs
bin/tokensafe.js:8const { spawn, spawnSync } = require('child_process'); - Reads environment variables (where API keys usually live)
bin/tokensafe.js:18const TOKENSAFE_HOME = process.env.TOKENSAFE_HOME
- Reads environment variables (where API keys usually live)
bin/tokensafe.js:19? path.resolve(process.env.TOKENSAFE_HOME)
- Writes, moves or deletes files
bin/tokensafe.js:204if (fs.statSync(candidate).isDirectory()) fs.rmSync(candidate, { recursive: true, force: true }); - Writes, moves or deletes files
bin/tokensafe.js:287fs.rmSync(localArchive, { force: true }); - Writes, moves or deletes files
bin/tokensafe.js:315fs.rmSync(dir, { recursive: true, force: true }); - Makes network requests
tokensafe/panel/__init__.py:55import urllib.request
- Makes network requests
tokensafe/panel/__init__.py:57with urllib.request.urlopen(url.rstrip("/") + "/healthz", timeout=timeout) as response:
Badge
Maintainer? Add it to your README:
[](https://nodekya.com/mcp/dev-tokensafe-tokensafe)
The badge updates when we re-grade a new release from the registry.
Automated scan of the published package, not a security audit. A good grade means we found none of the patterns we check for (method). Think we got it wrong? Email hello@primemoverindustries.com and we re-check within 2 days.
Need a package that isn't here checked, or a fresh check of an unreleased version? Check any npm or PyPI package (US$9).
This grade as JSON (free, for agents).