Skip to main content
Glama
cwt

shutil-mcp

by cwt

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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cwt/shutil-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server