Back to Home
khlanna icon

MCP-client-server

by khlanna

Overview

This repository demonstrates an interactive client-server application built using the Model Context Protocol (MCP) SDK, allowing users to interact with AI-powered tools, resources, and prompts, primarily for data management and generative AI tasks.

Installation

Run Command
npm run server:dev

Environment Variables

  • GEMINI_API_KEY

Security Notes

The server includes tools (`create-user`, `create-random-user`) that perform direct file system writes to `src/data/users.json` based on user input or AI-generated content. While limited to a JSON file in a local demonstration, this pattern is a significant security risk as uncontrolled inputs could lead to data corruption, resource exhaustion (e.g., excessively large files), or other local file system vulnerabilities if the application were used in a less controlled environment or with different file paths.

Similar Servers

Stats

Interest Score0
Security Score5
Cost ClassMedium
Avg Tokens250
Stars0
Forks0
Last Update2025-11-27

Tags

AIModel Context ProtocolClient-ServerGenerative AITooling