Hex.pm MCP logo

Hex.pm MCP

Searches Hex.pm, browses HexDocs, compares packages, and audits Elixir dependencies through MCP.

Install Hex.pm MCP

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Hex.pm MCP, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Hex.pm MCP connects AI clients with hex.pm, hexdocs.pm, and Elixir Toolbox data. It exposes tools for package search, metadata, documentation lookup, comparisons, dependency trees, vulnerability checks, and Mix dependency upgrades. The server supports stdio and Streamable HTTP, including a hosted endpoint for remote clients. Reach for Hex.pm MCP when an agent needs to evaluate, discover, document, or audit Elixir and Erlang packages.

Use cases

  • Search for Elixir packages by keyword
  • Compare candidate packages before selecting a dependency
  • Audit Mix dependencies for vulnerabilities and maintenance risks
  • Browse HexDocs modules and function documentation
  • Check project dependencies for available upgrades

Key features

  • Hex.pm package search and metadata lookup
  • HexDocs module and documentation search
  • Dependency audits with OSV vulnerability checks
  • Package comparison and dependency-tree analysis
  • Elixir Toolbox discovery and trending searches
  • stdio and Streamable HTTP transports

Tools24

What Hex.pm MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

8/8 checks healthy over the last 51d

What it can do

From the 24 tools this server returned when we ran it.

Makes network requests · 3Read-only tools · 24

Observed 2026-10-17 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Tools exposed24Callable tools this server registers over MCP.

How Hex.pm MCP works

What Hex.pm MCP does

Hex.pm MCP gives MCP-compatible AI clients access to package registry, documentation, and discovery data for the Elixir and Erlang ecosystem. It queries hex.pm for package metadata, releases, versions, owners, README content, dependencies, download statistics, and optional release features. It also reads module listings and documentation from hexdocs.pm.

Analysis tools help agents compare two to five packages, locate alternatives, build recursive dependency trees, and assess package health. Dependency audits check for signals such as retired versions, stale packages, known vulnerabilities, and single-maintainer risk. Separate tools inspect mix.exs dependency lists for risks or available upgrades, including possible breaking changes.

Elixir Toolbox tools add curated discovery features, including taxonomy browsing, category results, trending packages, and searches with popularity and health signals. The server also provides package resources, guided analysis prompts, and instructions that suggest which tools to use for common tasks.

How it works

The server communicates over MCP using stdio or Streamable HTTP. A public instance is available at https://hexpm-mcp.fly.dev/mcp, while local installations can be connected through an MCP client configuration. Tool arguments are validated against JSON Schemas, and list responses include cache hints. Responses are cached with ETS and a configurable time-to-live.

MCP revisions 2026-07-28, 2025-11-25, and 2025-06-18 are supported over both transports. Older revisions 2025-03-26 and 2024-11-05 are not supported. With the two older supported revisions, HTTP is stateless and requests after initialization need an MCP-Protocol-Version header.

Setup and configuration

The recommended installation uses a self-contained binary for macOS, Linux, or Windows. It includes the Erlang runtime, so an Elixir toolchain is not required. The installer selects an operating-system and architecture-specific asset, verifies its SHA-256 checksum, and installs to ~/.local/bin by default. The installation directory and release version can be changed through installer flags. Windows has a PowerShell installer.

The project can also be added as an Elixir dependency for use from iex or application code, or built from source with mix deps.get. Run hexpm_mcp --version to verify a binary installation. hexpm_mcp init installs the server as a Claude Code and Codex plugin, including its skill and hook for dependency evaluation, upgrades, and audits.

Tools and capabilities

  • Search packages by name or keywords with sorting and pagination.
  • Inspect package metadata, releases, versions, owners, README files, dependencies, features, and download counts.
  • Browse module indexes, search documentation, and retrieve documentation for specific modules or functions.
  • Compare packages, find alternatives, assess health, and build dependency trees up to a maximum depth of five.
  • Audit package dependencies and mix.exs dependencies for retirement, staleness, vulnerabilities, and maintainer risks.
  • Check dependencies for newer releases and potential breaking changes.
  • Search Elixir Toolbox data, browse its groups and categories, and view trending projects.

Limitations and notes

The server relies on data exposed by hex.pm, hexdocs.pm, Elixir Toolbox, and vulnerability checks through OSV.dev. HTTP behavior depends on the negotiated MCP revision: supported older revisions use stateless requests, do not receive client requests, and reject GET and DELETE on /mcp with status 405. Clients that require MCP revisions from before 2025-06-18 cannot connect.

The package comparison tool accepts two to five packages, and dependency-tree traversal has a maximum depth of five. A package review can request a focus of quality, security, or upgrade when the client supports elicitation; otherwise, the review covers all three areas.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Hex.pm MCP

Hex.pm MCP is an MCP server that connects AI clients to hex.pm, hexdocs.pm, and Elixir Toolbox data. Its main tools search and inspect packages, browse documentation, compare and audit dependencies, check upgrades, build dependency trees, and discover packages through curated Toolbox categories and trends.

Install the self-contained binary with the provided shell installer, or use the PowerShell installer on Windows. It installs to `~/.local/bin` by default and does not require an Elixir toolchain. You can also add the package as an Elixir dependency or build it from source.

Connect through stdio using a local binary, or configure the Streamable HTTP endpoint at `https://hexpm-mcp.fly.dev/mcp`. The server can also be registered automatically for Claude Code and Codex with `hexpm_mcp init`.

Yes. The `audit_mix_deps` tool checks a Mix dependency list for staleness, retired versions, known vulnerabilities, and bus-factor concerns. The `upgrade_check` tool looks for newer versions and flags breaking changes.

Yes. Hex.pm MCP supports Claude Desktop through its stdio transport, and the hosted Streamable HTTP endpoint can be added to an MCP client configuration. Claude Code and Codex also have setup support through `hexpm_mcp init`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHex.pm MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hex-pm-mcp?style=directory)](https://allmcps.com/mcp/hex-pm-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/hex-pm-mcp"><img src="https://allmcps.com/api/badge/hex-pm-mcp?style=directory" alt="Hex.pm MCP on AllMCPs" /></a>