grafta for LangChain
io.github.n0ss4/grafta
Talk to any Figma file with your AI: ask what's in it, change it, or turn it into code.
client:LangChain
transport:stdio
runtime:npm
Install grafta in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"grafta": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "grafta"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs