# Hex.pm MCP

> Hex.pm MCP is an open-source MCP server for developer tools. MCP server for searching, auditing and comparing Elixir packages on hex.pm. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, macOS, Linux, Windows, Self-hosted
- **Repository:** https://github.com/joshrotenberg/hexpm-mcp
- **MCP Registry name:** io.github.joshrotenberg/hexpm-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

Gives AI clients direct access to the Elixir and Erlang package registry at hex.pm and the documentation hosted on hexdocs.pm. Instead of pasting package pages into a chat, an assistant can look up versions, downloads, maintainers, retirement status and dependency trees on demand.

The server exposes 24 tools grouped around three jobs: looking up individual packages, comparing or scoring several of them side by side, and checking a project's mix.exs or mix.lock for stale, retired or vulnerable dependencies via OSV.dev. It also browses HexDocs module listings and searches within a package's documentation, and includes curated discovery through the Elixir Toolbox.

It runs as a hosted endpoint over Streamable HTTP or locally over stdio, and can be installed as a Claude Code and Codex plugin. It is aimed at Elixir developers who want an assistant to vet a dependency before adding it or to plan an upgrade.

## Features

- **Package lookup tools:** Search hex.pm and inspect metadata, versions, releases, dependencies, owners and README content.
- **Side-by-side comparison:** Compare two to five packages on downloads, latest version, license and dependency count.
- **Dependency auditing:** Flag retired versions, staleness, single-maintainer risk and known CVEs across a project's deps.
- **Upgrade checking:** Check mix.exs dependencies for newer versions and call out likely breaking changes.
- **HexDocs browsing:** List module tables of contents, read full module docs and search within a package's documentation.
- **Curated discovery:** Browse Elixir Toolbox groups, categories and trending packages with popularity and health signals.

## Good for

- Vetting an Elixir library for maintenance activity and risk before adding it to a project
- Auditing a mix.exs deps list for retired versions and known vulnerabilities
- Planning dependency upgrades and spotting breaking changes ahead of time
- Looking up HexDocs module references while writing code against a package
- Comparing alternative Elixir libraries on downloads and dependency footprint

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http hexpm-mcp https://hexpm-mcp.fly.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://hexpm-mcp.fly.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "hexpm-mcp": {
      "url": "https://hexpm-mcp.fly.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "hexpm-mcp": {
      "type": "http",
      "url": "https://hexpm-mcp.fly.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "hexpm-mcp": {
      "serverUrl": "https://hexpm-mcp.fly.dev/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://hexpm-mcp.fly.dev/mcp
```

Enter a Name (for example "Hex.pm MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hexpm-mcp": {
      "type": "http",
      "url": "https://hexpm-mcp.fly.dev/mcp"
    }
  }
}
```

## Tools

- `search`: Search packages by name/keywords with sorting and pagination
- `info`: Package metadata, description, links, download stats
- `versions`: Version history with retirement status
- `release`: Release details, publisher, dependencies, build tools
- `features`: Optional dependencies and extra metadata
- `dependencies`: Dependency list for a version
- `downloads`: Download statistics (all-time, recent, weekly, daily)
- `owners`: Package maintainers
- `readme`: README content as markdown
- `docs`: Module listing (table of contents) from hexdocs.pm
- `doc_item`: Full documentation for a specific module
- `search_docs`: Search within a package's documentation
- `compare`: Side-by-side comparison of 2-5 packages
- `health`: Maintenance, popularity, quality, and risk assessment
- `audit`: Dependency risk audit (retired versions, staleness, bus factor, CVEs)
- `alternatives`: Find and compare similar packages
- `dep_tree`: Recursive dependency tree (BFS, max depth 5)
- `audit_mix_deps`: Audit a deps list for staleness, retirement, CVEs, and bus factor
- `upgrade_check`: Check which deps have newer versions, flag breaking changes
- `toolbox_groups`: Browse the curated taxonomy of groups and categories
- `toolbox_group`: List the categories in a single group
- `toolbox_category`: Curated projects in a category (sortable by name or downloads)
- `toolbox_trending`: Trending Elixir packages
- `toolbox_search`: Search packages with popularity and health signals

## FAQ

### How do I connect to the hosted version?

A public instance runs at https://hexpm-mcp.fly.dev/mcp. Add it to your MCP client config using the http type and that URL.

### Can I run Hex.pm MCP locally?

Yes. A standalone binary is available for macOS, Linux and Windows and runs over stdio by default, or over HTTP with the transport flag. It can also be used as an Elixir library.

### Which MCP protocol versions are supported?

The server speaks MCP revisions 2026-07-28, 2025-11-25 and 2025-06-18 over stdio and Streamable HTTP. Older revisions from 0.3.7 and earlier are no longer served.

### Which clients have a plugin install?

Running hexpm_mcp init installs it as a plugin for Claude Code and Codex, including a skill for evaluating and auditing dependencies.

### Is Hex.pm MCP free?

Yes. Hex.pm MCP is open source, so you can use and self-host it for free.

### How do I add Hex.pm MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http hexpm-mcp https://hexpm-mcp.fly.dev/mcp

### What are the best alternatives to Hex.pm MCP?

The closest alternatives to Hex.pm MCP are Zephex, Dependency Health MCP, Package Intel, Freshdeps MCP and Dependency MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Zephex](https://ai-powered.com/mcp/zephex): Zephex is a freemium MCP server for developer tools.
- [Dependency Health MCP](https://ai-powered.com/mcp/dependency-health-mcp): Dependency Health MCP is a free MCP server for health and science.
- [Package Intel](https://ai-powered.com/mcp/package-intel): Package Intel is an open-source MCP server for security.
- [Freshdeps MCP](https://ai-powered.com/mcp/freshdeps-mcp): Freshdeps MCP is a free MCP server for developer tools.
- [Dependency MCP](https://ai-powered.com/mcp/dependency-mcp): Dependency MCP is an open-source MCP server for developer tools.
- [Codesearch](https://ai-powered.com/mcp/codesearch): Codesearch is an open-source MCP server for web search and scraping.
- [Hex SSH](https://ai-powered.com/mcp/hex-ssh): Hex SSH is an open-source MCP server for developer tools.
- [Package Intel MCP](https://ai-powered.com/mcp/package-intel-mcp-2): Package Intel MCP is a free MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/hex-pm-mcp
