# MCP Server for Hex Package versions

**URL:** <https://forum.devtalk.com/t/mcp-server-for-hex-package-versions/188134>\
**Category:** Backend Libraries/Tools\
**Tags:** elixir, ai, code-editors\
**Created:** [19 February 2025 12:56 UTC](https://forum.devtalk.com/t/mcp-server-for-hex-package-versions/188134 "2025-02-19T12:56:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhoelzgen](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dhoelzgen/32/6789_2.png) [@dhoelzgen](https://forum.devtalk.com/u/dhoelzgen)\
**Post date:** [19 February 2025 12:56 UTC](https://forum.devtalk.com/t/mcp-server-for-hex-package-versions/188134/1 "2025-02-19T12:56:53Z")

</div>

I am currently giving Cursor another try to code Elixir apps. Although I am quite happy with how it evolved, I kept getting annoyed by the agent adding outdated packages, which I manually had to set to the latest version from hex.pm.

To solve this, I wrote a tiny MCP server, which allows the editor to retrieve the correct versions before adding packages to the project, and it works quite well:

 ![cursor_hex](https://forum.devtalk.com/uploads/default/original/2X/5/58ed0b284d58949f738de0aeb1be4b9c0de2f995.jpeg)

If you have the same issue and want to give it a try, I deployed it to fly: [https://hex-mcp.9elements.com/](https://hex-mcp.9elements.com/)

_Be sure to activate agent mode; at least for me, Cursor seems to ignore this function when in normal chat or composer mode._
