パッケージドキュメント MCP サーバー
複数のプログラミング言語と言語サーバー プロトコル (LSP) 機能にわたるパッケージ ドキュメントへの効率的なアクセスを LLM に提供する MCP (モデル コンテキスト プロトコル) サーバー。
特徴
- 多言語サポート:
go doc
経由のGoパッケージ- 組み込みの
help()
経由の Python ライブラリ - レジストリドキュメント経由の NPM パッケージ (プライベートレジストリを含む)
- crates.io と docs.rs 経由の Rust クレート
- スマートドキュメント解析:
- 説明、使用法、例を含む構造化された出力
- コンテキストの過負荷を避けるための焦点を絞った情報
- 特定のシンボル/関数の検索のサポート
- ドキュメント全体にわたるあいまい検索と正確な検索機能
- 高度な検索機能:
- パッケージドキュメント内を検索
- 柔軟なクエリのためのあいまい一致
- 関連性スコアリングによるコンテキスト認識結果
- 検索結果からのシンボル抽出
- 言語サーバープロトコル (LSP) サポート:
- コードシンボルのホバー情報
- コード補完
- 診断(エラーと警告)
- 現在TypeScript/JavaScriptをサポート
- 他の言語にも拡張可能
- パフォーマンスの最適化:
- 組み込みキャッシュ
- 効率的な解析
- 最小限のメモリフットプリント
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop のパッケージドキュメントを自動的にインストールするには:
使用法
MCPサーバーとして
- MCP 設定構成に追加します:
- LSP 機能には、共通言語サーバーのデフォルト構成が含まれます。
- TypeScript/JavaScript:
typescript-language-server --stdio
- HTML:
vscode-html-language-server --stdio
- CSS:
vscode-css-language-server --stdio
- JSON:
vscode-json-language-server --stdio
必要に応じてこれらのデフォルトを上書きできます。
- サーバーは次のツールを提供します。
go_doc の参照 / go_package の説明
Go パッケージのドキュメントを取得します
Pythonドキュメントの検索 / Pythonパッケージの説明
Python パッケージのドキュメントを取得します
Rustパッケージの説明
crates.io と docs.rs から Rust クレートドキュメントを取得します。
検索パッケージドキュメント
パッケージドキュメント内を検索
npmドキュメントの検索 / npmパッケージの説明
NPMパッケージのドキュメントをパブリックレジストリとプライベートレジストリの両方から取得します。.npmrcの設定に基づいて適切なレジストリを自動的に使用します。
ツールは ~/.npmrc ファイルを読み取り、各パッケージの正しいレジストリを決定します。
- スコープ指定されたレジストリ構成を使用します (例: @mycompany:registry=...)
- プライベート レジストリ (GitHub Packages、GitLab、Nexus、Artifactory など) をサポートします
- カスタムレジストリが設定されていない場合は、デフォルトのnpmレジストリにフォールバックします。
.npmrc 構成の例:
言語サーバープロトコル(LSP)ツール
LSP サポートを有効にすると、次の追加ツールが使用できるようになります。
ゲットホバー
ドキュメント内の位置のホバー情報を取得する
get_completeions
文書内の位置の補完候補を取得する
診断情報を取得する
ドキュメントの診断情報(エラー、警告)を取得する
LLMでの使用例
ドキュメントの検索
要件
- Node.js >= 20
- Go (Go パッケージのドキュメント用)
- Python 3 (Python パッケージのドキュメント用)
- インターネット接続(NPM パッケージのドキュメントと Rust クレートドキュメント用)
- 言語サーバー(LSP機能用):
- TypeScript/JavaScript:
npm install -g typescript-language-server typescript
- HTML/CSS/JSON:
npm install -g vscode-langservers-extracted
- TypeScript/JavaScript:
発達
貢献
- リポジトリをフォークする
- 機能ブランチを作成します(
git checkout -b feature/amazing-feature
) - 変更をコミットします (
git commit -m 'Add some amazing feature'
) - ブランチにプッシュする (
git push origin feature/amazing-feature
) - プルリクエストを開く
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
LLM が Go、Python、NPM のパッケージの構造化ドキュメントに効率的にアクセスして取得できるようにし、多言語サポートとパフォーマンスの最適化によってソフトウェア開発を強化します。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates searching and accessing programming resources across platforms like Stack Overflow, MDN, GitHub, npm, and PyPI, aiding LLMs in finding code examples and documentation.Last updated -625JavaScriptAGPL 3.0
- AsecurityAlicenseAqualityFetches and extracts comprehensive package documentation from multiple programming language ecosystems (JavaScript, Python, Java, etc.) for LLMs like Claude without requiring API keys.Last updated -4510JavaScriptMIT License
- AsecurityFlicenseAqualityAn MCP server that enables LLMs to understand and analyze code structure through function call graphs, allowing AI assistants to explore relationships between functions and analyze dependencies in Python repositories.Last updated -67Python
- -securityFlicense-qualityA customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.Last updated -Python
Appeared in Searches
- Documentation for a software or library
- Information about Rust programming language or rust corrosion
- How to find technical documentation for third-party libraries or services
- Tool to automate generating project documentation based on user input
- A server/tool for RAG-based documentation scraping and retrieval with SSE support