Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCP Server won't connect #57

Closed
PiovisDevelopment opened this issue Mar 22, 2025 · 10 comments
Closed

MCP Server won't connect #57

PiovisDevelopment opened this issue Mar 22, 2025 · 10 comments

Comments

@PiovisDevelopment
Copy link

I have a Windows 11 Lenovo 4060 laptop.

I've tried to connect the Figma MCP server to Cursor, but without luck.

I've noticed in the notes and in several videos, please have the button 'Add MCP Server' when they click on 'MCP' in settings.

I have a button that says 'Add new global MCP server'.

Can anyone help me get over this issue.

Image

Image

@inhyeokjo
Copy link

inhyeokjo commented Mar 22, 2025

Hi, just click the +Add new global MCP server button and fill in the following:

{
  "mcpServers": {
    "Framelink Figma MCP": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "figma-developer-mcp",
        "--figma-api-key=YOUR-KEY",
        "--stdio"
      ]
    }
  }
}

@PiovisDevelopment
Copy link
Author

Thanks @inhyeokjo I tried that and still could not connect.

Image

@GLips
Copy link
Owner

GLips commented Mar 22, 2025

I'm not familiar with Windows so unfortunately can't help that much. A cursory web search seems to say it might be related to your node version? Do you know what you're running? Could you try Node 18 if not already running it?

@PiovisDevelopment
Copy link
Author

@GLips thanks - I'm running Node v18.16.0.

@coolcorexix
Copy link

hey, with the new Cursor update you can by pass a config JSON object to the mcp.json file, here is what is working for me

    "Figma-MCP": {
      "type": "sse",
      "url": "http://localhost:3333/sse"
    }

@PxKimHyeongRae
Copy link

PxKimHyeongRae commented Mar 24, 2025

@coolcorexix

Thank you.

After changing the existing configuration

{
  "mcpServers": {
    "Framelink Figma MCP": {
      "command": "npx",
      "args": ["-y", "figma-developer-mcp", "--figma-api-key=mykey", "--stdio"] 
    }
  }
}

to

{
  "mcpServers": {
    "Figma-MCP": {
      "type": "sse",
      "url": "http://localhost:3333/sse"
    }
  }
}

and running npx figma-developer-mcp --figma-api-key=mykey in the command line, the issue was resolved without any problems.

Thank you!

@Fartpeach1003
Copy link

@GLips I've connected successfully, but the cursor still reports an errorresult:Error fetching file: [object Object]
This figma is private. When configuring key permissions, I turned on the read permissions.so i think this key should be accessed with permissions but this error is not detailed. i don't know where the problem is.

Image

@inhyeokjo
Copy link

I changed my comment!

Maybe you didn't put your figma-key
@PiovisDevelopment

@PiovisDevelopment
Copy link
Author

@inhyeokjo thank you, I got it to work using your format! :) thank you!

@TaylorPzreal
Copy link

A Dockerfile config demo:

FROM docker.1ms.run/node:20-alpine

WORKDIR /app

RUN npm install -g figma-developer-mcp@0.1.12

# Define environment variable that can be overridden at runtime
ENV FIGMA_API_KEY=""

# Use shell form of ENTRYPOINT to allow environment variable expansion
ENTRYPOINT figma-developer-mcp --figma-api-key=$FIGMA_API_KEY --stdio

mcp.json config:

{
  "mcpServers": {
    "figma": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "FIGMA_API_KEY="xxx",
        "--rm",
        "mcp-figma"
      ]
    }
  }
}

Works ok.

@GLips GLips closed this as completed Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants