MCP.so
登录

Disk Usage MCP Server (Demo)

@u1i

基本信息

分类

其他

传输方式

stdio

作者

u1i

关于 Disk Usage MCP Server

暂无概览

#mcp#disk-usage#server

Disk Usage MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-disk-usage": {
      "command": "python",
      "args": [
        "disk_usage_server.py"
      ]
    }
  }
}

Disk Usage MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Disk Usage MCP Server (Demo)?

Disk Usage MCP Server (Demo) is a demo MCP server that enables AI models like Claude to check real-time disk usage on a Mac. It uses the df command to retrieve disk statistics and returns structured data for the system partition.

How to use Disk Usage MCP Server (Demo)?

Clone the repository, install dependencies with pip install -r requirements.txt, and run python disk_usage_server.py. Then configure Claude Desktop by adding a claude-config.txt file with the server’s path in the MCP servers section, and restart Claude Desktop.

Key features of Disk Usage MCP Server (Demo)

  • Provides a single tool: get_disk_usage
  • Returns total, used, available, reserved space in GB
  • Shows usage percentage and mount point
  • Designed specifically for macOS (checks /System/Volumes/Data)
  • Uses Python’s subprocess to run the df command
  • Communicates via bidirectional JSON-RPC over WebSocket

Use cases of Disk Usage MCP Server (Demo)

  • Ask Claude "What is my current disk usage?" and get a formatted response
  • Monitor available disk space without leaving the AI chat
  • Quickly check if disk is near capacity and receive cleanup suggestions

常见问题

1

What operating system is required?

macOS (the tool is specifically designed for Mac’s disk structure and will not work on other operating systems).

2

How do I integrate with Claude Desktop?

Create a `claude-config.txt` file in the Claude Desktop configuration directory (usually `~/.config/claude-desktop/` on macOS) with the path to the server’s Python file, then restart Claude Desktop.

3

What disk partition does it check?

It specifically looks at the `/System/Volumes/Data` partition (disk3s5 on macOS).

4

What transport protocol does it use?

MCP uses a bidirectional JSON-RPC protocol over WebSocket between the AI client and the server.

5

Does the tool require any parameters?

No, `get_disk_usage` has no required parameters; it returns disk information for the system disk.

评论

其他 分类下的更多 MCP 服务器