About Client
Client is an MCP server published by AkshatAmeria in the Developer Tools category: mCP server: Client.
The repository has 1 stars and 0 forks, with the last commit 12 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/AkshatAmeria/mcp_server_clientThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (2)
create-random-userGenerate and save a fake user using AI
Parameters not published.
create-userAdd a new user with name, email, address, and phone
Parameters not published.
Ask AI
Ask AI about Client
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 8 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
MCP User Management System
A practical implementation of the Model Context Protocol (MCP) demonstrating a client-server architecture for user management with AI-powered query capabilities.
📖 What is MCP?
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of it as a universal connector between your AI models and various data sources or tools.
Key Concepts:
- MCP Server: Exposes resources (data), tools (actions), and prompts to clients
- MCP Client: Connects to servers and uses their capabilities
- Resources: Read-only data sources (like database queries)
- Tools: Executable functions that can modify state
- Prompts: Reusable prompt templates
This project demonstrates all these concepts through a simple user management system.
🎯 What This Project Does
This repository contains:
-
MCP Server (
server.ts): Manages a user database with:- Resources to read user data
- Tools to create users (manually or with AI-generated fake data)
- Prompts for generating fake user profiles
-
MCP Client (
client.ts): Interactive CLI that lets you:- Query the system using natural language (AI-powered)
- Call tools directly
- Read resources
- Use prompts
- Everything integrated with Google's Gemini AI model
🚀 Getting Started
Prerequisites
- Node.js (v18 or higher)
- npm or yarn
- A Google Gemini API key (Get one here)
Installation
-
Clone the repository
git clone <your-repo-url> cd <your-repo-name> -
Install dependencies
npm install -
Set up environment variables
Create a
.envfile in the root directory:GEMINI_API_KEY=your_gemini_api_key_here -
Build the project
npm run build
Running the Application
-
Start the client
node build/client.js -
Choose an option from the menu:
- Query (AI-powered): Ask questions in natural language (e.g., "Create a user named John with email john@example.com")
- Call a Tool: Manually execute tools like creating users
- Read a Resource: View all users or specific user details
- Use a Prompt: Generate fake user data based on templates
- Exit: Close the application
📁 Project Structure
├── src/
│ ├── client.ts # MCP client implementation
│ ├── server.ts # MCP server implementation
│ └── data/
│ └── users.json # User database (auto-created)
├── build/ # Compiled JavaScript files
├── .env # Environment variables
├── package.json
└── README.md
🔧 Available Features
Resources
- Get All Users (
users://all): Retrieve all users from the database - Get User Details (
users://{userId}/profile): Get specific user information
Tools
- create-user: Add a new user with name, email, address, and phone
- create-random-user: Generate and save a fake user using AI
Prompts
- generate-fake-user: Template for creating fake user data based on a name
💡 Example Usage
Using AI Query
What would you like to do? > Query (AI-powered)
Enter your query: > Create a new user named Alice with email alice@example.com
Reading All Users
What would you like to do? > Read a Resource
Select a resource: > Users (users://all)
Creating a Random User
What would you like to do? > Call a Tool
Select a tool: > Create Random User
🛠️ Development
Build the project
npm run build
Watch mode (auto-rebuild on changes)
npm run build -- --watch
📦 Dependencies
@ai-sdk/google: Google Gemini AI integration@modelcontextprotocol/sdk: MCP protocol implementationai: Vercel AI SDK for unified AI interactions@inquirer/prompts: Interactive CLI promptszod: Schema validationdotenv: Environment variable management
🤝 Contributing
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
📄 License
[Add your license here]
🔗 Resources
⚠️ Notes
- The user database is stored in
src/data/users.jsonand persists between sessions - User IDs are auto-incremented
- The server uses stdio transport for communication
- All AI operations use Google's Gemini 2.0 Flash model
README fetched from the repository 8 days ago. The original is authoritative.