Back to Home
natcoder icon

qtmcp

by natcoder

Overview

Provides a Model Context Protocol (MCP) server framework for AI applications, offering tool, resource, and prompt services via HTTP.

Installation

Run Command
.\MCPXServer.exe

Security Notes

CRITICAL: The server is highly insecure for production use. It is vulnerable to path traversal: the `resources/read` method allows clients to specify a `uri` (e.g., `file:///../../../../etc/passwd`) to read arbitrary files from the server's filesystem. There is a high risk of arbitrary code execution if an attacker can manipulate or inject tool configuration files (e.g., `calculator.json`). Tools define `execHandler` and `execMethod` fields, dynamically invoking methods on `QObject`s found in the application, which could lead to calling malicious functions. The server completely lacks authentication and authorization mechanisms, meaning any client can connect and invoke any method, further exacerbating the other vulnerabilities. Manual input validation is applied in some places (e.g., `MCPClientInitializeMessage` for protocol version, `MCPTool` for input/output schema), but this does not mitigate the fundamental architectural flaws related to dynamic resource/tool loading and the absence of access control. The `llhttp` C library could also introduce lower-level memory safety issues if not handled with extreme care.

Similar Servers

Stats

Interest Score34
Security Score1
Cost ClassLow
Stars2
Forks2
Last Update2025-11-24

Tags

AI BackendQt C++Model Context ProtocolHTTP ServerPlugin Framework