MCP.so
ログイン

Hackage Documentation MCP

@apenugon

Hackage Documentation MCP について

An MCP server to give Claude easy access to pulling docs

基本情報

カテゴリ

メモリとナレッジ

ライセンス

MIT

ランタイム

python

トランスポート

stdio

公開者

apenugon

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

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.

コメント

「メモリとナレッジ」の他のコンテンツ