About Hexdocs
Hexdocs is an MCP server published by bradleygolden in the RAG category: mCP server for searching Hex package documentation. Conduid read 5 tools from its source: check_embeddings, fetch_docs, fulltext_search, hex_search and semantic_search. It is published to npm as hexdocs-mcp and starts with npx.
The repository has 69 stars and 6 forks, and its last commit was on 18 Jun 2025. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include hexdocs, embeddings, search, vector, documentation and semantic-search.
Install
claude mcp add hexdocs -- npx -y hexdocs-mcp@0.5.0npx -y hexdocs-mcp@0.5.0git clone https://github.com/bradleygolden/hexdocs-mcpTools (5)
check_embeddingsChecks if embeddings exist for a specific Hex package and version. This is useful before attempting semantic search to ensure the package has been processed. Returns information about whether embeddings exist and how many.| Parameter | Type | Description |
|---|---|---|
| packageName * | string | The Hex package name to check (required) |
| version | string | Optional package version, defaults to 'latest' |
fetch_docsDownloads and processes the documentation for a specified Elixir Hex package and version, converting it to markdown, splitting it into semantic chunks, and generating vector embeddings. This enables the unique semantic_search capability that complements TideWave. Always useful regardless of TideWave availability. Must be run before searching a package for the first time or to update embeddings.| Parameter | Type | Description |
|---|---|---|
| force | boolean | Force re-fetch even if embeddings already exist |
| packageName * | string | The Hex package name to fetch (required) |
| version | string | Optional package version, defaults to latest |
fulltext_searchPerforms full-text search on HexDocs documentation using Typesense search engine. This searches the actual documentation content across all packages on HexDocs. Note: If TideWave is available in your current Phoenix project, prefer using TideWave's documentation search for better project context. Use this tool when TideWave is not available or for searching packages not in your current project. Query Syntax: - Basic search: "Phoenix.LiveView" (searches for both terms) - Exact phrase: "\"handle event\"" (use escaped quotes) - AND operator: "Phoenix AND LiveView" (both terms required) - OR operator: "Phoenix OR Plug" (either term) - Exclude terms: "Phoenix -test" (minus sign excludes) - Module/function: "Enum.map" or "GenServer.handle_call" Best Practices: - Use exact module.function names for precise results - Combine with packageName filter for focused search - Use quotes for multi-word exact phrases - For callbacks use patterns like "@callback handle_" - For types use patterns like "@type t()" Examples: - Find LiveView event handlers: query: "handle_event", packageName: "phoenix_live_view" - Find Ecto changesets: query: "changeset", packageName: "ecto" - Find specific function: query: "\"Enum.map/2\"" - Find type definitions: query: "@type", packageName: "phoenix"| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results to return (default: 10, max: 100) |
| packageName | string | Optional package name to limit search to (e.g., 'phoenix', 'ecto') |
| query * | string | The search query using Typesense syntax (see tool description for examples) |
| version | string | Optional specific version (only used with packageName, e.g., '1.7.0') |
hex_searchSearches for Elixir packages on Hex.pm by name or description. Can search across all packages, within a specific package's versions, or get info for a specific package version. Note: If TideWave is available in your current Phoenix project, prefer using TideWave's hex search for better project integration. Use this tool when TideWave is not available or for general package discovery outside of a Phoenix project.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results to return (default: 10) |
| packageName | string | Optional package name to search within its versions |
| query * | string | The search query to find packages (searches in name and description) |
| sort | string | Sort results by: downloads (default), recent, or name |
| version | string | Optional specific version (only used with packageName) |
semantic_searchSearches the documentation of one or more Elixir Hex packages using semantic vector embeddings. Given a natural language query, returns the most relevant documentation snippets. This is unique to hexdocs-mcp and complements TideWave by providing embeddings-based search capabilities that TideWave does not offer. Always available regardless of TideWave status. Requires that embeddings have been generated for the target package(s) using the fetch_docs tool.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of results to return (default: 5, increase for more comprehensive results) |
| packageName | string | Optional Hex package name to search within (must be a package that has been fetched) |
| query * | string | The semantic search query to find relevant documentation (can be natural language, not just keywords) |
| version | string | Optional specific package version to search within, defaults to latest fetched version |
Security checks
- ✓README presentThe repository's README runs to about 1.4K words.
5 checks have not been run yet.
README
The repository's README runs to about 1.4K words. The original in the repository is authoritative.
Read full README