mcp-typescript-starter
Verified Safeby kirbah
Overview
This is a starter template for developing Model Context Protocol (MCP) servers that enable AI models to interact with custom tools, resources, and prompts via a class-based, type-safe architecture.
Installation
npm startSecurity Notes
The server implements robust input validation using Zod schemas for all tools and prompts, which is a critical security measure against malformed inputs. Centralized error handling and logging (`LoggerService`) are in place. Communication uses `StdioServerTransport`, which operates over standard I/O streams and does not open network ports directly in its default configuration. The logger sanitizes data, preventing accidental exposure in logs. Hardcoded secrets are avoided by using `dotenv/config`. No explicit `eval` or direct arbitrary command execution of user-provided strings is evident in the provided code snippets.
Similar Servers
frontmcp
The CodeCall plugin provides AgentScript-based meta-tools for orchestrating MCP tools, enabling programmatic discovery, description, execution, and invocation of server capabilities within a sandboxed JavaScript environment.
template-mcp-server
Provides a CLI tool and template to quickly get started building a Model Context Protocol (MCP) server using FastMCP, supporting both stdio and HTTP transports.
mcp-typescript-template
This project provides a foundational TypeScript template for developing remote Model Context Protocol (MCP) servers with robust tooling and best practices.
mcp-typescript-starter
A feature-complete Model Context Protocol (MCP) server template in TypeScript demonstrating all major MCP features for AI assistant interaction.