Skip to main content

vuln-mcp-filesystem-workspace-actions

Intentionally vulnerable MCP server for AI security pentesting training.

Exposes filesystem tools (read/write/list/execute) with deliberate path traversal and code execution vulnerabilities. The server accepts a workspace directory but path validation is naive — ../../../etc/passwd escapes the workspace.

DO NOT use in production. This is a training target.

Tools

Tool Vulnerability
read_file Path traversal — reads any file on the filesystem
write_file Path traversal — writes to any location the process can access
list_directory Path traversal — lists any directory on the system
execute_code Arbitrary Python code execution, no sandboxing

Usage

# Run via uvx (after publishing to PyPI)
uvx vuln-mcp-filesystem-workspace-actions /path/to/workspace

# Or locally
python -m vuln_mcp_fs /path/to/workspace

MCP Client Configuration

.mcp.json:

{
  "mcpServers": {
    "vuln-filesystem": {
      "command": "uvx",
      "args": [
        "vuln-mcp-filesystem-workspace-actions",
        "/path/to/workspace"
      ]
    }
  }
}

Lab Exercises

  1. Path traversal: Ask the agent to read_file with path ../../../etc/passwd
  2. Write outside workspace: write_file to ../../../tmp/pwned.txt
  3. Code execution: Use execute_code to run __import__('os').system('id')
  4. Chain attacks: Read .env files, SSH keys, or AWS credentials from the host

Metadata

Release files for vuln-mcp-filesystem-workspace-actions 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vuln-mcp-filesystem-workspace-actions 0.1.0
File Size Uploaded Provenance Actions
vuln_mcp_filesystem_workspace_actions-0.1.0.tar.gz 563.6 kB Without provenance Details for vuln_mcp_filesystem_workspace_actions-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vuln-mcp-filesystem-workspace-actions 0.1.0
File Interpreter ABI Platform Actions
vuln_mcp_filesystem_workspace_actions-0.1.0-py3-none-any.whl Python 3 none any Details for vuln_mcp_filesystem_workspace_actions-0.1.0-py3-none-any.whl

Total release size: 568.9 kB

Release files / vuln_mcp_filesystem_workspace_actions-0.1.0.tar.gz

Download URL vuln_mcp_filesystem_workspace_actions-0.1.0.tar.gz
Size 563.6 kB
Tags Source
SHA-256 checksum
How to use checksums
708922a8d2790b6f84e265448297123e3578f6b107a5acf411547763d506e25d
BLAKE2b-256 checksum
How to use checksums
537d59fe6949a0365a131edc7137cfcd5a76e93657b6ee3a08b64a5d53729f6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / vuln_mcp_filesystem_workspace_actions-0.1.0-py3-none-any.whl

Download URL vuln_mcp_filesystem_workspace_actions-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c888b1a5fecb46d3e0ab490abfe5e66491b66523aac83b41f02b07ece37b3bd
BLAKE2b-256 checksum
How to use checksums
4a165dbf26595ddfbd7f1acaa557c504547549f25ff771f4fe57ab60be143f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for vuln-mcp-filesystem-workspace-actions 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page