home / mcp / hex mcp server

Hex MCP Server

Provides real-time Hex package version information to MCP clients for accurate Elixir dependency suggestions.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "9elements-hex-mcp": {
      "url": "https://hex-mcp.9elements.com/sse"
    }
  }
}

You run a Hex MCP Server that provides real-time Hex package version information to MCP clients, helping AI tools and IDEs suggest correct dependencies for Elixir projects. This server exposes a standardized MCP endpoint so downstream tools can request up-to-date Hex data on demand.

How to use

Connect your MCP client to the server at the following endpoint to receive live Hex package version data: https://hex-mcp.9elements.com/sse. You can use this endpoint to power real-time suggestions in tools like Cursor when working on Elixir projects.

How to install

Prerequisites: you need Elixir and Erlang installed, along with Phoenix and Mix since this is a Phoenix-based MCP server.

mix setup
mix phx.server
```

If you want to run the server from an interactive session, you can start it inside IEx:

```
iex -S mix phx.server
```

Then open your browser to the local site to verify the server is running.
127.0.0.1	hHex-mcp.localhost
127.0.0.1	gem-mcp.localhost
127.0.0.1	npm-mcp.localhost

Additional notes

For production deployment, follow Phoenix deployment best practices to ensure reliability and scalability. If you are configuring local development environments, the server may be accessed at localhost:4000 during development. The server serves an SSE feed at the URL shown above for MCP clients to subscribe to live Hex data.