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.
No specific installation is needed when using uv
. Simply use uvx
to run the server directly:
uvx mcp-server-pacman
Install the server via pip:
pip install mcp-server-pacman
After installation, run it as a Python module:
python -m mcp_server_pacman
Pull and run the Docker image:
docker pull oborchers/mcp-server-pacman:latest
docker run -i --rm oborchers/mcp-server-pacman
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"]
}
}
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"]
}
}
}
}
You can customize the user-agent by adding the argument --user-agent=YourUserAgent
to the args
list in your configuration.
search_package: Search for packages
index
(string, required): Package index to search ("pypi", "npm", "crates", "terraform")query
(string, required): Package name or search querylimit
(integer, optional): Maximum number of results (default: 5, max: 50)package_info: Get package details
index
(string, required): Package index to queryname
(string, required): Package nameversion
(string, optional): Specific version (default: latest)search_docker_image: Search Docker Hub
query
(string, required): Image name or search querylimit
(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)name
(string, required): Module name (format: namespace/name/provider)search_pypi: Search for Python packages
query
(string, required): Package name or search querypypi_info: Get Python package information
name
(string, required): Package nameversion
(string, optional): Specific versionsearch_npm: Search for JavaScript packages
query
(string, required): Package name or search querynpm_info: Get JavaScript package information
name
(string, required): Package nameversion
(string, optional): Specific versionsearch_crates: Search for Rust packages
query
(string, required): Package name or search querycrates_info: Get Rust package information
name
(string, required): Package nameversion
(string, optional): Specific versionsearch_docker: Search for Docker images
query
(string, required): Image name or search querydocker_info: Get Docker image information
name
(string, required): Image nametag
(string, optional): Specific tagsearch_terraform: Search for Terraform modules
query
(string, required): Module name or search queryterraform_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)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
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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