Source MCP Server

Parse JavaScript error stack traces back to original source code using source maps

Local serverstdioTypeScript

What is the Source MCP Server?

Parse JavaScript error stack traces back to original source code using source maps

The short version

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
operating_guideGet usage instructions for the MCP service. Provides information on how to use the MCP service through chat interaction.
parse_stackParse stack information by providing stack traces and Source Map addresses.
lookup_contextLook up original source code context for a specific line and column position in compiled/minified code.
unpack_sourcesExtract all source files and their content from a source map.

How to install the Source MCP Server

{
  "mcpServers": {
    "source-map-parser": {
      "command": "npx",
      "args": ["-y", "source-map-parser-mcp"],
      "env": {
        "SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZE": "your-value",
        "SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SOURCE_MAP_PARSER_RESOURCE_CACHE_MAX_SIZEConfiguration value read at startup.Optional
SOURCE_MAP_PARSER_CONTEXT_OFFSET_LINEConfiguration value read at startup.Optional

Example prompts to try

  • “Use Source to operating guide.”
  • “Use Source to parse stack.”
  • “Use Source to lookup context.”

Frequently asked questions

Parse JavaScript error stack traces back to original source code using source maps Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.