jstoppa/mcp_example
0
1---2title: Model Context Protocol (MCP) example3emoji: ๐4colorFrom: blue5colorTo: purple6sdk: docker7sdk_version: "3.11"8app_file: mcp_task_client.py9pinned: false10license: mit11short_description: MCP Task Manager CLI12---13 14# Model Context Protocol (MCP) Example Implementation15 16This repository demonstrates the implementation of the Model Context Protocol (MCP), a standardized approach for managing context in AI/ML models.17 18To get more details, look at the post [How to create an MCP server and client with an LLM](https://jstoppa.com/posts/how-to-create-a-model-context-protocol-mcp-to-give-context-to-an-llm/post/)19 20## Overview21 22MCP (Model Context Protocol) is a protocol designed to standardize how context is handled when working with AI/ML models. This example repository shows how to implement and use MCP in your projects.23 24## Getting Started25 26### Prerequisites27 28- Python 3.8 or higher29- pip (Python package installer)30 31### Setup Virtual Environment32 33#### Windows34First, open Command Prompt and follow these steps:35 361. Create and navigate to your project directory:37```bash38cd mcp_example39```40 412. Create a virtual environment:42```bash43python -m venv app44```45 463. Activate the virtual environment:47```bash48venv\Scripts\activate49```50 514. Your prompt should now show "(venv)" at the beginning, indicating the virtual environment is active.52 535. Install required packages:54```bash55pip install -r requirements.txt56```57 58#### macOS59Open Terminal and follow these steps:60 611. Create and navigate to your project directory:62```bash63mkdir mcp_example64cd mcp_example65```66 672. Create a virtual environment:68```bash69python3 -m venv venv70```71 723. Activate the virtual environment:73```bash74source venv/bin/activate75```76 774. Your prompt should now show "(venv)" at the beginning, indicating the virtual environment is active.78 795. Install required packages:80```bash81pip install -r requirements.txt82```83 