
Source Map Parser Mcp
If you're debugging minified JavaScript in production, this server maps error stack traces back to their original source using source maps. It exposes three main tools: parse_stack for translating line and column numbers from compiled code to source files with context, lookup_context for inspecting specific positions, and unpack_sources for extracting all original files from a map. You point it at a source map URL along with line and column numbers from an error stack, and it returns the original file path plus surrounding lines of code. The parser runs in WebAssembly for speed and includes configurable context window size. Handles both single traces and batch operations. Works over stdio transport with npx or as an embeddable npm package if you're building your own MCP server.
- GitHub stars
- 2
- tools
- 4
- transport
- STDIO
- env vars
- 2
- last updated
- Sep 10, 2025
Tools
4 toolsPublic tool metadata for what this MCP can expose to an agent.
operating_guideGet usage instructions for the MCP service. Provides information on how to use the MCP service through chat interaction.
Get usage instructions for the MCP service. Provides information on how to use the MCP service through chat interaction.
No parameter schema in public metadata yet.
parse_stackParse stack information by providing stack traces and Source Map addresses.
Parse stack information by providing stack traces and Source Map addresses.
No parameter schema in public metadata yet.
lookup_contextLook up original source code context for a specific line and column position in compiled/minified code.
Look up original source code context for a specific line and column position in compiled/minified code.
No parameter schema in public metadata yet.
unpack_sourcesExtract all source files and their content from a source map.
Extract all source files and their content from a source map.
No parameter schema in public metadata yet.
Sponsors
Configuration
SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINEContext lines around error locations in source code
SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZEMaximum memory cache size in MB for source maps
Readme
Details
- Repository
- github.com/masonchow/source-map-parser-mcp
- Package
source-map-parser-mcp- Transport
- STDIO
- Registry
- MCP registry, active
