Overview
What is HexDocs MCP Server?
The HexDocs MCP Server is a TypeScript server that implements the Model Context Protocol (MCP) to provide semantic search over Hex package documentation. It integrates with embeddings generated by the hexdocs_mcp Elixir package, making Hex documentation searchable in AI tools.
How to use HexDocs MCP Server?
Install with npx and set the database path using the HEXDOCS_MCP_PATH environment variable. For Cursor, add a configuration entry to mcp.json. First generate the SQLite database by running mix hex.docs.mcp fetch PACKAGE on the desired packages.
Key features of HexDocs MCP Server
- MCP-compatible server for searching Hex docs
- Integrates with hexdocs_mcp embeddings
- Built on Model Context Protocol standard
- Easy installation via npx
- Customizable database path via environment variable
- Requires Node.js 18 or later
Use cases of HexDocs MCP Server
- Search Hex package documentation from AI tools like Cursor
- Let an AI agent generate documentation databases on demand