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
npm run server:devEnvironment 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
mcp-servers
A curated collection of Model Context Protocol (MCP) server configurations to integrate various developer tools and services with AI agents.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
mcp-basics
A minimal example of building an MCP client and server in Python for connecting AI models to external tools and data, demonstrating AI agent capabilities.
MCP_Server
This project provides a Model Context Protocol (MCP) server to expose specific tools or functions for AI models or agents to consume.