mcp-server-and-client
Verified Safeby DucLe-2005
Overview
This project serves as a learning example for implementing a Model Context Protocol (MCP) server and client using TypeScript.
Installation
npm run server:devEnvironment Variables
- GEMINI_API_KEY
Security Notes
The server parses JSON directly from LLM output for tools like 'create-random-user'. While basic cleaning is applied, robust validation against malformed or excessively large LLM-generated JSON is not explicitly detailed, which could lead to parsing errors or resource exhaustion. Additionally, the 'createUser' function directly writes user data (from LLM generation or user elicitation) to a local JSON file without comprehensive input validation beyond basic schema checks, posing a potential risk of data integrity issues or file bloat if malicious or malformed input is received.
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
An MCP server providing a set of mathematical tools (calculator functions) for remote execution via the Model Context Protocol.
mcp-typescript-starter
A feature-complete Model Context Protocol (MCP) server template in TypeScript demonstrating all major MCP features for AI assistant interaction.