Package Manager MCP server

Integrates with package repositories including PyPI, npm, crates.io, Docker Hub, and Terraform Registry to search and retrieve detailed information about packages, versions, dependencies, and Docker images.
Back to servers
Setup instructions
Provider
Oliver Borchers
Release date
May 08, 2025
Language
Python
Stats
5 stars

Pacman MCP Server is a Model Context Protocol server that enables LLMs to search and retrieve information from package repositories like PyPI, npm, crates.io, Docker Hub, and Terraform Registry. It provides tools for querying package information and searching across multiple package indices.

Installation Options

Using uv (Recommended)

No specific installation is needed when using uv. Simply use uvx to run the server directly:

uvx mcp-server-pacman

Using PIP

Install the server via pip:

pip install mcp-server-pacman

After installation, run it as a Python module:

python -m mcp_server_pacman

Using Docker

Pull and run the Docker image:

docker pull oborchers/mcp-server-pacman:latest
docker run -i --rm oborchers/mcp-server-pacman

Configuration

For Claude.app

Add the server to your Claude settings:

For uvx:

"mcpServers": {
  "pacman": {
    "command": "uvx",
    "args": ["mcp-server-pacman"]
  }
}

For Docker:

"mcpServers": {
  "pacman": {
    "command": "docker",
    "args": ["run", "-i", "--rm", "oborchers/mcp-server-pacman:latest"]
  }
}

For pip installation:

"mcpServers": {
  "pacman": {
    "command": "python",
    "args": ["-m", "mcp-server-pacman"]
  }
}

For VS Code

Add to your User Settings (JSON) file in VS Code or to .vscode/mcp.json in your workspace:

For uvx:

{
  "mcp": {
    "servers": {
      "pacman": {
        "command": "uvx",
        "args": ["mcp-server-pacman"]
      }
    }
  }
}

For Docker:

{
  "mcp": {
    "servers": {
      "pacman": {
        "command": "docker",
        "args": ["run", "-i", "--rm", "oborchers/mcp-server-pacman:latest"]
      }
    }
  }
}

Custom User-Agent

You can customize the user-agent by adding the argument --user-agent=YourUserAgent to the args list in your configuration.

Available Tools

Package Search and Information

  • search_package: Search for packages

    • index (string, required): Package index to search ("pypi", "npm", "crates", "terraform")
    • query (string, required): Package name or search query
    • limit (integer, optional): Maximum number of results (default: 5, max: 50)
  • package_info: Get package details

    • index (string, required): Package index to query
    • name (string, required): Package name
    • version (string, optional): Specific version (default: latest)

Docker Images

  • search_docker_image: Search Docker Hub

    • query (string, required): Image name or search query
    • limit (integer, optional): Maximum results (default: 5, max: 50)
  • docker_image_info: Get Docker image details

    • name (string, required): Image name (e.g., user/repo)
    • tag (string, optional): Specific tag (default: latest)

Terraform Modules

  • terraform_module_latest_version: Get latest version of a Terraform module
    • name (string, required): Module name (format: namespace/name/provider)

Convenience Prompts

PyPI (Python Packages)

  • search_pypi: Search for Python packages

    • query (string, required): Package name or search query
  • pypi_info: Get Python package information

    • name (string, required): Package name
    • version (string, optional): Specific version

npm (JavaScript Packages)

  • search_npm: Search for JavaScript packages

    • query (string, required): Package name or search query
  • npm_info: Get JavaScript package information

    • name (string, required): Package name
    • version (string, optional): Specific version

crates.io (Rust Packages)

  • search_crates: Search for Rust packages

    • query (string, required): Package name or search query
  • crates_info: Get Rust package information

    • name (string, required): Package name
    • version (string, optional): Specific version

Docker Hub

  • search_docker: Search for Docker images

    • query (string, required): Image name or search query
  • docker_info: Get Docker image information

    • name (string, required): Image name
    • tag (string, optional): Specific tag

Terraform Registry

  • search_terraform: Search for Terraform modules

    • query (string, required): Module name or search query
  • terraform_info: Get Terraform module information

    • name (string, required): Module name (format: namespace/name/provider)
  • terraform_latest_version: Get latest Terraform module version

    • name (string, required): Module name (format: namespace/name/provider)

Debugging

Use the MCP inspector to debug the server:

npx @modelcontextprotocol/inspector uvx mcp-server-pacman

Or for development:

cd path/to/pacman
npx @modelcontextprotocol/inspector uv run mcp-server-pacman

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "pacman" '{"command":"uvx","args":["mcp-server-pacman"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "pacman": {
            "command": "uvx",
            "args": [
                "mcp-server-pacman"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "pacman": {
            "command": "uvx",
            "args": [
                "mcp-server-pacman"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later