Skip to main content

TypeScript MCP server

An Express server on the MCP TypeScript SDK with one tool, protected by LumoAuth.

StarterDraftView source
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
Works with
JavaScript / TypeScriptMCP TypeScript SDKExpress

What you get​

  • auth.router() for discovery and auth.protect() on the MCP route.
  • A tool that reads the caller.

Create it​

npm install @lumoauth/mcp @modelcontextprotocol/sdk express

Then add the server file of the quick start.

Settings​

VariableValue
LUMOAUTH_ORG_IDYour organization, for example acme-corp.
LUMOAUTH_MCP_SERVER_IDThe ID of the registered server, mcp_....

Next steps​