ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Qt4 Doc MCP Server

โดย jztanรุ่น 0.7.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.jztan/qt4-doc-mcp-server

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Offline MCP server for local Qt 4.8, Qt 5, and Qt 6 documentation with full-text search.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): Streamable HTTP
  • หมวด: ค้นข้อมูลและความจำของ AI
  • ต้องใส่ค่าเหล่านี้: QT_DOC_BASE

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "qt4-doc": {
      "command": "uvx",
      "args": [
        "qt4-doc-mcp-server"
      ],
      "env": {
        "QT_DOC_BASE": "ใส่ค่าของคุณ",
        "QT_DOC_STATE_DIR": "ใส่ค่าของคุณ",
        "SERVER_HOST": "ใส่ค่าของคุณ",
        "SERVER_PORT": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add qt4-doc --env QT_DOC_BASE='ใส่ค่าของคุณ' --env QT_DOC_STATE_DIR='ใส่ค่าของคุณ' --env SERVER_HOST='ใส่ค่าของคุณ' --env SERVER_PORT='ใส่ค่าของคุณ' -- uvx qt4-doc-mcp-server

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "qt4-doc": {
      "command": "uvx",
      "args": [
        "qt4-doc-mcp-server"
      ],
      "env": {
        "QT_DOC_BASE": "ใส่ค่าของคุณ",
        "QT_DOC_STATE_DIR": "ใส่ค่าของคุณ",
        "SERVER_HOST": "ใส่ค่าของคุณ",
        "SERVER_PORT": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "qt4-doc": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "qt4-doc-mcp-server"
      ],
      "env": {
        "QT_DOC_BASE": "ใส่ค่าของคุณ",
        "QT_DOC_STATE_DIR": "ใส่ค่าของคุณ",
        "SERVER_HOST": "ใส่ค่าของคุณ",
        "SERVER_PORT": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • QT_DOC_BASE จำเป็น env
    Absolute path to a local Qt 4.8, Qt 5, or Qt 6 HTML documentation root (required)
  • QT_DOC_STATE_DIR env
    Writable directory for the search index and Markdown cache (default: $QT_DOC_BASE/.index; set when the documentation root is read-only)
  • SERVER_HOST env
    Server bind address (default: 127.0.0.1)
  • SERVER_PORT env
    Server port (default: 8000)

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub jztan ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 5670 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 24% ของอีก 5670 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 5670 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Qt4 Doc MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: QT_DOC_BASE

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.7.0) เข้า registry 4 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต เมื่อวาน
ติดตั้ง

Codebase Memory

โดย DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

รันบนเครื่อง★ 48,148MITอัปเดต 21 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

รันบนคลาวด์★ 5,213MITอัปเดต 2 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Qt Documentation MCP Server

mcp-name: io.github.jztan/qt4-doc-mcp-server

Bring locally installed Qt 4.8, Qt 5, or Qt 6 documentation to your AI coding assistant. Works offline with one selected documentation set at a time.

Tool Reference | Changelog | Contributing | Troubleshooting

✨ Features

  • 🔌 Offline-First - Works entirely with local documentation
  • 🔍 Full-Text Search - Find what you need across all Qt docs
  • ⚡ Smart Caching - Fast responses for repeated queries
  • 🎯 Fragment Support - Extract specific sections when needed
  • 🛠️ MCP Standard - Compatible with Claude, VS Code, and other MCP clients

📦 Prerequisites

  • Python 3.11+ required (not needed when using the Docker image)
  • Qt HTML Documentation for one supported release (Qt 4.8, Qt 5, or Qt 6)
  • The included helper downloads Qt 4.8.4 only.
  • Point QT_DOC_BASE directly at an existing Qt 5/6 offline documentation root.
  • ~500MB disk space for docs + cache + search index
  • SQLite with FTS5 support (included in Python 3.11+ by default)

🚀 Installation

From PyPI (Recommended)
pip install qt4-doc-mcp-server
From Source
git clone https://github.com/jztan/qt4-doc-mcp-server.git

cd qt4-doc-mcp-server uv sync --locked

Setup Qt Documentation
# Automated setup (recommended, requires the cloned repo)

python scripts/prepare_qt48_docs.py --segments 4

This will:

- Download Qt 4.8.4 source archive

- Extract HTML documentation

- Create .env with sensible defaults

- Copy GFDL license file

The helper script ships with the repo, not the PyPI package. Installed from PyPI only? Download the docs manually instead:

curl -LO https://download.qt.io/archive/qt/4.8/4.8.4/qt-everywhere-opensource-src-4.8.4.tar.gz

tar -xzf qt-everywhere-opensource-src-4.8.4.tar.gz qt-everywhere-opensource-src-4.8.4/doc/html mv qt-everywhere-opensource-src-4.8.4/doc/html ./qt4-docs-html

Then create a .env with QT_DOC_BASE pointing at that directory (see Configuration below).

Quick Start Commands
# 1. Install

pip install qt4-doc-mcp-server

2. Setup Qt docs

python scripts/prepare_qt48_docs.py --segments 4

3. Build search index (optional; the server builds it on first start)

qt-doc-build-index

4. Start server

qt-doc-mcp

5. Verify health

curl -s http://127.0.0.1:8000/health

The legacy qt4-doc-mcp-server command remains available as an alias for existing client configurations.

Agent-friendly FTS CLI

After building the index, agents can search and receive materialized absolute Markdown paths:

qt-doc-cli "accessible applications" --limit 5

The command reads the same .env settings as the server. Before searching, it automatically builds a missing/outdated FTS index and fully warms an incomplete Markdown cache. It then prints each result's title, absolute .md path, and FTS snippet to stdout; preparation messages, errors, and warnings go to stderr. Use qt-doc-warm-md --force after changing documentation in place.

🐳 Docker

Prebuilt multi-arch images (amd64/arm64) are published to GitHub Container Registry on every release. The container is offline-only: you mount your prepared Qt doc/html directory read-only at /docs, and all derived state (Markdown cache and search index) lives in a volume at /data.

# Prepare Qt docs on the host first (one-time, writes to ./qt4-docs-html)

python scripts/prepare_qt48_docs.py --segments 4

Run from GHCR

docker run -d --name qt4-doc-mcp-server -p 8000:8000 \ -v "$PWD/qt4-docs-html:/docs:ro" \ -v qt4-doc-data:/data \ ghcr.io/jztan/qt4-doc-mcp-server:latest

Verify

curl -s http://127.0.0.1:8000/health

Using only the published image, without cloning this repo? Download the Qt 4.8.4 docs directly instead of running the prepare script:

curl -LO https://download.qt.io/archive/qt/4.8/4.8.4/qt-everywhere-opensource-src-4.8.4.tar.gz

tar -xzf qt-everywhere-opensource-src-4.8.4.tar.gz qt-everywhere-opensource-src-4.8.4/doc/html mv qt-everywhere-opensource-src-4.8.4/doc/html ./qt4-docs-html

Any existing Qt 5 or Qt 6 doc/html tree (from the Qt installer or distro documentation packages) works as the mount source too.

First start converts and indexes the documentation into the /data volume; subsequent starts reuse it. Depending on the docset size, the first start can take a minute or two before the health endpoint responds.

Docker Compose

With docs in the default ./qt4-docs-html location, no configuration is needed:

docker compose up -d

For docs elsewhere (including Qt 5 or Qt 6 doc/html trees, which the server also supports), point QT_DOC_HTML_PATH at them. If port 8000 is taken on the host, set HOST_PORT in the same file (with plain docker run, change the left side of -p instead):

cp .env.docker.example .env.docker   # set QT_DOC_HTML_PATH

docker compose --env-file .env.docker up -d

Or use the convenience script, which checks Docker is running, creates .env.docker on first run, builds and starts the service, and waits for the health endpoint:

./deploy.sh

Point your MCP client at http://127.0.0.1:8000/mcp (streamable HTTP). Qt documentation is licensed under GFDL 1.3; the container serves your local copy and never redistributes it.

⚙️ Configuration

These settings apply to native (pip or source) runs. In Docker they are already set inside the container (QT_DOC_BASE=/docs, QT_DOC_STATE_DIR=/data, SERVER_HOST=0.0.0.0); the QT_DOC_HTML_PATH variable in .env.docker is not a server setting, just the host path mounted at /docs.

Create a .env file in the repo root. The helper script writes sensible defaults; adjust as needed:

VariableDefaultPurpose
QT_DOC_BASE_required_Absolute path to one Qt 4.8, Qt 5, or Qt 6 HTML documentation root. The server detects the active docset.
QT_DOC_STATE_DIR$QT_DOC_BASE/.indexOptional writable directory for the FTS index and Markdown cache. Use this when the documentation root is read-only.
PREINDEX_DOCStrueBuild search index automatically at startup if not present.
PRECONVERT_MDfalseWarm the Markdown cache automatically at MCP startup.
SERVER_HOST127.0.0.1Bind address for the FastMCP server (0.0.0.0 for containers).
SERVER_PORT8000TCP port for streamable HTTP transport.
MCP_LOG_LEVELWARNINGLogging verbosity (DEBUG/INFO/WARNING/ERROR).
MD_CACHE_SIZE512In-memory CachedDoc LRU capacity (counts pages).
DEFAULT_MAX_MARKDOWN_LENGTH20000Default maximum characters returned per request (prevents token limit issues).

The tools identify documents by their exact root-relative Markdown path, not an online URL. For example, use qcompleter.md for a Qt 4 page, qtdoc/accessible.md for a Qt 5/6 global page, or qtcore/qobject.md for a Qt 5/6 Core page. By default, each docset stores its own index and Markdown cache under $QT_DOC_BASE/.index/, so switching QT_DOC_BASE reuses its existing derived state. Set QT_DOC_STATE_DIR to relocate both to a writable directory. The Markdown cache mirrors the documentation tree: for example, qtcore/qobject.md is cached as .index/md/qtcore/qobject.md plus qobject.meta.json with the default state directory.

🔌 MCP Client Setup

By default, the server exposes an HTTP endpoint at http://127.0.0.1:8000/mcp. Register it with your preferred MCP-compatible agent using the instructions below.

Stdio transport

Run the server over stdio instead of HTTP with:

qt-doc-mcp --transport stdio

For stdio-only MCP clients, configure that command with args: ["--transport", "stdio"]. Startup indexing and Markdown-cache progress are written to stderr, leaving stdout exclusively for MCP protocol messages.

Visual Studio Code (Native MCP Support)

VS Code has built-in MCP support via GitHub Copilot (requires VS Code 1.102+).

Using CLI (Quickest):

code --add-mcp '{"name":"qt-docs","type":"http","url":"http://127.0.0.1:8000/mcp"}'

Using Command Palette:

  1. Open Command Palette (Cmd/Ctrl+Shift+P)
  2. Run MCP: Open User Configuration (for global) or MCP: Open Workspace Folder Configuration (for project-specific)
  3. Add the configuration:
   {

"servers": { "qt-docs": { "type": "http", "url": "http://127.0.0.1:8000/mcp" } } }

4. Save the file. VS Code will automatically load the MCP server.

Manual Configuration: Create .vscode/mcp.json in your workspace (or mcp.json in your user profile directory):

{

"servers": { "qt-docs": { "type": "http", "url": "http://127.0.0.1:8000/mcp" } } }

Claude Code

Add to Claude Code using the CLI command:

claude mcp add --transport http qt-docs http://127.0.0.1:8000/mcp

Or configure manually in your Claude Code settings file (~/.claude.json):

{

"mcpServers": { "qt-docs": { "type": "http", "url": "http://127.0.0.1:8000/mcp" } } }

Codex CLI

Add to Codex CLI using the command:

codex mcp add qt-docs -- npx -y mcp-client-http http://127.0.0.1:8000/mcp

Or configure manually in ~/.codex/config.toml:

[mcp_servers.qt-docs]

command = "npx" args = ["-y", "mcp-client-http", "http://127.0.0.1:8000/mcp"]

Note: Codex CLI primarily supports stdio-based MCP servers. The above uses mcp-client-http as a bridge for HTTP transport.

Kiro

Kiro primarily supports stdio-based MCP servers. For HTTP servers, use an HTTP-to-stdio bridge:

  1. Create or edit .kiro/settings/mcp.json in your workspace:
   {

"mcpServers": { "qt-docs": { "command": "npx", "args": [ "-y", "mcp-client-http", "http://127.0.0.1:8000/mcp" ], "disabled": false } } }

2. Save the file and restart Kiro. The active Qt documentation tools will appear in the MCP panel.

Note: Direct HTTP transport support in Kiro is limited. The above configuration uses mcp-client-http as a bridge to connect to HTTP MCP servers.

Generic MCP Clients

Most MCP clients use a standard configuration format. For HTTP servers:

{

"mcpServers": { "qt-docs": { "type": "http", "url": "http://127.0.0.1:8000/mcp" } } }

For clients that require a command-based approach with HTTP bridge:

{

"mcpServers": { "qt-docs": { "command": "npx", "args": ["-y", "mcp-client-http", "http://127.0.0.1:8000/mcp"] } } }

🛠️ Available Tools

The server provides 2 MCP tools for working with the active local Qt documentation set:

  1. **`read

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx