Set up Qt Creator MCP server
Qt Creator supports the model context protocol (MCP) to let AI assistants control it for debugging, building, and managing projects.
To start the MCP server and use an MCP client, install a client and activate the MCP server extension.
View MCP server status
Qt Creator starts the MCP server when you activate the Qt Creator MCP server extension. The server runs on the computer and accepts connections on an automatically set port.
To view the MCP server status and to change the IP address and port number, go to Preferences > AI > Qt Creator MCP Server.

The following table summarizes the preferences.
| Setting | Value |
|---|---|
| Enable MCP Server | Turns the MCP server on and off. |
| Listen on | Sets the server address for the MCP server to listen on. |
| Port | Sets the port for the MCP server to listen on. Automatic automatically selects a free port, but you can also set a fixed port number. |
| Enable cross-origin access | Turns on cross-origin resource sharing (CORS), which you need to connect to the server from a web application. |
Use MCP clients
When you enable the ACP Client extension and use an ACP client in Qt Creator, it uses the MCP server automatically.
To use the MCP server for other products, such as Claude Code, you must configure it. For more information, see the documentation of the product.
See also Activate extensions and How to: Use AI.