- Qt Creator Documentation
- Add MCP servers
- Qt Creator 20.0.0

Using AI ◦ Set up Qt Creator MCP server

# Add MCP servers

You can configure connections to MCP servers to:

- Complete Tasks
- Connect to the server from a web application using cross-origin resource sharing (CORS)

You can use tools for:

- Running command-line tools and other executables
- Version control repositories
- Listing visible files
- Managing breakpoints
- Getting debugger stack traces
- Finding and triggering actions

You can execute commands for:

- Retrieving project dependencies
- Listing issues for a file
- Finding files in projects
- Searching and replacing text in project files and other files

## Connect to MCP servers

To add connections to MCP servers:

1. Go to Preferences > AI > MCP Servers.

2. Select Add.
3. Set preferences for the server.
4. Select Apply.

The following table summarizes the preferences.

Setting | Value
--- | ---
Connection type | The type of the connection to use for the MCP server.
Executable | The executable to launch the MCP server process. Only used for standard IO connections.
Arguments | Arguments for the launch command.
Environment | Environment changes applied when launching the MCP server process over a standard IO connection.

## Add MCP servers from the registry

To install MCP servers from the registry and create connections to them:

1. Go to Preferences > AI > MCP Servers.
2. Select Add from Registry.
3. Select an MPC server from the list.

4. Select OK.

See also Activate extensions and How to: Use AI.