Back to Home
DucLe-2005 icon

mcp-server-and-client

Verified Safe

by DucLe-2005

Overview

This project serves as a learning example for implementing a Model Context Protocol (MCP) server and client using TypeScript.

Installation

Run Command
npm run server:dev

Environment 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

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2026-01-19

Tags

MCPTypeScriptAICLILearning