Skip to main content
Doug Beard
New Member
July 5, 2025
Solved

MCP Server, Claude Code and WSL

  • July 5, 2025
  • 11 replies
  • 3652 views

Figma MCP Server currently only binds to 127.0.0.1 which makes it unable to listen on any other interface. WSL creates a virtual interface, to which the MCP Server must be able to listen, or Claude Code cannot connect to the MCP Server.

 

Long story short, you need to make the MCP Server configurable.  As it is now, it’s useless for Claude Code users on Windows.

This topic has been closed for replies.
Best answer by Yelisson Rodriguez Ortiz

Hi there,

I ran into the same issue while configuring Augment Code under WSL 2 and found this sequence fixes it:

1. Press **Windows + R** to open the *Run* dialog.  
2. Enter `%UserProfile%\.wslconfig` and press **Enter**.  
   * If the file doesn’t exist, create it in your user folder.  
3. Confirm the file is named **.wslconfig** (with **no ".txt"** extension).  
4. Add the following lines and save the file:
   [wsl2]
   networkingMode = mirrored
5. Open PowerShell as Administrator and run: wsl --shutdown

After WSL restarts, you should be able to configure MCP using 127.0.0.1 without further issues.

11 replies

Ilán Vivanco
New Member
March 13, 2026

The `networkingMode = mirrored` config works for me, but unfortunately it also completely breaks the WSL <> VS Code connections, so I can have that enabled. I tried also with `localhostForwarding=true` but nothing changed.