mcp-data-extractor
If you are the rightful owner of mcp-data-extractor and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol server that extracts embedded data from TypeScript/JavaScript source code into structured JSON configuration files.
The mcp-data-extractor is a Model Context Protocol server designed to extract embedded data such as internationalization (i18n) translations or key/value configurations from TypeScript/JavaScript source code. It converts these into structured JSON configuration files. The server supports both TypeScript and JavaScript files, including those with JSX, and can handle complex nested objects and arrays. It also offers SVG extraction capabilities, allowing developers to extract SVG components from React/TypeScript/JavaScript files into individual .svg files. The server replaces the content of the source file with a migration message after successful extraction, which is configurable. This feature helps track processed files and prevents duplicate extraction.
Features
- Data Extraction: Extracts string literals, template literals, and complex nested objects, preserving template variables and maintaining hierarchical key structure using dot notation.
- SVG Extraction: Extracts SVG components from React/TypeScript/JavaScript files, preserving SVG structure and attributes, and creates individual .svg files.
- Source File Replacement: Replaces source file content with a migration message after successful extraction, which is configurable.
- TypeScript and JavaScript Support: Handles both TypeScript and JavaScript files with JSX support.
- Configurable Extraction: Allows configuration to disable source file replacement and supports auto-approval for extraction tasks.
Tools
extract_data
Extracts data like i18n translations from source files.
extract_svg
Extracts SVG components into individual files.