MCP.so
Sign In

Hackage Documentation MCP

@apenugon

About Hackage Documentation MCP

An MCP server to give Claude easy access to pulling docs

Basic information

Category

Memory & Knowledge

License

MIT

Runtime

python

Transports

stdio

Publisher

apenugon

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "haskell-hackage-mcp": {
      "command": "python",
      "args": [
        "main.py"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Hackage Documentation MCP?

Hackage Documentation MCP is a Machine-Controlled Program (MCP) server that provides AI assistants with real‑time access to Haskell documentation from Hackage. It enables AI models to retrieve precise, up‑to‑date documentation for specific Haskell modules, improving the AI’s ability to assist with Haskell programming despite limited training data in this domain.

How to use Hackage Documentation MCP?

Install Python 3.7+, then pip install httpx beautifulsoup4 fastmcp. Run python main.py to start the server with stdio transport. Use any MCP‑compatible AI assistant to call the tool get_docs(package, version, module) with a Hackage package name, exact version string, and module name (e.g., get_docs("lens", "5.0.0", "Control.Lens")).

Key features of Hackage Documentation MCP

  • Retrieve documentation for specific modules from any Hackage package
  • Specify exact package versions to ensure accuracy
  • Clean, text‑based output easily consumable by AI assistants
  • Requires only an internet connection and Python 3.7+

Use cases of Hackage Documentation MCP

  • Learning Haskell libraries: get detailed module info while working with an AI
  • Understanding type signatures: access accurate type information for Haskell functions
  • Exploring module hierarchies: see how modules are organized within packages
  • Verifying AI‑generated code: compare AI suggestions against official Hackage docs

FAQ from Hackage Documentation MCP

What dependencies or runtime does Hackage Documentation MCP require?

Python 3.7+ and the packages httpx, beautifulsoup4, and fastmcp.

How do I invoke the documentation‑retrieval tool?

Call get_docs(package, version, module) – for example, get_docs("vector-algorithms", "0.8.0", "Data.Vector.Algorithms").

Does Hackage Documentation MCP require an internet connection?

Yes, it requires an internet connection to access documentation from Hackage.

What are the limitations of Hackage Documentation MCP?

It only provides documentation content, not implementation code. Documentation quality varies between Haskell packages, and an internet connection is required.

Can I use any package on Hackage with this tool?

Yes, any package name, version, and module that exist on Hackage can be queried. An error message is returned if retrieval fails.

Comments

More Memory & Knowledge MCP servers