LwXLabs.Mcp.Template.NodeJs
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LwXLabs.Mcp.Template.NodeJs Can you add 12 and 30?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LwXLabs.Mcp.Template.NodeJs
A standalone TypeScript MCP server template using Node.js 24, npm and the official MCP TypeScript SDK. Default stdio; optional local Streamable HTTP and MVC-style status page.
Create your own MCP
npm run create -- MyCompany.Example.Mcp MyCompany.Example.Mcp
cd MyCompany.Example.Mcp
npm ci
npm testThe generator renames the package, CLI, server and installer and assigns a fresh installer AppId. It excludes dependencies and build outputs.
Related MCP server: my-mcp-server
Run
npm ci
npm run build
node dist/index.js
node dist/index.js --httpStdio is launched by your MCP client. HTTP mode serves http://127.0.0.1:5189, health at /health and MCP at /mcp. Override the port with --http --port 5190.
Example tools: example.echo, example.add, example.status.
npm installation
npm pack
npm install -g lwxlabs-mcp-template-nodejs-0.1.0.tgz
lwx-mcp-nodejs --healthNo npm registry publication is required. Node.js 24 must be installed for this mode.
Windows installer
Requires Node.js 24, npm, PowerShell and Inno Setup 6.
./scripts/Build-Installer.ps1
./scripts/Test-Installer.ps1Setup is created in artifacts/installer/. The Windows x64 installer includes the Node runtime and production dependencies; recipients do not need Node or npm installed separately. Default location: %LOCALAPPDATA%\Programs\LwXLabs\LwXLabs.Mcp.Template.NodeJs. Configure the MCP client with the installed node.exe as command and the absolute installed dist/index.js as its argument. See example configuration.
Customize
src/tools/: MCP tool definitions.src/services/: application logic.src/models/: data contracts.src/controllers/,src/views/: local MVC interface.src/transports/: HTTP transport.tests/: unit and real protocol tests.
Run npm test. HTTP mode is local development only. Do not expose it to the internet without authentication, authorization, TLS and a security review. No private libraries, credentials or updater services are required.
Available Tools
3 toolsexample.addARead-onlyIdempotent
Adds two signed 32-bit integers without integer overflow.
Inputs: a (required), b (required).
example.echoARead-onlyIdempotent
Returns the supplied text unchanged (maximum 4096 characters).
Inputs: text (required).
example.statusARead-onlyIdempotent
Returns server identity and health status.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: text echo, integer addition, and server health/status. There is no plausible overlap or ambiguity between them.
All tool names follow the same predictable namespace.action pattern: example.echo, example.add, and example.status. The convention is fully consistent across the set.
Three tools is appropriate for a template/example MCP server intended to demonstrate basic capabilities. Each tool serves a distinct demonstrative purpose without unnecessary surface area.
For a template server, the surface covers representative examples of text handling, computation, and health/status. Minor gaps exist, such as additional example operations, but the stated template purpose is adequately served.
Maintenance
Related MCP Connectors
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Every app you build or share, and the tools to build more, over one MCP server.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA demonstration MCP server built in TypeScript that shows how to implement stdio-based communication for integration with MCP clients. Serves as a template for building custom MCP servers with strong typing and maintainability.ISC
- AlicenseBqualityDmaintenanceA TypeScript MCP server boilerplate providing example tools and resources for rapid development of custom Model Context Protocol servers.8ISC
- AlicenseBqualityDmaintenanceA TypeScript MCP server boilerplate providing example tools and resources for rapid development and testing of Model Context Protocol servers.7ISC
- AlicenseNot gradedqualityDmaintenanceProvides a starting template for building MCP servers with TypeScript, including examples of tools and resources to accelerate development.ISC