Navigate Select ESC Close

Understanding MCP From Scratch

2025-03-18 Science & Technology
131.0k
2.8k
109
LangChain
LangChain
194.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

The Model Context Protocol (MCP) is an open standardized protocol that connects AI models with various data sources and tools. It functions like a "USB-C port for AI applications," allowing LLMs to seamlessly interact with local files, databases, APIs, and custom tools. But, it can be challenging to understand. Here, we breakdown how MCP works, build an MCP server for LangGraph docs from scratch, and connect it to Claude, Cursor, and Windsurf. Video notes: https://mirror-feeling-d80.notion.site/MCP-From-Scratch-1b9808527b178040b5baf83a991ed3b2?pvs=4 Learn how to build agents on LangChain Academy: https://academy.langchain.com/?utm_medium=social&utm_source=youtube&utm_campaign=q4-2025_youtube-academy-links_aw Chapters: 00:00 - Introduction to MCP 00:21 - Demo: MCP Tool in Cursor 00:40 - Demo: MCP Tool in Windsurf 00:54 - Demo: MCP Tool in Claude Desktop 01:15 - Motivation for MCP 01:38 - Building a Tool from Scratch 02:00 - Loading LangGraph Docs and Creating a Vector Store 02:44 - Testing the Basic Vector Store Query 03:00 - Creating a LangChain Tool 03:22 - Binding Tools to LLMs 04:00 - Bridge to MCP: Connecting Tools to AI Applications 04:24 - MCP as a Client-Server Protocol 05:00 - How MCP Works with Host Applications 05:37 - Server Initialization by Host Applications 06:05 - Defining an MCP Server 06:41 - Adding Resources to MCP 07:05 - Running the MCP Inspector 07:27 - Testing Tools in the Inspector 08:06 - Configuring MCP Servers for Different Hosts 08:48 - Demo: MCP Tool in Cursor (Revisited) 09:10 - Demo: MCP Server in Windsurf (Revisited) 09:32 - Demo: MCP in Claude Desktop (Revisited) 09:56 - Using MCP Resources in Claude Desktop 10:19 - Recap: Augmenting LLMs with Context and Tools 10:57 - Conclusion and Final Thoughts

Top Comments (10)

@PaulRobello 2025-03-18

An example of binding an MCP tool to a Langchain call would be super cool

49 3 replies
@KailashThakur0z 2025-04-21

Lance’s videos are the only ones that i have to slow the speed down and pause and rewind constantly 😅. Great content btw. 🎉

23 1 replies
@sun_anshuman 2025-03-20

I was struggling with "What is this server and where is it hosted?" and you answered it exactly. Loved the video. Great job 🙌

17 2 replies
@youngchrisyang 2025-03-18

You know I'm waiting for this video from Langchain. Happier when I see it's Lance :)

8
@CharlotteLopez-n3i 2025-03-18

MCP is like a magic wand for LLMs. Can’t wait to build my own server and see it in action!

4
@nitinkapse 2025-03-20

Short and up to the mark. Time to test MCP at my end. Thank you!!!

1
@DaleRobichaud-s9p 2026-05-14

this was fantastic - yes, had to slow it down, take screenshots, but very, very helpful

0
@mbdr_ai 2025-03-19

Thank you for creating a comprehensive tutorial for how to use and create MCP servers.

0
@minhngo1867 2025-05-31

Awesome explanation, I've been looking for this content for a long time, Much appreciated !

0
@urd4651 2025-04-02

brilliant! thank you for sharing this!!! super helpful to put everything together and make it very clear.

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot