Sourcemap MCP Server

MCP server that decodes minified production stack traces back to original TypeScript source files, lines, and columns using source maps.

Local serverstdioTypeScript

What is the Sourcemap MCP Server?

MCP server that decodes minified production stack traces back to original TypeScript source files, lines, and columns using source maps.

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
retrace_stackDecode a minified stack trace back to original TypeScript source locations. Pass the raw stack trace and the directory containing your .js.map files.
retrieve_code_contextShow the original source lines surrounding a mapped error location — with line numbers and a column pointer.
audit_sourcemap_matchValidate that .map files in your dist directory are present and point to source files that actually exist on disk. Catches stale or missing maps before deployment.

How to install the Sourcemap MCP Server

{
  "mcpServers": {
    "sourcemap-retrace": {
      "command": "npx",
      "args": [
        "-y",
        "sourcemap-retrace-mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Sourcemap to retrace stack.”
  • “Use Sourcemap to retrieve code context.”
  • “Use Sourcemap to audit sourcemap match.”

Frequently asked questions

MCP server that decodes minified production stack traces back to original TypeScript source files, lines, and columns 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.