dhoelzgen

dhoelzgen

I created a MCP server for Hex package versions

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:

If you have the same issue and want to give it a try, I deployed it to fly: 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.

First Post!

cpursley

cpursley

This is great. Has me thinking about building an MCP that grabs the full Ecto schema and Elixir types so that cursor is more aware of the type system.

Most Liked

dhoelzgen

dhoelzgen

I did not try, but during the discussion of my post on social media, zoedsoupe mentioned their project, which seems to be an Elixir library for building both server and client MCP apps, might be worth a look:

https://github.com/cloudwalk/hermes-mcp

Just to be clear, this is not the package I have built my server on, I used:

josefrichter

josefrichter

I am experimenting with local MCP server fed with PDF books I own, like Sasa Juric’s Elixir in Action and others. The idea is plug them into editor and use them in a sort of RAG fashion. I’m mostly using Windsurf with Sonnet 3.7 these days.

Anyone else and more experienced running similar setup? I’m still in trial & error stage, so looking for inspiration and trying to avoid reinventing the wheel.

josefrichter

josefrichter

For now, I ended up using R2R locally in docker GitHub - SciPhi-AI/R2R: SoTA production-ready AI retrieval system. Agentic Retrieval-Augmented Generation (RAG) with a RESTful API. · GitHub

I had to write a simple python bridge (LLMs helped with that). I filled it with 10 important elixir books and I regularly use that during coding to consult various topics. It seems to work fairly nicely and I find it pretty helpful.

Next step would probably be ingesting some important blogs’ content. So far I am using web search & fetch mcps to access these resources.

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2976 91332 914
New
f0rest8
Hi everyone :waving_hand: Posting here to showcase and announce that Metamorphic is now officially live on a public-facing domain at htt...
New
andrielfn
Hey there :waving_hand: I want to introduce Fluxon UI, a modern UI component library for Phoenix LiveView that I have been working on fo...
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
webofbits
Squid Mesh is an open source workflow automation runtime for Elixir applications. It is aimed at Phoenix and OTP apps that want to defin...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New

We're in Beta

About us Mission Statement