Hex.pm
Developerhex.pm
Elixir and Erlang package metadata from Hex: releases, requirements, downloads and owners.
The crw MCP on your computer calls Hex.pm directly. Calls cost no credits and the data does not pass through fastCRW. Install it once for Claude Code, Cursor, Codex, Windsurf, Gemini CLI or OpenCode, with your fastCRW API key in place of the placeholder:
Capabilities (8)
hexpm/audit-logsFree, runs locallyReturns the last 100 recorded actions on a package (release.publish, docs.publish, release.revert and owner.add are the ones that actually appear), each with the full package and release metadata as it stood at the time and the client user agent that performed it.
hexpm/dependentsFree, runs locallyReturns a page of up to 100 Hex packages that declare the named package as a dependency, each with its description, licenses, links and download counts.
hexpm/docs-searchFree, runs locallyFull-text searches every page of published HexDocs (22.6 million indexed chunks across all packages) and returns ranked hits with the module or function title, a highlighted snippet, the documentation body, the entity type (module, function, behaviour, extras) and the package-version the hit belongs to.
hexpm/ownersFree, runs locallyReturns every Hex account allowed to publish the package, each with username, full name, public email address, ownership level and a social handles map that is empty in practice for most accounts.
hexpm/packageFree, runs locallyReturns one Hex package: description, licenses, repository links, the owner list, all-time/90-day/weekly/daily download counts, every published version with its publish date, any retirements, the package-level security advisories (GHSA id, CVE aliases, references) and ready-to-paste mix.exs/rebar.config/erlang.mk dependency snippets.
hexpm/releaseFree, runs locallyReturns one published version: its dependency requirements map with version constraints and optional flags, build tools, the required Elixir version, tarball checksum, publishing account, download count, retirement status and any security advisories (GHSA id with CVE aliases and references) affecting it.
hexpm/searchFree, runs locallyReturns a page of up to 100 Hex packages with description, licenses, links, download counts and latest version, filtered by a search term and ordered by the chosen sort.
hexpm/userFree, runs locallyReturns a public Hex account: username, email, social handles, join date and the full list of packages the account owns with their API and web URLs.
Response example
The shape of data from hexpm/audit-logs (Package publish history). A sample, not live data.
Example truncated, full shape in JSON from the API.
[
{
"action": "docs.publish",
"params": {
"package": {
"id": 2,
"meta": {
"description": "Peace of mind from prototype to production",
"extra": null,
"licenses": [
"MIT"
],
"links": {
"Changelog": "https://phoenix.hexdocs.pm/changelog.html",
"GitHub": "https://github.com/phoenixframework/phoenix"
},
"maintainers": null
},
"name": "phoenix"
},
"release": {
"has_docs": false,
"id": 282719,
"meta": {
"app": "phoenix",
"build_tools": [
"mix"
],
"elixir": "~> 1.15"
},
"outer_checksum": "e7355c35889305bc539eb09dae2393abcbaf0f65f6874a3f0dcb5f0ec53737fe",
"package_id": 2,
"retirement": null,
"version": "1.8.16"
}
},
"user_agent": "hex_core/0.18.0 hex/2.5.1 (elixir/1.21.0-dev) (OTP/29) (erts/17.0.4)"
},
{
"action": "release.publish",
"params": {
"package": {
"id": 2,
"meta": {
"description": "Peace of mind from prototype to production",
"extra": null,
"licenses": [
"MIT"
],
"links": {
"Changelog": "https://phoenix.hexdocs.pm/changelog.html",
"GitHub": "https://github.com/phoenixframework/phoenix"
},
"maintainers": null
},
"name": "phoenix"
},
"release": {
"has_docs": false,
"id": 282719,
"meta": {
"app": "phoenix",
"build_tools": [
"mix"
],
"elixir": "~> 1.15"
},
"outer_checksum": "e7355c35889305bc539eb09dae2393abcbaf0f65f6874a3f0dcb5f0ec53737fe",
"package_id": 2,
"retirement": null,
"version": "1.8.16"
}
},
"user_agent": "hex_core/0.18.0 hex/2.5.1 (elixir/1.21.0-dev) (OTP/29) (erts/17.0.4)"
},
{
"action": "docs.publish",
"params": {
"package": {
"id": 2,
"meta": {
"description": "Peace of mind from prototype to production",
"extra": null,
"licenses": [
"MIT"
],
"links": {
"Changelog": "https://phoenix.hexdocs.pm/changelog.html",
"GitHub": "https://github.com/phoenixframework/phoenix"
},
"maintainers": null
},
"name": "phoenix"
},
"release": {
"has_docs": true,
"id": 274513,
"meta": {
"app": "phoenix",
"build_tools": [
"mix"
],
"elixir": "~> 1.15"
},
"outer_checksum": "7b83ed6b3d544f24a29277eab7f051be38b76f390bb511bb6ddb7ec6e8e05b95",
"package_id": 2,
"retirement": null,
"version": "1.8.15"
}
},
"user_agent": "hex_core/0.18.0 hex/2.5.1 (elixir/1.21.0-dev) (OTP/29) (erts/17.0.4)"
},
{
"action": "release.publish",
"params": {
"package": {
"id": 2,
"meta": {
"description": "Peace of mind from prototype to production",
"extra": null,
"licenses": [
"MIT"
],
"links": {
"Changelog": "https://phoenix.hexdocs.pm/changelog.html",
"GitHub": "https://github.com/phoenixframework/phoenix"
},
"maintainers": null
},
"name": "phoenix"
},
"release": {
"has_docs": true,
"id": 274513,
"meta": {
"app": "phoenix",
"build_tools": [
"mix"
],
"elixir": "~> 1.15"
},
"outer_checksum": "7b83ed6b3d544f24a29277eab7f051be38b76f390bb511bb6ddb7ec6e8e05b95",
"package_id": 2,
"retirement": null,
"version": "1.8.15"
}
},
"user_agent": "hex_core/0.18.0 hex/2.5.1 (elixir/1.21.0-dev) (OTP/29) (erts/17.0.4)"Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Package publish history
Use Hex.pm (hexpm) from fastCRW Pergamon, capability "Package publish history" (audit-logs). You want to see what has actually happened to a package recently, including retirements and reverts that the version list alone does not reveal. Example options: name=phoenix, page=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "hexpm" and capability "audit-logs". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Packages that depend on a package
Use Hex.pm (hexpm) from fastCRW Pergamon, capability "Packages that depend on a package" (dependents). You hold a library name and want who depends ON it - use this rather than search (which needs the depends: qualifier typed by hand) or release (which gives the forward dependencies of one version). Example options: package=ecto, page=1, sort=recent_downloads. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "hexpm" and capability "dependents". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
HexDocs documentation search
Use Hex.pm (hexpm) from fastCRW Pergamon, capability "HexDocs documentation search" (docs-search). You need the actual Elixir or Erlang documentation for a function, module or concept, not registry metadata about a package. Example options: q=genserver, filter_by=package:=plug-1.16.1, per_page=20. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "hexpm" and capability "docs-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Package owners
Use Hex.pm (hexpm) from fastCRW Pergamon, capability "Package owners" (owners). You want to know who can publish a given Hex package, or how to contact its maintainers. Example options: name=phoenix. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "hexpm" and capability "owners". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Any use of the API, including use of the API through a third-party product that accesses the Services, is bound by these Terms.
https://hex.pm/policies/termsofserviceAttribution
Display this wherever you show the data. It arrives on every response as provenance.attributionText.
Source: Hex.pm
