Skip to main content

MCP server for asynchronous shell utilities using aioshutil

Project description

shutil-mcp

An MCP server providing asynchronous shell utilities using aioshutil.

This project offers a set of file system tools designed for AI agents, returning structured JSON output instead of raw text. This allows for more precise and direct consumption of file system data by AI models.

Features

  • Asynchronous Operations: Leverages aioshutil for non-blocking file system tasks.
  • JSON Output: All tools return minified JSON, optimized for AI agents.
  • Jail Support: Restrict file system access to a specific directory tree for security.
  • Detailed Metadata: Tools like ls provide comprehensive information (size, mtime, mode, owner, etc.).
  • HTTP Transport Support: Includes built-in support for SSE and Streamable HTTP transports.

Available Tools

  • ls: List directory contents with detailed metadata.
  • cp: Copy files or directories recursively.
  • mv: Move/rename files or directories.
  • rm: Remove files or directories recursively.
  • chmod: Change file/directory permissions.
  • chown: Change file/directory ownership.
  • disk_usage: Get disk usage statistics for a path.
  • which: Find the path to an executable.
  • cat: Read file content, optionally limited to a specific line range.
  • make_archive: Create archive files (zip, tar, etc.).
  • unpack_archive: Unpack archive files.
  • get_archive_formats: List supported archive formats.

Installation

pip install shutil-mcp

Usage

Run with stdio transport

shutil-mcp --transport stdio

Run with jail restriction

shutil-mcp --transport stdio --jail /path/to/projects

Run as SSE server

shutil-mcp --transport sse --jail /path/to/projects --port 8000

Development

See @DEVELOPMENT.md for detailed development instructions.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shutil_mcp-0.3.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shutil_mcp-0.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file shutil_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: shutil_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for shutil_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b87d16177adf90e988511ec8364c8bb060038f85710f713d97f2c7f36bcf8c68
MD5 a2f4629b048f24a39f78840cea052c5f
BLAKE2b-256 6e17c12c84a55fe5486acdee256f02b71ed931b1996fbc1970d993a006cfb4e2

See more details on using hashes here.

File details

Details for the file shutil_mcp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: shutil_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for shutil_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 782f98c0b57f7c135019dd4181b07a27d86f5b4560087e4b30feba05c4186abd
MD5 49cedd07f12071663aff7d955f12c2c3
BLAKE2b-256 bbcfde45476c1de0c996ac2f9db3958df344bfd60c36709f97be623ca0c28d75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page