scala-mcp

[md]DNS MCP server

modules/example-dns-mcp · HTTP + SSE · Scala.js (Node.js) · port 8053

A Scala.js server running on Node.js, demonstrating how to wrap Node.js callback-based APIs (dns module) into cats-effect IO via IO.async_. Uses the HTTP transport, which allows concurrent requests — a good fit for the async nature of Node.js.

Build and run

# Link the Scala.js output
sbt exampleDns/fastLinkJS

# Run on Node.js
node modules/example-dns-mcp/target/scala-3.3.4/example-dns-mcp-fastopt/main.js
# Server starts on http://0.0.0.0:8053

Configure in Claude Code

.mcp.json:

{
  "mcpServers": {
    "dns": {
      "type": "streamable-http",
      "url": "http://localhost:8053/mcp"
    }
  }
}