npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

figma-to-markdown-mcp

v2.0.0

Published

MCP bridge that fetches Figma MCP design context internally and returns compacted Markdown for agents

Readme

figma-to-markdown-mcp

Languages: English | 한국어

Current version: 2.0.0

figma-to-markdown-mcp is an MCP server for Figma-link workflows. It fetches Figma design context internally, compacts it inside the server, and returns reduced Markdown to the calling agent instead of the full upstream payload.

What It Is

This project is for teams that want agents to work from Figma node URLs without exposing the full upstream Figma MCP payload to the caller model whenever the bridge can safely handle the request.

The intended flow is simple:

  1. A user gives an agent a Figma node URL.
  2. The agent calls get_figma_as_markdown.
  3. This server fetches Figma context internally.
  4. The server compacts the upstream result.
  5. The agent receives reduced Markdown and works from that output.

Why Use It

The main reason to use this server is token reduction.

Raw Figma MCP responses can be large enough to consume a meaningful part of the caller model context before implementation even begins. This bridge keeps that upstream payload inside the server whenever possible, compacts it first, and only returns the reduced result to the agent.

  • Lower token usage for Figma-link prompts
  • Smaller model-context footprint before implementation starts
  • Cleaner implementation input for agents
  • Less raw upstream noise in caller context
  • A built-in fallback path when the bridge cannot safely complete

How It Works

This server sits between your agent and the local Figma Desktop MCP server.

User prompt with Figma link
  -> Agent calls get_figma_as_markdown
  -> figma-to-markdown-mcp connects to local Figma Desktop MCP
  -> get_design_context / get_metadata
  -> internal compaction
  -> compacted Markdown returned to the agent

The public entrypoint is get_figma_as_markdown.

  • figma_url: required full Figma node URL
  • include_metadata: optional, default true
  • max_output_chars: optional explicit output budget; if omitted, the bridge does not force truncation

When the bridge succeeds, it returns compacted Markdown. When the bridge cannot safely fetch or compact the node, it returns a fallback handoff so the agent can continue with standard Figma MCP tools directly.

Example URL shape:

https://www.figma.com/design/FILE_KEY/FILE_NAME?node-id=NODE_ID&m=dev

Requirements

To use the Figma-link bridge flow, you need:

  • Figma Desktop
  • Dev Mode enabled in Figma Desktop
  • Desktop MCP server enabled in Figma Desktop
  • Node.js 18+

Default upstream Figma MCP endpoint:

http://127.0.0.1:3845/mcp

Override with:

FIGMA_MCP_URL

Installation

Install globally:

npm install -g figma-to-markdown-mcp

Or run with npx:

npx figma-to-markdown-mcp

MCP Client Registration

Register this server in your MCP client.

Example using npx:

{
  "mcpServers": {
    "figma-to-markdown": {
      "command": "npx",
      "args": ["-y", "figma-to-markdown-mcp"]
    }
  }
}

Example using a global install:

{
  "mcpServers": {
    "figma-to-markdown": {
      "command": "figma-to-markdown-mcp",
      "args": []
    }
  }
}

Your client may use JSON, TOML, or another config format, but the command registration model is the same.

How To Use It

  1. Open Figma Desktop and enable Dev Mode and the desktop MCP server.
  2. Register figma-to-markdown-mcp in your MCP client.
  3. Give your agent a Figma node URL.
  4. Have the agent call get_figma_as_markdown first.
  5. Use the returned compacted Markdown for implementation, inspection, or summarization.
  6. If the server returns a fallback handoff, continue with the standard Figma MCP tools for the same node.

In practice:

  • Small and medium components usually return compacted Markdown directly.
  • Large screens can still return larger output when needed.
  • Only set max_output_chars when you intentionally want a hard output budget.

Limitations

  • Final tool routing still depends on the MCP host or agent. This server can strongly guide usage, but it cannot forcibly override host-side routing.
  • When the bridge cannot safely complete a request, it returns a compact fallback handoff instead of passing raw upstream payloads through this server response.

Other Information

  • Release history: CHANGELOG.md
  • Source repository: https://github.com/s9hn/figma-to-markdown-mcp
  • Contributions: issues and pull requests are welcome on GitHub
  • Issues: GitHub Issues
  • License: MIT