Skip to main content
Glama
Parisa-Reza

PC-health-checking-MCP

by Parisa-Reza

🖥️ PC Health Checker Assistant using MCP

An AI-powered PC Health Assistant built using the Model Context Protocol (MCP), LangChain, and Google Gemini. Developed a MCP server from scratch using the official Python MCP SDK to enable AI-agent interaction with local system resources, demonstrating the complete MCP client-server architecture.


Quick Preview

Project Objective

The objective of this project is to demonstrate how an AI agent can communicate with a custom-built MCP Server to access operating system information through standardized tools.

This project serves as a beginner-friendly implementation of:

  • Model Context Protocol (MCP)

  • MCP Server

  • MCP Client

  • LangChain Agents

  • Gemini Tool Calling

  • AI + System Integration


Technology Stack

Category

Technology

Programming Language

Python 3.12

AI Framework

LangChain

LLM

Google Gemini 3,1 Flash Lite

Protocol

Model Context Protocol (MCP)

MCP SDK

Official MCP Python SDK

System Monitoring

psutil

OS Information

platform

Environment Variables

python-dotenv


Features

  • Check CPU Usage

  • Check Memory Usage

  • Check Disk Usage

  • Retrieve Operating System Information

  • Natural Language Interaction

  • Custom MCP Server built from scratch

  • LangChain Agent integrated with Gemini

  • Modular architecture


Project Architecture

                         User
                           │
                           ▼
                 Natural Language Query
                           │
                           ▼
                      main.py
                           │
                           ▼
                LangChain Agent
                           │
                           ▼
                  Google Gemini
                           │
          Chooses Appropriate Tool
                           │
                           ▼
               LangChain Tool Wrapper
                           │
                           ▼
                     MCP Client
                           │
═══════════════════════════════════════
          Model Context Protocol
═══════════════════════════════════════
                           │
                           ▼
                     MCP Server
                           │
                           ▼
                  System Tools
                           │
                           ▼
              psutil / platform
                           │
                           ▼
                  Operating System

Example Conversation

User

Show me the operating system information.

Assistant

Operating System : Linux

OS Version : 7.0.0-28-generic

Architecture : x86_64

CPU Cores : 2

Logical Processors : 4

Python Version : 3.12.3

Learning Outcomes

By completing this project I have understand:

  • What is Model Context Protocol (MCP)

  • How MCP Server works

  • How MCP Client communicates with an MCP Server

  • How LangChain integrates with MCP

  • How Gemini performs tool selection

  • Building AI agents with external tools

  • Designing modular AI architectures


Installation

Clone the Repository

git clone https://github.com/Parisa-Reza/PC-health-checking-MCP.git

cd PC-health-MCP

Create Virtual Environment

Linux

python3 -m venv venv

source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Create Environment File

Create a file named

.env

Add your Gemini API key.


Running the Project

Run the application.

python main.py

Example:

You:

How much CPU am I using?

License

This project is intended for educational and learning purposes.

-
license - not tested
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Parisa-Reza/PC-health-checking-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server