my-mcp-server
Verified Safeby you0best
Overview
This project serves as a TypeScript boilerplate for developing Model Context Protocol (MCP) servers, providing various AI-enabled and utility tools for integration with AI agents.
Installation
node build/index.jsEnvironment Variables
- HF_TOKEN
Security Notes
The server includes an image generation tool that relies on an external Hugging Face API. The API token (`hfToken`) is loaded from configuration, which is a good practice, preventing hardcoded credentials. No direct 'eval' or malicious code execution patterns were found. The 'code_review' prompt generates text for an external LLM, not executing code locally. The `express-rate-limit` dependency in `package-lock.json` suggests network security considerations, but the core server logic provided here uses a `StdioServerTransport` in the example, which is generally safer for local process communication. Overall, the server appears robust for a boilerplate, but users must ensure their `hfToken` is secured and be aware of potential large data transfers for image generation.
Similar Servers
boilerplate-mcp-server
Provides a production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript to connect AI assistants with external APIs and data sources, exemplified by an IP geolocation tool.
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.
my-mcp-server
A TypeScript boilerplate server implementing the Model Context Protocol (MCP) SDK, offering various tools like greeting, calculation, time, AI image generation, and a code review prompt, along with a server information resource.