sashagoebbels/mcp-server
3.2
If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The User Inventory MCP Server is a Model Context Protocol server designed to manage user data, including usernames, email addresses, and hardware inventory, with persistent storage using SQLite.
Tools
7
Resources
0
Prompts
0
User Inventory MCP Server
A Model Context Protocol (MCP) server for managing users with their usernames, email addresses, and hardware inventory.
Features
- Create, read, update, and delete users
- Store username, email address, and hardware inventory for each user
- Search users by username or email
- Query hardware inventory for specific users
- Persistent SQLite storage (data persists across server restarts)
Installation
pip install -r requirements.txt
Usage
Run the server:
python server.py
Add sample users:
python add_users.py
Database
The server uses SQLite for persistent storage. The database file users_inventory.db is created automatically in the same directory as the server.
Available Tools
- create_user - Create a new user with username, email, and hardware inventory
- get_user - Get user information by user ID
- list_users - List all users in the system
- search_users - Search users by username or email
- update_user - Update user information
- delete_user - Delete a user by ID
- get_hardware_inventory - Get hardware inventory for a specific user
Example Usage in GitHub Copilot CLI
- Add the MEC server to Copilot after starting copilot:
/mcp add - Run the script to install the fixtures:
python add_users.py - Answer all the questions. The server type is local, the server command is
python [/absolute/path]/server.py. - Start typing the commands:
orlist userswhich user does use a mac
Running the tests
There is a test implementation in pytest and you can call it with:
pytest -s