Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-jztan-qt4-doc-mcp-server": {
"command": "uvx",
"args": [
"qt4-doc-mcp-server"
],
"env": {
"QT_DOC_BASE": "<VALUE>",
"QT_DOC_STATE_DIR": "<VALUE>",
"SERVER_HOST": "127.0.0.1",
"SERVER_PORT": "8000",
"MD_CACHE_DIR": ".cache/md",
"INDEX_DB_PATH": ".index/fts.sqlite",
"MCP_LOG_LEVEL": "WARNING",
"MD_CACHE_SIZE": "512",
"PRECONVERT_MD": "true",
"PREINDEX_DOCS": "true",
"DEFAULT_MAX_MARKDOWN_LENGTH": "20000"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-jztan-qt4-doc-mcp-server": {
"command": "uvx",
"args": [
"qt4-doc-mcp-server"
],
"env": {
"QT_DOC_BASE": "<VALUE>",
"QT_DOC_STATE_DIR": "<VALUE>",
"SERVER_HOST": "127.0.0.1",
"SERVER_PORT": "8000",
"MD_CACHE_DIR": ".cache/md",
"INDEX_DB_PATH": ".index/fts.sqlite",
"MCP_LOG_LEVEL": "WARNING",
"MD_CACHE_SIZE": "512",
"PRECONVERT_MD": "true",
"PREINDEX_DOCS": "true",
"DEFAULT_MAX_MARKDOWN_LENGTH": "20000"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-jztan-qt4-doc-mcp-server": {
"command": "uvx",
"args": [
"qt4-doc-mcp-server"
],
"env": {
"QT_DOC_BASE": "<VALUE>",
"QT_DOC_STATE_DIR": "<VALUE>",
"SERVER_HOST": "127.0.0.1",
"SERVER_PORT": "8000",
"MD_CACHE_DIR": ".cache/md",
"INDEX_DB_PATH": ".index/fts.sqlite",
"MCP_LOG_LEVEL": "WARNING",
"MD_CACHE_SIZE": "512",
"PRECONVERT_MD": "true",
"PREINDEX_DOCS": "true",
"DEFAULT_MAX_MARKDOWN_LENGTH": "20000"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-jztan-qt4-doc-mcp-server": {
"command": "uvx",
"args": [
"qt4-doc-mcp-server"
],
"env": {
"QT_DOC_BASE": "<VALUE>",
"QT_DOC_STATE_DIR": "<VALUE>",
"SERVER_HOST": "127.0.0.1",
"SERVER_PORT": "8000",
"MD_CACHE_DIR": ".cache/md",
"INDEX_DB_PATH": ".index/fts.sqlite",
"MCP_LOG_LEVEL": "WARNING",
"MD_CACHE_SIZE": "512",
"PRECONVERT_MD": "true",
"PREINDEX_DOCS": "true",
"DEFAULT_MAX_MARKDOWN_LENGTH": "20000"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-jztan-qt4-doc-mcp-server": {
"command": "uvx",
"args": [
"qt4-doc-mcp-server"
],
"env": {
"QT_DOC_BASE": "<VALUE>",
"QT_DOC_STATE_DIR": "<VALUE>",
"SERVER_HOST": "127.0.0.1",
"SERVER_PORT": "8000",
"MD_CACHE_DIR": ".cache/md",
"INDEX_DB_PATH": ".index/fts.sqlite",
"MCP_LOG_LEVEL": "WARNING",
"MD_CACHE_SIZE": "512",
"PRECONVERT_MD": "true",
"PREINDEX_DOCS": "true",
"DEFAULT_MAX_MARKDOWN_LENGTH": "20000"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-jztan-qt4-doc-mcp-server": {
"command": "uvx",
"args": [
"qt4-doc-mcp-server"
],
"env": {
"QT_DOC_BASE": "<VALUE>",
"QT_DOC_STATE_DIR": "<VALUE>",
"SERVER_HOST": "127.0.0.1",
"SERVER_PORT": "8000",
"MD_CACHE_DIR": ".cache/md",
"INDEX_DB_PATH": ".index/fts.sqlite",
"MCP_LOG_LEVEL": "WARNING",
"MD_CACHE_SIZE": "512",
"PRECONVERT_MD": "true",
"PREINDEX_DOCS": "true",
"DEFAULT_MAX_MARKDOWN_LENGTH": "20000"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| QT_DOC_BASE | Yes | Absolute path to the Qt 4.8.4 HTML docs (.../doc/html). |
| QT_DOC_STATE_DIR | No | Writable directory for the search index and Markdown cache (default: $QT_DOC_BASE/.index; set when the documentation root is read-only) |
| SERVER_HOST | No | Bind address for the FastMCP server (0.0.0.0 for containers). Default: 127.0.0.1 |
| SERVER_PORT | No | TCP port for streamable HTTP transport. Default: 8000 |
| MD_CACHE_DIR | No | Directory for cached Markdown blobs + metadata. Default: .cache/md |
| INDEX_DB_PATH | No | Location of the SQLite FTS5 search index. Default: .index/fts.sqlite |
| MCP_LOG_LEVEL | No | Logging verbosity (DEBUG/INFO/WARNING/ERROR). Default: WARNING |
| MD_CACHE_SIZE | No | In-memory CachedDoc LRU capacity (counts pages). Default: 512 |
| PRECONVERT_MD | No | Warm the Markdown cache automatically at startup. Default: true |
| PREINDEX_DOCS | No | Build search index automatically at startup if not present. Default: true |
| DEFAULT_MAX_MARKDOWN_LENGTH | No | Default maximum characters returned per request (prevents token limit issues). Default: 20000 |