MCP server for searching Hex package documentation
Hexdocs mcp mcp server connects Hexdocs MCP to AI assistants that speak the Model Context Protocol. MCP server for searching Hex package documentation.
HexDocs MCP is a project that provides semantic search capabilities for Hex package documentation, designed specifically for AI applications. It consists of two main components:
Once connected, the assistant can call these 2 tools directly:
Smithery — Alternatively, you can use Smithery to automatically add the MCP server to your client configRequirements — The Requirements tool exposed by this serverThe server is distributed via npm as @smithery/cli, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
The server reads 2 environment variables: HEXDOCS_MCP_PATH, HEXDOCS_MCP_MIX_PROJECT_PATHS. Keep credentials in your client's env block or a secrets manager rather than committing them.
ollama pull mxbai-embed-large to download the recommended embedding model - Ensure Ollama is running before using the embedding features - Elixir 1.16+ and Erlang/OTP 26+ - Installed automatically in CI environments - Required locally for development - Mix - The Elixir build tool (comes with Elixir installation) - Node.jsKnowledge and memory servers address the most frustrating trait of language models — walking into every conversation with no recollection of the last one. Hexdocs MCP sits in that group, and the shape of its toolset — Smithery, Requirements — tells you what it is really for. Worth comparing against the other knowledge memory servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| Smithery | Alternatively, you can use [Smithery](https://smithery.ai/server/@bradleygolden/hexdocs-mcp) to automatically add the MCP server to your client config. |
| Requirements | The Requirements tool exposed by this server. |
{
"mcpServers": {
"hexdocs-mcp": {
"command": "npx",
"args": [
"-y",
"hexdocs-mcp@0.5.0"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
ollama pull mxbai-embed-large to download the recommended embedding model - Ensure Ollama is running before using the embedding features - Elixir 1.16+ and Erlang/OTP 26+ - Installed automatically in CI environments - Required locally for development - Mix - The Elixir build tool (comes with Elixir installation) - Node.js| Variable | Description | Required |
|---|---|---|
| HEXDOCS_MCP_PATH | Filesystem location the server is allowed to use. | Optional |
| HEXDOCS_MCP_MIX_PROJECT_PATHS | Filesystem location the server is allowed to use. | Optional |
A knowledge graph your assistant keeps between sessions — entities, relations and observations that persist.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
A structured scratchpad for hard problems — stepwise reasoning with revisions, branches and visible logic.
Symbol-level code navigation, refactoring and memory for coding agents — the IDE brain your assistant has been missing.
Chat with your second brain — search, read and write vault notes through the Local REST API.