Skip to main content
Question

MCP Integration in VS Code Fails Due to Metadata Resource Mismatch

  • October 30, 2025
  • 9 replies
  • 242 views

ankit68543

Hi Figma team and community,

I am trying to use Figma MCP (Model Context Protocol) integration in VS Code, but I’m running into a persistent issue that prevents the connection from working.

 

Problem Description

When I configure mcp.json like this:

 

{ "inputs": [], "servers": { "figma": { "url": "https://mcp.figma.com/mcp", "type": "http" } } }

and start the server in VS Code, I get the following error:

 

Server exited before responding to `initialize` request. Error sending message to https://mcp.figma.com/mcp: Error: Protected Resource Metadata resource "https://mcp.figma.com" does not match MCP server resolved resource "https://mcp.figma.com/mcp". The MCP server must follow OAuth spec https://datatracker.ietf.org/doc/html/rfc9728#PRConfigurationValidation

Attempts to use SSE mode or a local proxy have not worked because VS Code MCP strictly validates the resource URL against the protected resource metadata. Any change to the URL (including using localhost or removing /mcp) results in either a 404 error or the same resource mismatch error.

Root Cause

Based on investigation:

  • The .well-known/oauth-protected-resource file at https://mcp.figma.com/.well-known/oauth-protected-resource declares:

 

{ "resource": "https://mcp.figma.com" }

  • However, the actual MCP endpoint is at https://mcp.figma.com/mcp.

  • VS Code MCP enforces an exact match between the metadata resource and server URL, including protocol, domain, and path.

  • This mismatch prevents any client from connecting until the metadata is updated.

Workarounds Tried

  • Switching "type": "sse" in mcp.json → does not bypass the validation

  • Local proxy rewriting metadata → VS Code MCP rejects non-matching host/protocol

  • Removing /mcp from URL → breaks the actual endpoint

None of these approaches work because the client strictly follows RFC 9728 §5.2.2.

Request

It seems this is a server-side metadata issue. To fix MCP integration in VS Code:

  1. Update the .well-known/oauth-protected-resource file to declare:

 

{ "resource": "https://mcp.figma.com/mcp" }

  1. Ensure the resource metadata matches the MCP endpoint path exactly.

Additional Info

  • VS Code version: [your version here]

  • MCP extension version: [your version here]

  • OS: [your OS here]

  • MCP config:

 

{ "inputs": [], "servers": { "figma": { "url": "https://mcp.figma.com/mcp", "type": "http" } } }

Impact:

  • Cannot use Figma Dev Mode + MCP in VS Code

  • Blocks programmatic access to components, tokens, and design data via MCP

I hope the Figma team can update the metadata to resolve this issue so MCP integration works as intended.

Thanks in advance for any guidance!

9 replies

ksn
Figmate
  • Community Support
  • November 5, 2025

@ankit68543 Hey! First, thank you for taking the time to write out all of the details. Admittedly, this one is outside of my existing knowledge, but I filed an inquiry ticket with our engineers to review. I’ll touch base with you once I hear more.

 

Appreciate your patience in the meantime 😃


ksn
Figmate
  • Community Support
  • November 5, 2025

Hi again ​@ankit68543 - I just heard back from our engineering team, and the resource URI issue you mentioned was recently fixed. Can you let me know if you’re still running into this problem? I’ll relay that internally again if so.

Thank you!


kyleckey
  • New Member
  • November 5, 2025

Hi again ​@ankit68543 - I just heard back from our engineering team, and the resource URI issue you mentioned was recently fixed. Can you let me know if you’re still running into this problem? I’ll relay that internally again if so.

Thank you!

i have same issue. just tried.


ankit68543
  • Author
  • New Member
  • November 6, 2025

It is working now. Thanks a lot. 


ksn
Figmate
  • Community Support
  • November 7, 2025

@kyleckey If you haven’t yet, can you completely quit and restart the app (or refresh the website if you’re using browser) and see if that helps?

If not, can you provide a breakdown of how this surfaces for you? I’ll ask engineering to look.


kyleckey
  • New Member
  • November 11, 2025

@ksn attached is my mcp file that was generated. 

when i type #get_design_context into the vscode chatbot (the github copilot chat), it says “

  • mcp.json defines a design server entry named "Figma MCP" (url https://mcp.figma.com/mcp). Right now it only registers the server; "inputs" is empty so no credentials/file IDs are configured.”

kyleckey
  • New Member
  • November 11, 2025

@ksn if i try installing the mcp server the automatic way, when I click “start server”, I get 

Connection state: Error Error sending message to https://mcp.figma.com/mcp: Error: Protected Resource Metadata resource "https://mcp.figma.com/mcp" does not match MCP server resolved resource "https://mcp.figma.com/". The MCP server must follow OAuth spec https://datatracker.ietf.org/doc/html/rfc9728#PRConfigurationValidation

2025-11-11 14:47:56.074 [error] Server exited before responding to `initialize` request.


kyleckey
  • New Member
  • November 12, 2025

@ksn I resolved the issue. the problem was the vscode is just too old and somehow that impacted the mcp server. after upgrade everything works fine now. thank you . 


kevo1ution
  • New Member
  • November 12, 2025

@ksn could you help with a similar problem on