Roo Code MCP Setup: Connect MCP Servers to Roo Code

Roo CodeOpen sourcestdioSSEStreamable HTTPOfficial site

What it is

An open-source, agentic AI coding extension for VS Code (originally a Cline fork) with customizable modes for different tasks.

How MCP works in Roo Code

Roo Code is an MCP client with global and project-scoped server configs. Project config takes precedence when a server name appears in both.

Config file location

mcp_settings.json (global, via the extension) or .roo/mcp.json (project root) holds an mcpServers object.

Add your first server

A good first server is Playwright MCP — Microsoft's browser automation server. It runs locally over stdio via npx, needs no API key, and gives the agent a real browser to drive. Here is the verified Roo Code config:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Restart or reload Roo Code after saving, then confirm the server's tools show up. Swap in any other server from the directory using the same structure.

Transports & platforms

Transportsstdio, SSE, Streamable HTTP
PlatformsmacOS, Windows, Linux
LicenseOpen source
VendorRoo Code

FAQ

Does Roo Code support MCP?

Yes. Roo Code works as an MCP client over stdio, SSE, Streamable HTTP. Roo Code is an MCP client with global and project-scoped server configs. Project config takes precedence when a server name appears in both.

Where is the Roo Code MCP config?

mcp_settings.json (global, via the extension) or .roo/mcp.json (project root) holds an mcpServers object. The verified example above shows the exact structure it expects.

Which MCP servers work with Roo Code?

Any server that speaks a transport Roo Code supports (stdio, SSE, Streamable HTTP). Browse the MCP server directory on this site to find databases, browser automation, API integrations, and dev tools, then add them using the config format above.

Keep exploring