Back to Home
pierrelouistheron icon

mcp-server-template-nodejs-19

Verified Safe

by pierrelouistheron

Overview

A TypeScript template for building Model Context Protocol (MCP) servers to enable communication with AI assistants and other MCP clients.

Installation

Run Command
npm run start

Environment Variables

  • MCP_HTTP_PORT

Security Notes

The server uses Express.js and the Model Context Protocol SDK. Input validation for tools and prompts is handled via Zod schemas, which is a good practice to prevent common injection vulnerabilities. Environment variables are loaded using `dotenv`, promoting separation of configuration. No hardcoded secrets, direct `eval` of user input, or obvious insecure patterns were found in the provided source code. The main `/mcp` endpoint explicitly disallows GET and DELETE requests, focusing on POST for protocol communication. This template provides a good, secure starting point, but custom logic added by developers will require careful security review.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens25
Stars0
Forks0
Last Update2025-12-02

Tags

MCPAI IntegrationNode.jsTypeScriptAPI Server