Skip to content
BEAD

go.mod Parser

Parse Go module files — module, go/toolchain version, requires (direct vs indirect), replace, exclude, retract.

Module
github.com/example/myapp
Go version
1.22
Toolchain
go1.22.4
Direct deps
3 / 5
Direct dependencies (3)
github.com/gin-gonic/ginv1.10.0
github.com/jackc/pgx/v5v5.5.5
go.uber.org/zapv1.27.0
Indirect dependencies (2)
github.com/bytedance/sonicv1.11.6
github.com/cespare/xxhash/v2v2.3.0
Replace directives
github.com/some/oldgithub.com/some/new v1.2.3
Excluded (1)
github.com/old/depv0.0.1
Retracted versions
  • v1.0.0
  • v1.0.1
</>Use this tool programmaticallycurl · JavaScript · MCP

Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.

curl
curl https://api.b-e-a-d.com/tools/go-mod-parser/run \
  -H "Content-Type: application/json" \
  -d '{
  "input": "your input here"
}'
JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/go-mod-parser/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "input": "your input here"
}),
});
const data = await res.json();
console.log(data.result);
MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
  "mcpServers": {
    "bead": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
    }
  }
}

# Then ask Claude to call:
mcp__bead__bead_go_mod_parser

Full reference: developer docs · OpenAPI spec

Directives

We parse module, go, toolchain, require, replace, exclude, and retract, including block forms (require ( … )) and trailing // indirect markers.

You might also like