MCP Hub
Back to servers

Swift Package Manager Dependencies

An MCP server that enables AI agents to explore and search Swift Package Manager (SPM) dependencies, including those hidden in DerivedData. It provides tools for listing project dependencies, searching source code with ripgrep, and reading specific files.

Stars
3
Tools
4
Updated
Dec 13, 2025
Validated
Jan 11, 2026

@getcmd/spm-dependencies-mcp

An MCP server for searching and exploring SPM dependencies in your Xcode and SPM projects.

The code of your SPM dependencies is located in hidden folders, often in other directories (DerivedData etc). Coding agents cannot easily access it, were they to need it. This MCP solves this gap.

Configuration

{
  "mcpServers": {
    "spm-dependencies": {
      "command": "npx",
      "args": ["-y", "@getcmd/spm-dependencies-mcp"]
    }
  }
}

Tools

  • list_dependencies lists the dependencies used by a project/package, which version they resolve to, and where to find them on disk
  • search search over dependencies with ripgrep. Arbitrary parameters can be forwarded to ripgrep.
  • list-files list within dependencies
  • read search a file within the dependencies with sed. Arbitrary parameters can be forwarded to sed.

CLI Usage

The tools made available through the MCP server can be directly access in a CLI:

$ npx -y @getcmd/spm-dependencies-mcp --help

Search Swift Package Manager dependencies

Usage: spm-dependencies-mcp [COMMAND]

Commands:
  list-dependencies  List all dependencies for a Swift project
  search             Search through dependencies using ripgrep
  list-files         List files in a dependency
  read               Read a file from a dependency using sed
  help               Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Reviews

No reviews yet

Sign in to write a review