Skip to main content
Glama

MCP 我的 Mac

一个轻量级服务器,通过简单的 API 公开 Mac 系统信息,允许像 Claude 这样的 AI 助手访问 Mac 的实时系统信息。此工具主要面向希望在设备上尝试 AI 和深度学习的 Mac 用户。

状态:BETA - 本项目目前处于测试阶段。我们正在积极寻求反馈,以改进功能和用户体验。请分享您的想法和建议!

为什么要使用它?

  • 为 Claude Desktop 或其他 MCP 客户端提供访问 Mac 硬件规格、系统配置和资源使用情况的权限

  • 为软件优化和故障排除提供更有针对性和更准确的帮助

  • 以最小的开销作为安全的本地 API 运行

  • 仅执行安全、经过验证的命令:

    • system_profiler - 收集系统信息

    • conda分析 Python 环境配置

Related MCP server: Software Management MCP Server

安装

方法 1:使用 UV + Git Clone

先决条件

  • Python 3.8 或更高版本

  • 已安装 UV 包管理器

步骤

  1. 克隆仓库: bash git clone git@github.com:zhongmingyuan/mcp-my-mac.git

  2. 为您的 AI 客户端配置:

    **[Claude Desktop]**将以下内容添加到您的 MCP 服务器配置文件:

    "mcpServers": {
        "mcp-my-mac": {
            "command": "uv",
            "args": [
                "--directory",
                "/YOUR_PATH_TO/mcp-my-mac",
                "run",
                "-m",
                "mcp_server_my_mac"
            ]
        }
    }

    注意:将/YOUR_PATH_TO替换为您克隆存储库的实际路径。

    **[光标]**通过在 UI 中选择“命令”来添加工具:

    uv run --directory /YOUR_PATH_TO/mcp-my-mac mcp_server_my_mac

用法

安装后,Claude Desktop 在您的 Mac 上运行时将自动连接到此 API,从而允许其在需要时访问系统信息以回答您的问题或提供帮助。

Available Tools

3 tools
mcp_call_conda_infoA

Get comprehensive information about the Conda installation on this system.

If env_name is provided, it will return the information for the specified
environment as well.

Returns detailed information including:
- Conda version and configuration
- Python version and virtual packages
- Base environment location
- Channel URLs and package cache locations
- Platform and system details
- Complete list of all Conda environments with their paths
- Complete list of all packages in the specified environment and their versions

This is useful for diagnosing Conda-related issues or understanding
the Python environment configuration on this system.

Inputs: env_name. Returns: result

mcp_call_gpu_availableA
Check if GPU is available in torch for a specific conda environment.
Input: torch or tensorflow
if framework is not provided, it will default to torch.

Returns a detailed dictionary with the following information:
- "torch_version": PyTorch version string
- "python_version": Python version string
- "platform": Platform information string
- "processor": Processor type
- "architecture": CPU architecture
- "mps_available": True if MPS (Metal Performance Shaders) is available
- "mps_built": True if PyTorch was built with MPS support
- "mps_functional": True if MPS is functional, False otherwise
- "benchmarks": A list of benchmark results for different matrix sizes, each containing:
  - "size": Matrix size used for benchmark
  - "cpu_time": Time taken on CPU (seconds)
  - "mps_time": Time taken on MPS (seconds)
  - "speedup": Ratio of CPU time to MPS time (higher means MPS is faster)

This helps determine if GPU acceleration via Apple's Metal is properly configured
and functioning, with performance benchmarks for comparison.

Inputs: env_name (required), framework.

mcp_call_mac_system_profilerA
Call the system_profiler with the given datatype. Allow LLM to deepdive into the
system information.
This function is used to get the system information to help user to understand the
system and potentially debug.

Allowed datatypes:
    - SPAirPortDataType - Airport/WiFi information
    - SPApplicationsDataType - Application information
    - SPAudioDataType - Audio device information
    - SPBluetoothDataType - Bluetooth information
    - SPCameraDataType - Camera information
    - SPDiagnosticsDataType - Diagnostic information
    - SPDisplaysDataType - Display and graphics information
    - SPFirewallDataType - Firewall settings
    - SPHardwareDataType - Hardware specifications
    - SPLocationDataType - Location services information
    - SPMemoryDataType - Memory information
    - SPNetworkDataType - Network settings and interfaces
    - SPNVMeDataType - NVMe storage details
    - SPPCIDataType - PCI devices information
    - SPPowerDataType - Battery and power information
    - SPSoftwareDataType - Software and OS information
    - SPStorageDataType - Storage devices and volumes
    - SPThunderboltDataType - Thunderbolt ports and connections
    - SPUSBDataType - USB devices and connections

Inputs: datatype (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: conda_info focuses on Conda environments, gpu_available checks GPU availability and performance, and mac_system_profiler retrieves system information. The descriptions clearly differentiate their domains, making misselection unlikely.

    Naming Consistency5/5

    All tools follow a consistent 'mcp_call_' prefix with descriptive snake_case suffixes (conda_info, gpu_available, mac_system_profiler). This uniform pattern makes the tool set predictable and easy to understand.

    Tool Count3/5

    With only 3 tools, the server feels thin for a 'my-mac' system management scope. While the tools cover Conda, GPU, and system profiling, there are likely other Mac/system-related operations missing, making the set feel incomplete rather than well-scoped.

    Completeness2/5

    For a Mac system management server, there are significant gaps: no tools for file operations, process management, network utilities, or basic system commands. The three tools provide deep but narrow coverage, leaving many common system tasks unaddressed and likely causing agent failures for broader requests.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers