ubuntu-docs-mcp
Enables querying the Launchpad API for Ubuntu package information, including package search and available versions by pocket.
Provides tools for searching and retrieving Ubuntu Server documentation and Ubuntu security information, including CVEs and USNs, so agents can answer Ubuntu administration, configuration, and vulnerability questions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ubuntu-docs-mcp
Ubuntu の公式ドキュメント・man ページ・セキュリティ情報・パッケージ情報を、MCP (stdio) ツールとして提供するサーバーです。 Red Hat の「MCP Server for Red Hat Documentation」に相当するものを Ubuntu 向けに自作したものです (非公式)。
提供ツール
ツール | 情報源 | 方式 | 用途 |
| Ubuntu Server documentation | 事前生成の全文索引 (BM25)。索引が無ければ searchindex.js を実行時検索 | 手順・解説の検索 |
| 同上 ( | 実行時取得 (失敗時は索引内テキスト) | ページ本文 / 見出し ( |
| manpages.ubuntu.com | 実行時取得 | コマンド・設定ファイルの man を検索 |
| 同上 ( | 実行時取得 | 本文。 |
| ubuntu.com/security (JSON) | 実行時取得 | CVE の優先度・リリース別修正状況 |
| 同上 | 実行時取得 | USN・修正パッケージ版・CVE からの逆引き |
| Launchpad API | 実行時取得 | pocket 別の提供バージョン |
変化の遅い docs は索引化、変化の速い CVE・USN・パッケージ・man はライブ API というハイブリッド構成です。 すべて公開情報で、API キーや認証は不要です。
Related MCP server: proxmox-docs-mcp
対応リリース
現在は 24.04 LTS (noble) のみです。release 引数に 24.04 または noble を指定できます (省略時は 24.04)。
未対応のリリースを指定すると、対応リリースを示すエラーを返します。
26.04 LTS を追加するには
src/config.ts の SUPPORTED_RELEASES に 1 行追加して再ビルドするだけです。
"26.04": { version: "26.04", codename: "resolute", label: "Ubuntu 26.04 LTS (Resolute)" },manpages.ubuntu.com 側には resolute が既にあります。CVE/USN・Launchpad 側の対応状況は、追加後に npm run test:smoke 相当の確認をしてください。
注意: Server documentation (
docs_*) はリリース別に公開されておらず、常に最新版のみです。リリース指定の対象外です。
セットアップ
前提
Node.js 20 以上 (動作確認: Node.js 22 / npm 10)
ネットワーク接続 (docs 索引の生成と、CVE・USN・パッケージ・man のライブ取得に使用)
手順
# 1. 取得
git clone https://github.com/duelist2021jp/ubuntu-docs-mcp.git
cd ubuntu-docs-mcp
# 2. 依存パッケージのインストール
npm install
# 3. TypeScript のビルド (build/ に出力)
npm run build
# 4. docs の全文索引を生成 (data/docs-index.json, 約 2.4MB, 約 1 分)
npm run build-index
# 5. (任意) 実際に MCP プロトコルで全ツールを検証 (ネットワーク接続が必要)
npm run test:smokeコマンド | 内容 |
| 依存パッケージ ( |
|
|
| Ubuntu Server documentation を取得し、検索用の全文索引 |
| サーバーを子プロセスで起動し、全ツールを実プロトコルで呼び出して検証 |
| サーバーを単体で起動 (stdio)。通常は MCP クライアントが起動するので手動実行は不要 |
索引ファイルは Git に含まれません。
data/docs-index.jsonは.gitignore対象です。取得後にnpm run build-indexを実行して各自で生成してください。 索引が無くてもサーバーは起動し、docs_searchは実行時検索に切り替わります (精度と速度は下がります)。
索引の更新
ドキュメントは更新されるため、npm run build-index を定期的 (週 1 回程度) に実行してください。実行後は MCP クライアント側でサーバーを再接続 (再起動) すると新しい索引が読み込まれます。
mcp.json への登録
MCP クライアントの設定ファイルに、ビルド済みの build/index.js を node で起動するよう登録します。
以下は IBM Bob の例です。
設定ファイル | 適用範囲 |
| そのプロジェクトのみ。チームで共有しやすい |
| すべてのワークスペース |
同名のサーバーが両方にある場合は、プロジェクト側が優先されます。Bob の設定画面の MCP タブにある「Edit Project MCP」「Edit Global MCP」からも開けます。
本リポジトリをワークスペースとして開いている場合 (.bob/mcp.json)
{
"mcpServers": {
"ubuntu-docs": {
"command": "node",
"args": ["${workspaceFolder}/build/index.js"],
"timeout": 60000
}
}
}親フォルダ内にリポジトリを置いている場合 (.bob/mcp.json)
{
"mcpServers": {
"ubuntu-docs": {
"command": "node",
"args": ["${workspaceFolder}/ubuntu-docs-mcp/build/index.js"],
"timeout": 60000
}
}
}別の場所に置く場合 (グローバル設定など)
${workspaceFolder} は使えないため、絶対パスを指定します。Windows ではバックスラッシュを \\ とエスケープするか、/ を使ってください。
{
"mcpServers": {
"ubuntu-docs": {
"command": "node",
"args": ["/path/to/ubuntu-docs-mcp/build/index.js"],
"timeout": 60000
}
}
}timeout はミリ秒です。man ページ検索が 20 秒近くかかることがあるため、60 秒を推奨します。
設定後、MCP パネルで ubuntu-docs が接続済みになり、10 個のツールが表示されれば成功です。
動作確認の質問例
「Ubuntu 24.04 の IPsec の設定方法を教えて」 →
docs_search/docs_get「openssh-server に関する 24.04 の CVE を教えて」 →
cve_search
うまく動かないとき
症状 | 確認すること |
接続できない / ツールが出ない |
|
|
|
社内プロキシ環境で取得に失敗する | 下の「プロキシ・社内証明書の環境」を参照。証明書検証の無効化は避ける |
公開サイトの構造変更が疑われる |
|
プロキシ・社内証明書の環境
本サーバーは Node.js 標準の fetch で通信します。Node.js の fetch は、既定では HTTPS_PROXY 環境変数を参照しません。
次のオプションが利用できます (node --help で、お使いの Node.js が対応しているか確認してください)。
目的 | Node.js のオプション |
|
|
OS の証明書ストアを使う |
|
社内 CA 証明書を追加する | 環境変数 |
mcp.json では、オプションを args の先頭に置きます。
"args": ["--use-env-proxy", "--use-system-ca", "${workspaceFolder}/build/index.js"]build-index も同様です (例: node --use-env-proxy --use-system-ca build/scripts/build-index.js)。
証明書の検証を無効にする設定は、通信の安全性が失われるため使わないでください。
使い方の例
「Ubuntu 24.04 で OpenSSH のパスワード認証を無効にする方法は?」 →
docs_search→docs_get、man_get(sshd_config,find: PasswordAuthentication)「CVE-2024-3094 は 24.04 に影響する?」 →
cve_get「openssl の未修正の high 脆弱性は?」 →
cve_search(package: openssl,priority: high,status: needed)「openssh-server の最新版は?」 →
package_info
設計上の注意
出典の明示: 各ツールの出力には出典 URL を含めます。回答時は URL を併記してください。
負荷への配慮: 同一 URL は 10 分間メモリにキャッシュし、5xx / 429 / タイムアウトは最大 2 回再試行します。
man ページ検索は遅いことがあります: manpages.ubuntu.com の
/searchが数秒〜20 秒程度かかる場合があります。man_getは名前を直接指定すれば速いです。ライセンス: 各サイトの利用条件に従ってください。Ubuntu Server documentation は主に CC BY-SA です。
情報源の構造変更: HTML / JSON の構造が変わると動かなくなる箇所があります (man 検索結果の HTML パース、Sphinx の searchindex 形式)。その場合は
npm run test:smokeで検出できます。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Search MCP servers, agent skills and AI tools by task. Read-only, no API key.
Search and manage your team's knowledge from MCP clients.
Read-only MCP server for the OrchestKit docs: full-text search + Markdown fetch. No auth.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceLocal documentation search server for AI models using hybrid retrieval (phrase, keyword, vector). Provides MCP tools to search and fetch documentation from bundled or custom doc sets without any external API keys.-
- FlicenseNot gradedqualityBmaintenanceEnables read-only searching and retrieval of the official Proxmox VE administration guide via MCP tools and resources, returning cited fragments with source URLs and freshness metadata.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to query homelab infrastructure such as Proxmox VE, NetBox, systemd services, Grafana, InfluxDB, AdGuard Home, ping logs, and configured HTTP JSON endpoints through read-only tools.AGPL 3.0

XTend hosted MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables XTend developers and agents to search and retrieve canonical XTend documentation, recipes, and kit resources through read-only MCP tools, resources, and prompts served over stateless HTTP.Apache 2.0