Source_map_parser
@MasonChow
About Source_map_parser
paser source map
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"source_map_parser": {
"command": "npx",
"args": [
"-y",
"source-map-parser-mcp"
]
}
}
}Tools
3# Parse Error Stack Trace This tool allows you to parse error stack traces by providing the following: - A downloadable source map URL. - The line and column numbers from the stack trace. The tool will map the provided stack trace information to the corresponding source code location using the source map. It also supports fetching additional context lines around the error location for better debugging. ## Parameters: - **stacks**: An array of stack trace objects, each containing: - **line**: The line number in the stack trace. - **column**: The column number in the stack trace. - **sourceMapUrl**: The URL of the source map file corresponding to the stack trace. - **ctxOffset** (optional): The number of additional context lines to include before and after the error location in the source code. Defaults to 5. ## Returns: - A JSON object containing the parsed stack trace information, including the mapped source code location and context lines. - If parsing fails, an error message will be returned for the corresponding stack trace.
# Lookup Source Code Context This tool looks up original source code context for a specific line and column position in compiled/minified code. ## Parameters: - **line**: The line number in the compiled code (1-based) - **column**: The column number in the compiled code - **sourceMapUrl**: The URL of the source map file - **contextLines** (optional): Number of context lines to include before and after the target line (default: 5) ## Returns: - A JSON object containing the source code context snippet with file path, target line info, and surrounding context lines - Returns null if the position cannot be mapped
# Unpack Source Map Sources This tool extracts all source files and their content from a source map. ## Parameters: - **sourceMapUrl**: The URL of the source map file to unpack ## Returns: - A JSON object containing: - **sources**: Object with source file paths as keys and their content as values - **sourceRoot**: The source root path from the source map - **file**: The original file name - **totalSources**: Total number of source files found
Overview
What is Source_map_parser?
Source_map_parser is a WebAssembly-based Source Map parser that maps JavaScript error stack traces back to source code and extracts relevant context information. It is designed for developers debugging minified or compiled JavaScript code.
How to use Source_map_parser?
Run it directly via NPX: npx -y source-map-parser-mcp@latest (requires Node.js 20+). Alternatively, install as an npm package and embed the tools into your own MCP server. Configure runtime parameters through environment variables SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE and SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE.
Key features of Source_map_parser
- Parses stack traces to original source code locations.
- Supports batch processing of multiple stack traces.
- Extracts surrounding context code lines.
- Looks up original source context for compiled positions.
- Unpacks all source files from a source map.
Use cases of Source_map_parser
- Debugging JavaScript errors in production by mapping minified stack traces.
- Analyzing crash reports that include line/column numbers from bundled code.
- Extracting original source files from source maps for code review.
- Integrating into error monitoring tools for automated deobfuscation.
FAQ from Source_map_parser
WebAssembly Module Loading Failure?
Ensure Node.js version is 20 or higher. If still failing, enable the experimental WebAssembly reftypes flag by starting with npx --node-arg=--experimental-wasm-reftypes -y source-map-parser-mcp@latest.
What runtime dependencies does Source_map_parser have?
It requires Node.js 20+. The server can be run via NPX or installed as an npm package. No other external services are required.
Where are source maps resolved from?
The tool fetches source maps from URLs you provide. Ensure the source map URL is accessible and the file format is correct.
What transport does the MCP server use?
Source_map_parser uses the stdio transport (StdioServerTransport). There is no built-in authentication; it relies on the host environment.
How can I configure cache and context lines?
Set environment variables before starting: SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE (default 200MB) for cache size, and `SOURCE_M
Frequently asked questions
WebAssembly Module Loading Failure?
Ensure Node.js version is 20 or higher. If still failing, enable the experimental WebAssembly reftypes flag by starting with `npx --node-arg=--experimental-wasm-reftypes -y source-map-parser-mcp@latest`.
What runtime dependencies does Source_map_parser have?
It requires Node.js 20+. The server can be run via NPX or installed as an npm package. No other external services are required.
Where are source maps resolved from?
The tool fetches source maps from URLs you provide. Ensure the source map URL is accessible and the file format is correct.
What transport does the MCP server use?
Source_map_parser uses the stdio transport (StdioServerTransport). There is no built-in authentication; it relies on the host environment.
How can I configure cache and context lines?
Set environment variables before starting: `SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE` (default 200MB) for cache size, and `SOURCE_M
Basic information
More Media & Design MCP servers
Designesy
LE-VAIDesign-system contract verification & scoring for AI agents. 40-check engine (95.3% A self-score), DTCG token validation, WCAG 2.2 a11y, Lottie motion. 17 tools, no auth.

uxgen
uxgenA library of conversion components for e-commerce, built on A/B tested mechanics and handed straight to your coding agent. 65 pieces drawn from mechanics that have been A/B tested in real stores: cart drawer with the ups

Constants
Constants AIOne workspace of tools for Claude and ChatGPT. Connect apps, generate video, music, and ads, and build new tools on demand. Generate and publish ad creative directly from your assistant.
Floors.live — Event Floor Plan & Seating Designer
HakolsoundMCP server for Floors.live — design event floor plans, manage guest lists, and run intelligent seating assignments from Claude, ChatGPT, or Cursor. 32 tools.
YouTube MCP Server
anaisbettsA Model-Context Protocol Server for YouTube
Comments