convert_svg_to_react
Convert SVG content or file to React component using SVGR
Turn an SVG into a React component, shaped the way your codebase wants it.
LABSCO SUMMARY
One tool, but it carries SVGR's whole option surface, so what comes back is already in your project's dialect — typed or not, memoised or not, formatted the way the repository formats things. The paste-and-clean-up pass disappears.
A single-tool MCP server that runs SVGR. Hand it raw SVG and it returns React component source, with SVGR's configuration surface exposed so the output matches your project.
npx on your PATH. No account and no key.
One command — npx svgr-mcp@latest
USE CASES
Paste the SVG, name the component, take the JSX back. The tidying you would otherwise do by hand — attribute renaming, prop forwarding — is a configuration option rather than an edit.
Ask for TypeScript output and the component arrives with its types, so it drops in without a follow-up pass to satisfy the compiler.
The native option rewrites every SVG node for React Native, which is the part that makes a web icon unusable on mobile if you do it by hand.
Run SVGO over the source first and Prettier over the result, so what lands in the repository is both smaller and formatted like everything around it.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
convert_svg_to_reactConvert SVG content or file to React component using SVGR
BEFORE YOU INSTALL
1 tool when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"svgr-mcp": {
"command": "npx",
"args": [
"svgr-mcp@latest"
]
}
}
}npx svgr-mcp@latest