mcpField
πŸš€
πŸš€ Figma MCP Server + Augment Code Integration

πŸš€ Figma MCP Server + Augment Code Integration

Local
github.com/shedyteeMedia & Design9Updated 56w ago

About πŸš€ Figma MCP Server + Augment Code Integration

An example Node.js MCP server that retrieves Figma file data and makes it available to Augment Code as a custom tool. It is intended for developers connecting Figma API data to an MCP-compatible workflow.

Key features

  1. 01Queries Figma files
  2. 02Exposes Figma data through MCP
  3. 03Integrates as an Augment Code custom tool
  4. 04Uses figma-js and environment configuration

Use cases

  1. 01Retrieve a Figma file through Augment Code
  2. 02Ask about named design components
  3. 03Inspect components in a design file

MCP support

The server exposes Figma file data through an MCP interface, allowing Augment Code to use it as a custom tool.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

πŸš€ Figma MCP Server + Augment Code Integration

Easier option now available here: https://github.com/shedytee/Figma-MCP-Augment-Code-Guide-Local-HTTP-mode-/blob/main/README.md

GitHub license GitHub issues GitHub stars

This project shows how to connect a Model Context Protocol (MCP) server to the Figma API and integrate it with Augment Code to supercharge your development workflow.


✨ Features

βœ… Builds an MCP server that:

  • Queries Figma files
  • Exposes Figma data to an MCP-compatible interface
  • Integrates into Augment Code as a custom tool

βœ… Uses:


πŸ“¦ Setup Instructions

  1. Clone the repository

    git clone https://github.com/shedytee/mcp-figma-augmentcode-integration.git
    cd mcp-figma-augmentcode-integration
    
  2. Install dependencies

    Install the required NPM packages:

    npm install @modelcontextprotocol/sdk figma-js zod dotenv
    
  3. Configure environment variables

    cp .env.example .env
    

    Fill in:

    • FIGMA_TOKEN β†’ your Figma API token
    • FIGMA_FILE_ID β†’ your Figma file ID
    • MCP_PORT β†’ usually 3000
  4. Update package.json

    In your package.json, add "type": "module" at the top level and a start:mcp script under "scripts":

    {
      "name": "mcp-figma-augmentcode-integration",
      "version": "1.0.0",
    + "type": "module",
      "scripts": {
        "start:mcp": "node figma-mcp-server.js"
      },
      "dependencies": {
        "@modelcontextprotocol/sdk": "^1.17.1",
        "figma-js": "^1.16.1-0",
        "zod": "^3.25.76",
        "dotenv": "^17.2.1"
      }
    }
    
  5. Add startup log to figma-mcp-server.js

    Ensure your script ends with a console message so you see startup success. For example, after connecting:

    const transport = new StdioServerTransport();
    await server.connect(transport);
    + console.log(`MCP Server running on port ${MCP_PORT}`);
    
  6. Run the MCP server

    npm run start:mcp
    

    You should see:

    MCP Server running on port 3000
    

βš™οΈ Connect to Augment Code

  1. Open Augment Code β†’ Workspace Settings β†’ MCP

  2. Add a new MCP server:

    • Name: figma
    • Command:
      node figma-mcp-server.js
      
      (runs from your workspace root)
  3. Under Environment Variables, add:

    • FIGMA_TOKEN
    • FIGMA_FILE_ID
    • MCP_PORT
  4. Save and toggle ON the β€œfigma” server.
    Look for this in the logs:

    [dotenv@…] injecting env …
    MCP Server running on port 3000
    

    Once you see it, the icon will turn green.


πŸ’¬ Example Prompts

See prompts.md for ready-to-use chat prompts. Examples:

  • Ask figma to get the full file data.
  • Use figma to fetch the latest file from the Figma API.
  • Ask figma for details about the component named ButtonPrimary.
  • Use the figma tool to show all components in the design file.

πŸ—‚ Example Code

This repo includes figma-mcp-server.js, a working example of the MCP server wired to the Figma API.

To run locally:

npm run start:mcp

⚠ Important Notes

πŸ›‘οΈ Directories with spaces

If your workspace path includes spaces (e.g. My Projects), wrap the command argument in quotes:

node "figma-mcp-server.js"

β€”orβ€”
Move your project to a path without spaces to avoid quoting:

C:/Users/yourname/Dev/NoSpacesRepo/

πŸ”§ Troubleshooting

See troubleshooting.md for common issues and fixes.


🀝 Contributing

Got ideas, improvements, or questions?
Please open an issue or submit a pull request β€” contributions are welcome!

See CONTRIBUTING.md for guidelines.


πŸ“„ License

This project is licensed under the MIT License.


🌐 Links

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.