MCP server for Hackage

I’ve built an MCP server that lets AI agents use Hackage. The MCP server is entirely written in Haskell.

It lets LLMs:

  1. perform Hoogle searches.

  2. List package modules

  3. Scrape module documentation in LLM-friendly Markdown.

Why this tool?

I’ve often seen premium coding agents using outdated functions or not being aware of the latest packages. This MCP lets LLMs access the latest Haskell documentation.

Feel free to contribute or provide feedback.

Check out the GitHub link: https://github.com/tusharad/hackage-doc-mcp

2 Likes

I tried to follow the link, but I get to a 404 page.

Won’t this clobber hackage?

Edit: this is probably good long term but also feels tone deaf right now. Idk. Does it cache things at all?

7 Likes

My bad. Repo was private

I’ll add caching soon

You shouldn’t have been scraping Hackage in the first place. It is already struggling to fend off all kinds of this traffic.

Teach it to build local hoogle and haddock, then use that instead.

15 Likes