# `HexpmMcp.HexDocs`
[🔗](https://github.com/joshrotenberg/hexpm-mcp/blob/main/lib/hexpm_mcp/hexdocs.ex#L1)

Client for fetching and parsing hexdocs.pm content.

HexDocs has no structured API. This module:
1. Fetches the search-data JSON (used by the docs JS search)
2. Falls back to scraping the sidebar HTML for module listings
3. Converts individual module pages from HTML to markdown

# `get_doc_item`

Get documentation for a specific module or function.

# `get_modules`

Get the module listing for a package (table of contents).

# `get_readme`

Get the README content for a package, converted to markdown.

# `html_to_markdown`

Convert HTML content to a simplified markdown representation.

Targets the `#content` area of hexdocs pages and strips navigation,
search, and footer chrome.

# `search_docs`

Search within a package's documentation by name.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
