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.

    MCP Servers tab in the AI Preferences

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

The following table summarizes the preferences.

SettingValue
Connection typeThe type of the connection to use for the MCP server.
Launch commandThe command to launch the MCP server process. Only used for standard IO connections.
Launch argumentsArguments for the launch command.
EnvironmentEnvironment 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.

    Add MCP Server from Registry dialog

  4. Select OK.

See also Activate extensions and How to: Use AI.