Back to Home
nickytonline icon

mcp-typescript-template

Verified Safe

by nickytonline

Overview

This server acts as a template for building remote Model Context Protocol (MCP) servers using TypeScript, handling MCP tool registration and session management over HTTP.

Installation

Run Command
npm start

Environment Variables

  • PORT
  • NODE_ENV
  • SERVER_NAME
  • SERVER_VERSION
  • LOG_LEVEL

Security Notes

The server uses Express for its HTTP transport with proper JSON body parsing. Session IDs are randomly generated UUIDs, and generic error messages are returned on internal server errors, preventing information leakage. Configuration is externalized via environment variables. Input validation for tools is handled by Zod schemas. No 'eval' or other obviously malicious patterns were identified in the provided code.

Similar Servers

Stats

Interest Score50
Security Score9
Cost ClassLow
Avg Tokens100
Stars49
Forks9
Last Update2025-12-04

Tags

MCPTypeScriptServerAPITemplate