hexdocs-mcp

hexdocs-mcp

40

HexDocs MCP is a project designed to enhance AI applications by providing semantic search capabilities for Hex package documentation. It uses an Elixir binary for generating embeddings and a TypeScript server for interactions via the Model Context Protocol. This project supports AI tooling with efficient documentation search and retrieval.

HexDocs MCP

HexDocs MCP is a project that provides semantic search capabilities for Hex package documentation, specifically designed for AI applications. It comprises two main components: an Elixir binary for processing and generating embeddings from Hex package documentation, and a TypeScript server implementing the Model Context Protocol (MCP) for fetching and searching documentation.

Installation

  • Configure the MCP client with an MCP server using JSON configuration.
  • It's available both as an MCP server and an Elixir package.
  • Requirements include Ollama, Elixir, Erlang/OTP, Mix, and Node.js.

Usage

  • The MCP server can be used by any MCP-compatible AI tooling.
  • Provides commands for fetching documentation and generating embeddings using Elixir.

Configuration

  • Environment variables are available for custom configurations regarding data paths and embedding models.

Development

  • Development tasks are managed with Mise, which ensures consistent tool versions and task automation.
  • Guidelines for version management, code style, and release processes are provided.

Contributing

  • Contributions are welcome, with a preference for discussing major changes via issues first.
  • Licensed under MIT.