Welcome to my personal learning repository for Model Context Protocol (MCP) and related Generative AI (GenAI) concepts. This repo includes:
- Notes and insights on MCP & GenAI
- Code implementations via cookbooks
- Links to external resources (Notion pages & courses)
Understand the motivation and benefits of using MCP:
Explore the design and components of MCP:
Hands-on examples using function tool calling with different providers:
-
🤖 ChatBot using Anthropic
tool_calling_anthropic_chatbot.ipynb -
🤖 ChatBot using OpenAI
tool_calling_openai_chatbot.ipynb
Hands-on guide to creating an MCP server:
- 🖥️ Creating an MCP Server
mcp_server.ipynb- This example aligns with exposing the tools via the MCP server.
Hands-on guide to creating an MCP client:
- 🖥️ Creating an MCP Client
mcp_client.ipynb- This example aligns with consuming the tools via the MCP client. Additionally, They contains the steps to run the MCP client and interact with the MCP server using LLMs.
Hands-on guide to connecting to reference MCP servers:
- 🔗 Connecting to Reference MCP Servers
connect_the_reference_mcp_servers.ipynb- This example demonstrates how to connect to various reference MCP servers likefilesystems,research_papers, andfetch.
Hands-on guide to using MCP resources and prompts:
- 📚 Using MCP Resources and Prompts
prompts_and_resources_with_mcp.ipynb- This example shows how to run the MCP server and client, explore available tools, list and fetch resources, view all prompts, and use prompts with arguments to get results.
Contributions Welcome!
If you’d like to add examples using other providers or open-source models, feel free to open a pull request. I’ll review and merge it.
I’m learning MCP through a free course by DeepLearning.AI and Anthropic (creators of MCP):
MCP Course – Build Rich Context AI Apps
Note
This repository is a work in progress. More content and examples will be added regularly.
Tip
Use the Notion links & MCP Cookbooks above for deep dives and refer to them for practical code.