Trae is an AI-powered IDE developed by ByteDance that brings agentic coding capabilities to a VS Code-based environment. It uses project-scoped MCP configuration stored at .trae/mcp.json within the workspace root, using the standard mcpServers root key and the same field structure as Claude Desktop. Because the config is project-scoped, it can be committed to source control alongside your code, allowing teams to share a consistent set of MCP server tools. Trae's AI agent can call registered MCP server tools during code generation, refactoring, and debugging sessions. The getmcp CLI detects Trae by checking for the ~/.trae directory and writes configs to the project-level .trae/mcp.json.
The fastest way to install MCP servers in Trae is with the getmcp CLI:
npx @getmcp/cli add <server-id>Example configuration for the github server:
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@brave/brave-search-mcp-server"
],
"env": {
"BRAVE_API_KEY": ""
}
}
}
}