
Source Map Parser Mcp
io.github.MasonChowPublished by GitHub account MasonChowv1.3.2Updated Oct 24, 2026
Parse JavaScript error stack traces back to original source code using source maps
The publisher's own server: Parser Club
Overview
Parses JavaScript error stack traces back to original source code via source maps, returning the matching source lines and surrounding context.
- What you can do
- Parse stack traces: map line, column and source map URL to original source locations, singly or in batch
- Look up context: show original source code around a position in compiled or minified code
- Unpack sources: extract every source file and its content from a source map
- Read built-in usage guidance for the service
- When to use it
- Useful when debugging minified or bundled JavaScript and you want an assistant to turn production stack traces into readable original source with context, without opening the source maps by hand.
- Requirements
- Runs locally over stdio; needs Node.js 20 or newer (an experimental WebAssembly flag may be required on some Node 20 builds). Source map files must be reachable at the URLs passed to the tools. Optional environment variables SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE and SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE tune context lines and cache size.
Installation
In SourceWeft
- Open Source Map Parser Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[MseeP.ai Security Assessment Badge]
Source Map Parser
[Node Version] [npm] [Downloads] [Build Status] [codecov] [Image]
[Image]This project implements a WebAssembly-based Source Map parser that can map JavaScript error stack traces back to source code and extract relevant context information. Developers can easily map JavaScript error stack traces back to source code for quick problem identification and resolution. This documentation aims to help developers better understand and use this tool.
MCP Integration
Note: Requires Node.js 20+ support
Option 1: Run directly with NPX
Option 2: Download the build artifacts
Download the corresponding version of the build artifacts from the GitHub Release page, then run:
Use as an npm package (bring your own MCP server)
You can embed the tools into your own MCP server process and customize behavior.
Install:
Minimal server (TypeScript):
Build and Type Declarations
This project ships both ESM and CJS builds and a single bundled TypeScript declaration file.
- Build outputs:
- ESM:
dist/index.es.js - CJS:
dist/index.cjs.js - CLI entry:
dist/main.es.js - Types:
dist/index.d.ts(single bundled d.ts)
- ESM:
Quick build locally:
Using types in your project:
Runtime Parameter Configuration
System runtime parameters can be flexibly configured through environment variables to meet the needs of different scenarios
SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE: Sets the maximum memory space occupied by resource cache, default is 200MB. Adjusting this value appropriately can balance performance and memory usage.SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE: Defines the number of context code lines to display around the error location, default is 1 line. Increasing this value provides more context information, facilitating problem diagnosis.
Example:
Feature Overview
- Stack Parsing: Parse the corresponding source code location based on provided line number, column number, and Source Map file.
- Batch Processing: Support parsing multiple stack traces simultaneously and return batch results.
- Context Extraction: Extract context code for a specified number of lines to help developers better understand the environment where errors occur.
- Context Lookup: Look up original source code context for specific compiled code positions.
- Source Unpacking: Extract all source files and their content from source maps.
MCP Service Tool Description
operating_guide
Get usage instructions for the MCP service. Provides information on how to use the MCP service through chat interaction.
parse_stack
Parse stack information by providing stack traces and Source Map addresses.
Request Example
- stacks: Stack information including line number, column number, and Source Map address.
- line: Line number, required.
- column: Column number, required.
- sourceMapUrl: Source Map address, required.
Response Example
lookup_context
Look up original source code context for a specific line and column position in compiled/minified code.
Request Example
- line: The line number in the compiled code (1-based), required.
- column: The column number in the compiled code, required.
- sourceMapUrl: The URL of the source map file, required.
- contextLines: Number of context lines to include (default: 5), optional.
Response Example
unpack_sources
Extract all source files and their content from a source map.
Request Example
- sourceMapUrl: The URL of the source map file to unpack, required.
Response Example
Parsing Result Description
success: Indicates whether the parsing was successful.token: The Token object returned when parsing is successful, containing source code line number, column number, context code, and other information.error: Error information returned when parsing fails.
Example Run
System Prompt
According to actual needs, you can use system prompts to guide the model on how to parse stack information. For security or performance reasons, some teams may not want to expose Source Maps directly to the browser for parsing, but instead process the upload path of the Source Map. For example, converting the path bar-special.js to special/bar.js.map. In this case, you can instruct the model to perform path conversion through prompt rules.
Here is an example:
Runtime Example
Error Stack
FAQ
1. WebAssembly Module Loading Failure
If the tool returns the following error message, please troubleshoot as follows:
parser init error: WebAssembly.instantiate(): invalid value type 'externref', enable with --experimental-wasm-reftypes @+86
- Check Node.js Version: Ensure Node.js version is 20 or higher. If it's lower than 20, please upgrade Node.js.
- Enable Experimental Flag: If Node.js version is 20+ but you still encounter issues, use the following command to start the tool:
Local Development Guide
1. Install Dependencies
Ensure Node.js and npm are installed, then run the following command to install project dependencies:
2. Link MCP Service
Run the following command to start the MCP server:
Internal Logic Overview
1. Main File Description
stack_parser_js_sdk.js: JavaScript wrapper for the WebAssembly module, providing core stack parsing functionality.parser.ts: Main implementation of the parser, responsible for initializing the WebAssembly module, retrieving Source Map content, and parsing stack information.server.ts: Implementation of the MCP server, providing theparse_stacktool interface for external calls.
2. Modify Parsing Logic
To modify the parsing logic, edit the getSourceToken method in the parser.ts file.
3. Add New Tools
In the server.ts file, new tool interfaces can be added using the server.tool method.
Notes
- Source Map Files: Ensure that the provided Source Map file address is accessible and the file format is correct.
- Error Handling: During parsing, network errors, file format errors, and other issues may be encountered; it's recommended to implement proper error handling when making calls.
Contribution Guidelines
Contributions via Issues and Pull Requests are welcome to improve this project.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Source: README.md at commit 2c21e0b
Tools
0Version history
1- v1.3.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Parser integrations
Parser Club
club.parserOfficial publisher
Parser Club lets an assistant check and run paid data-collection tasks for Telegram, VKontakte, marketplaces and Russian registers, plus a free Telegram niche.

Map Parser
Published by GitHub account changzhiai
Parse Google Maps links into stops with coordinates. Geocode, route, and export.
x402 Payment Request Parser
Published by GitHub account mk-career-planning
x402 payment-request parser with a limited token list. Does not sign, approve or judge payments.

PDF to Markdown & Document Parser
Published by GitHub account fernandoguiraud16-coder
Apify-hosted MCP server that converts PDF, Word, Excel, PowerPoint and scanned documents into Markdown, tables and RAG chunks with OCR.

AIDataParser
Published by GitHub account shibley
AIDataParser is a hosted MCP server that turns PDFs, images and messy text into schema-guaranteed JSON, with a free trial extraction and credit-based paid par.