Model Context Protocol 102 (MCP-102) - API Tutorial with Jupyter Notebook
What is this? A hands-on tutorial teaching Python API fundamentals (requests, JSON, error handling) through a fictional MCP endpoint. No external API key required—just run the notebook to learn the patterns.
📌 Overview
This repository is a beginner-friendly tutorial for working with MCP APIs using Jupyter Notebook.
You'll learn how to:
- Set up a Python virtual environment (
.venv). - Use Jupyter Notebook for API requests and data analysis.
- Follow best practices for project structure and Git version control.
🚀 Getting Started
1️⃣ Clone the Repository
git clone https://github.com/itprodirect/Model-Context-Protocol-102.git
cd Model-Context-Protocol-102
2️⃣ Create and Activate a Virtual Environment
- Mac/Linux
python -m venv .venv source .venv/bin/activate - Windows (CMD)
python -m venv .venv .venv\Scripts\activate - Windows (PowerShell)
python -m venv .venv .venv\Scripts\Activate.ps1
3️⃣ Install Dependencies
pip install -r requirements.txt
4️⃣ Launch Jupyter Notebook
jupyter notebook
5️⃣ Open the Notebook
- Inside Jupyter, open
Model-Context-Protocol-102.ipynband follow the tutorial.
📂 Repository Structure
Model-Context-Protocol-102/
├── .gitignore
├── Model-Context-Protocol-102.ipynb # Main Jupyter Notebook tutorial
├── LICENSE # MIT License
├── RUNBOOK.md # Windows quick-start script
├── requirements.txt # List of dependencies
└── .venv/ # Virtual environment (not pushed to GitHub)
🔥 Contributions & Issues
Have ideas for improvements or found a bug?
Feel free to submit issues or pull requests. Let's build together! 🚀
📜 License
This project is MIT Licensed – you can modify and distribute it freely.
