MCP Client-Server System logo

MCP Client-Server System

by hamzabarak

This project implements an MCP-based Client-Server System. The server processes client queries using Ollama LLM, generates and executes system commands, and returns the output.

View on GitHub

Last updated: N/A

What is MCP Client-Server System?

This is an MCP-based Client-Server System. It allows a client to send a query to a server, which then uses Ollama LLM to process the query, generate a system command, execute it, and return the output to the client.

How to use MCP Client-Server System?

  1. Clone the repository: git clone <repository_url> and cd mcp_server_client_assessment. 2. Install dependencies: pip install -r requirements.txt. 3. Ensure Ollama is installed and running. 4. Start the server: python server.py. 5. Run the client: python client.py.

Key features of MCP Client-Server System

  • MCP communication

  • Ollama LLM integration

  • System command execution

  • FastAPI framework

  • Asynchronous operations (aiohttp)

  • Subprocess management

Use cases of MCP Client-Server System

  • Remote command execution

  • Natural language interface to system commands

  • Automated system administration

  • Integration with LLM-powered workflows

FAQ from MCP Client-Server System

What is MCP?

MCP is a communication protocol used for client-server interaction.

What is Ollama?

Ollama is a framework for running large language models locally.

What dependencies are required?

Python 3.8+, Pip, Ollama, and the packages listed in requirements.txt.

How do I install the dependencies?

Use the command pip install -r requirements.txt.

How do I start the server?

Run the command python server.py.