Mcp_server_client_assessment

by hamzabarak

242 downloads
Not rated
GitHub

Description

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…

About

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…

Details

Author
hamzabarak
Downloads
242
Categories
Other

- Client sends queries, server processes via Ollama LLM
- Generates and executes system commands automatically
- Returns command output to the client
- Built with FastAPI, FastMCP, and aiohttp
- Uses subprocess for command execution

Prerequisites: Python 3.8+, Pip, Ollama installed and running, MCP Python SDK. Clone the repository, install dependencies with pip install -r requirements.txt, start the server with python server.py, then run the client with python client.py.

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.