Getting Started with the MCP Client: Tutorial on Installing and Configuring Trae
Release Time : 2025-05-06
Views : 5.5K

This is the fourth article in the MCP client introductory tutorial series: "MCP Client Introductory Tutorial - Installation and Configuration of Trae".

This tutorial introduces how to install the Trae IDE and configure the MCP service, helping you quickly master the combined use of Trae and MCP and improve AI programming efficiency.

1. What are MCP and Trae

1.1 Introduction to MCP

MCP (Model Context Protocol) is an open - standard protocol launched by Anthropic. It aims to provide a standardized interface for large language models (LLMs) to interact with external data sources and tools. The core functions of MCP include:

  • Tool Invocation (Tools): Allows AI models to call external services and APIs
  • Resource Access (Resources): Provides the ability to access structured and unstructured data
  • Prompt Templates (Prompts): Pre - defines workflows to simplify repetitive tasks

Through MCP, AI models are no longer limited to training data but can obtain the latest information in real - time, call various tools and services, and complete more complex tasks.

1.2 Introduction to Trae

Trae (pronounced: /treɪ/) is an AI - driven integrated development environment (IDE) launched by ByteDance. Similar to Cursor, it is a powerful programming tool that supports Chinese. It is deeply integrated with AI and provides intelligent Q&A, code auto - completion, and AI - based automatic programming capabilities. Trae supports Windows and macOS operating systems and is currently available for free, with built - in advanced AI models such as Claude and GPT - 4o.

The latest version of Trae already supports the MCP function. Through the built - in MCP marketplace, you can quickly add and configure various MCP services, greatly enhancing the functionality and flexibility of the IDE.

2. Installation Steps of Trae

2.1 Download Trae

  1. Visit the Trae official website: https://www.trae.com.cn/
  2. The official website will automatically detect your operating system and display the corresponding download button

If you need to select manually, you can click to view all download options and choose the version suitable for your operating system.

2.2 Install Trae

After the download is complete, double - click the installation package and follow the prompts to install:

  1. Accept the license agreement
  2. Select the installation location (the default is the program folder on the C drive)
  3. You can choose whether to create a desktop shortcut
  4. Click "Install" to start the installation process

2.3 Initial Configuration

After the installation is complete, start Trae. When starting for the first time, you will enter the initial configuration page:

  1. Click the "Start" button to enter the initial configuration process

2. Select a theme: The options are Dark, Light, and Deep Blue. Choose according to your personal preference.

3. Select the display language: The options are Simplified Chinese and English. Choose the language you are used to.

4. Click the "Continue" button to complete the selection of the theme and language

2.4 Import Configuration (Optional)

If you have used VS Code or Cursor before, you can choose to import the existing configuration:

  1. Click the "Import from VS Code" or "Import from Cursor" button
  2. The system will automatically obtain information such as plugins, settings, and shortcuts from the corresponding IDE

2.5 Log in to an Account

To use the AI functions of Trae, you need to log in to an account:

  1. Log in to Trae using your mobile phone number
  2. Complete the verification process
  3. After successful login, you can use Trae's AI services

3. Configure the MCP Service in Trae

3.1 Update Trae to the Latest Version

Make sure your Trae is the latest version because the MCP function was added in a relatively new version:

  1. Open Trae and click the settings icon in the lower - left corner
  2. Select "Check for Updates"
  3. If there is an update, complete the upgrade as prompted

3.2 Enter the MCP Configuration Page

  1. Click the settings icon in the lower - left corner
  2. Select the "MCP" option in the settings menu

3.3 Browse the MCP Marketplace

After entering the MCP configuration page, you can see the MCP server management interface:

  1. Click the "Add" button to enter the MCP marketplace
  2. Browse various available MCP services in the marketplace

Currently, the MCP marketplace of Trae offers hundreds of services, covering multiple fields such as web automation, data processing, and code generation.

3.4 Add an MCP Service

Method 1: Add directly from the MCP marketplace

Take adding Puppeteer (a web automation tool) as an example:

  1. Find the Puppeteer service in the MCP marketplace
  2. Click the service name to view detailed information
  3. Click the "+" button to add the service

Click "OK" to add. For most services, Trae will automatically complete the configuration without manual intervention.

After successful addition, a "Added" prompt will be displayed.

Method 2: Manually configure the MCP service

For some MCP services that require specific configuration (such as services that require an API key), you need to perform manual configuration:

  1. Find the service that needs to be configured in the MCP marketplace
  2. Click the "+" button and select "Manual Configuration"

3. Fill in the necessary information in the configuration window, such as the API key and service address

4. Click "Confirm" to complete the configuration. It should be noted that if the built - in server of Trae's MCP marketplace cannot meet your needs, you can obtain the MCP service JSON parameters from a third - party marketplace, copy the code fields, and paste them in.

For example, if AIbase needs the service of fetching web pages, it can obtain the JSON fields from the MCP square of Magic Tower.

Then copy and paste the field parameters and click "Confirm" to successfully add the service.

3.5 Confirm the MCP Service Status

After the addition is complete, return to the MCP server list and confirm that the service status is "Available":

At this time, the added MCP service has been successfully added to Trae's built - in agents and can be used in conversations.

In the same way, AIbase has configured multiple MCP services here, including audio generation "minmax", image generation "fal - ai - image", etc. Next, let's continue to learn how to use MCP services in Trae.

4. Use MCP Services

4.1 Select an Agent

After configuring the MCP services, you need to enable the agent to call these services.

In the Trae conversation panel, you can select an agent with the MCP function:

  1. Open the AI panel of Trae and select the "Builder with MCP" agent from the drop - down menu. After selection, you can see the list of currently available MCP tools.

2. You can also select "Create an Agent" from the drop - down menu,

On the agent creation page, fill in the name and instruction words, and select the MCP tools you need to call. In this way, the agent can automatically select and call the appropriate MCP tools according to your instructions.

2. Select the MCP services you need

4.3 Example Demonstration

AIbase demonstrates an example of creating an agent to call the MCP services of web page scraping and audio generation here

  1. Create an audio assistant agent. Enter the agent prompt words in the dialog box and check the MCP services of web page scraping fetch and audio generation minimax that you need to use.
"Summarize the content of the URL into a 100 - word copy, and then convert the text into audio."

2. Next, as long as you select the @audio assistant agent in the Trae chat window and input a URL page, the agent can automatically call the fetch and minimax services. It will summarize the page content and then generate audio.

For example, when AIbase inputs the link "https://www.chinaz.com/ainews/17477.shtml", the agent automatically summarizes it in 100 words:

"Nano AI released the MCP all - purpose toolbox, with over 100 pre - installed services and 18 API keys, supporting multi - modal generation and deep search, and simplifying the MCP configuration process. The tool is suitable for content creation, enterprise automation, education, etc., and is currently in the internal testing phase."

Finally, the 100 - word copy is automatically generated into audio. The effect is as follows:

t2a_Nano AI released MCP all - purpose_20250424_145044.mp3

4.5 Advanced: Add the Figma MCP Service

The Figma MCP service can help developers quickly convert design drafts into code:

  1. Find the Figma AI Bridge in the MCP marketplace
  2. Click "Add" and select "Easy Configuration"
  3. Generate a personal access token on your Figma personal homepage (you can obtain it by following the instructions on the page)
  4. Paste the token into the configuration interface and click "Confirm"

After the configuration is complete, you can use it through the following steps:

  1. Select the "Builder with MCP" agent
  2. Enter an instruction such as "Generate front - end code from my Figma design draft"
  3. The agent will obtain the Figma design information and generate the corresponding code

5. Common Problems and Solutions of MCP

5.1 The MCP service cannot be connected

Problem Description: After adding the MCP service, the status is displayed as "Offline" or "Unable to connect".

Solution:

  1. Check if the network connection is normal
  2. Confirm if the MCP service configuration is correct
  3. Try to restart the Trae application
  4. Check the firewall settings to ensure that they do not block MCP service communication

5.2 The MCP service call fails

Problem Description: An error occurs or there is no response when using the MCP service.

Solution:

  1. Check if "Automatic tool invocation" is enabled
  2. Confirm if the instructions used are clear and specific
  3. Try to select other AI models (such as DeepSeek - v3)
  4. For complex tasks, try to break them down into multiple simple steps

5.3 The MCP service needs to be updated

Problem Description: The MCP service version is too old, and the functions are limited.

Solution:

  1. Find the service that needs to be updated in the MCP service list
  2. Click the "Update" button on the right side of the service
  3. Complete the update process as prompted

6. Summary and Outlook

6.1 Current Limitations of MCP

Although MCP is very powerful, there are still some limitations at present:

  1. The number of available MCP services is limited (there are about one hundred built - in services on Trae at present)
  2. Different AI models have different levels of support for MCP
  3. The success rate of executing complex tasks still needs to be improved
  4. The MCP services in some specific fields have not been developed

6.2 Future Development of MCP

As a standard protocol for AI to interact with the external world, MCP has broad development prospects in the future:

  1. More third - party developers will join the MCP ecosystem
  2. The variety and quality of services will continue to improve
  3. The understanding and use ability of AI models for MCP will be enhanced
  4. It will be more convenient for users to customize MCP services

6.3 Best Practice Recommendations

To fully utilize the potential of MCP, it is recommended that:

  1. Keep Trae updated to the latest version
  2. Try different AI models to find the most suitable one for specific tasks
  3. For complex tasks, use the step - by - step guidance method
  4. Regularly browse the MCP marketplace to learn about new services
  5. Participate in community discussions and share usage experiences and skills

Reference Resources

  1. Trae Official Documentation
  2. MCP Protocol Specification
  3. Figma API Documentation

MCP Client Introductory Tutorial Series

An Introductory Guide to MCP for Beginners: Learn to Use MCP Services from Scratch After Reading This

MCP Client Introductory Tutorial - Installation and Configuration of Cherry Studio

MCP Client Introductory Tutorial - Installation and Configuration of ChatWise

MCP Client Introductory Tutorial - Installation and Configuration of Cursor

MCP Client Introductory Tutorial - Installation and Configuration of Trae

MCP Client Introductory Tutorial - Installation and Configuration of Claude


AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase