MCPInstall
mcp_server_client_assessment logo

mcp_server_client_assessment

by hamzabarak hamzabarak/mcp_server_client_assessment

The mcpserverclientassessment is an MCP-based Client-Server System that processes client queries using Ollama LLM. It generates and executes system commands, returning the output. Built with FastAPI and aiohttp, it offers efficient command execution and seamless interaction between clients and the server.

READMEmain

MCP Client-Server System

Overview

This project implements an MCP-based Client-Server System where a client sends a query, the server processes it using Ollama LLM, generates a system command, executes it, and returns the output. The implementation uses FastAPI, FastMCP, aiohttp, and subprocess for command execution.

Installation

Prerequisites

Python 3.8+

Pip package manager

Ollama installed and running

MCP Python SDK installed

Setup

Clone the repository:

cd mcp_server_client_assessment

Install dependencies:

pip install -r requirements.txt

Start the server:

python server.py

Run the client:

python client.py