Loading video...

Video Failed to Load

Go Home

Here's how to build an MCP server with a single TypeScript file, and connect it to Claude Code. No build step. No bullshit. Totally transformative.

254,095 views • 1 year ago •via X (Twitter)

11 Comments

Matt Pocock's profile picture
Matt Pocock1 year ago

Here's the code, and a link for sharing outside of X.

Christian Esmann's profile picture
Christian Esmann1 year ago

I just launched an all-in-one template for cross-platform development, based on the stack I use myself everyday. Expo, NextJS, TypeScript, Tailwind, Firebase, AppsFlyer, Authentication, Analytics, In-App Purchases, Stripe and a lot more, setup by default.

Tom Hopkins's profile picture
Tom Hopkins1 year ago

after reading their docs and some thought, it's just tool calling? the analog that works best for me is that MCP is like an LSP.

Matt Pocock's profile picture
Matt Pocock1 year ago

I like Anthropic's analogy that MCP is like a USB - just a way of connecting things together

Justin Reidy's profile picture
Justin Reidy1 year ago

@jhooks This is great, thanks for sharing

Jean-Paul's profile picture
Jean-Paul1 year ago

I see you sped up, and didn't wait a week nice

Jean Manzo's profile picture
Jean Manzo1 year ago

You made me go and research the whole concept of MCPs 😂 Thanks TODO: Add it to the membership in TotalTypescript 👍

Virgile RIETSCH's profile picture
Virgile RIETSCH1 year ago

Thank you for the video Matt ! Always straight to the point, I love it!

Emeric HUNTER's profile picture
Emeric HUNTER1 year ago

@vlucas building code is like cooking; simplify the recipe for better results.

cam 🏴‍☠️'s profile picture
cam 🏴‍☠️1 year ago

This is away @mattpocockuk ! Thank you ☺️

Divyansh Gandhi's profile picture
Divyansh Gandhi1 year ago

Wow. Real good video. Thank you!

Related Videos

New course: MCP: Build Rich-Context AI Apps with Anthropic. Learn to build AI apps that access tools, data, and prompts using the Model Context Protocol in this short course, created in partnership with Anthropic Anthropic and taught by Elie Schoppik Elie Schoppik, its Head of Technical Education. Connecting AI applications to external systems that bring rich context to LLM-based applications has often meant writing custom integrations for each use case. MCP is an open protocol that standardizes how LLMs access tools, data, and prompts from external sources, and simplifies how you provide context to your LLM-based applications. For example, you can provide context via third-party tools that let your LLM make API calls to search the web, access data from local docs, retrieve code from a GitHub repo, and so on. MCP, developed by Anthropic, is based on a client-server architecture that defines the communication details between an MCP client, hosted inside the AI application, and an MCP server that exposes tools, resources, and prompt templates. The server can be a subprocess launched by the client that runs locally or an independent process running remotely. In this hands-on course, you'll learn the core architecture behind MCP. You’ll create an MCP-compatible chatbot, build and deploy an MCP server, and connect the chatbot to your MCP server and other open-source servers. Here’s what you’ll do: - Understand why MCP makes AI development less fragmented and standardizes connections between AI applications and external data sources - Learn the core components of the client-server architecture of MCP and the underlying communication mechanism - Build a chatbot with custom tools for searching academic papers, and transform it into an MCP-compatible application - Build a local MCP server that exposes tools, resources, and prompt templates using FastMCP, and test it using MCP Inspector - Create an MCP client inside your chatbot to dynamically connect to your server - Connect your chatbot to reference servers built by Anthropic’s MCP team, such as filesystem, which implements filesystem operations, and fetch, which extracts contents from the web as markdown - Configure Claude Desktop to connect to your server and others, and explore how it abstracts away the low-level logic of MCP clients - Deploy your MCP server remotely and test it with the Inspector or other MCP-compatible applications - Learn about the roadmap for future MCP development, such as multi-agent architecture, MCP registry API, server discovery, authorization, and authentication MCP is an exciting and important technology that lets you build rich-context AI applications that connect to a growing ecosystem of MCP servers, with minimal integration work. Please sign up here!

Andrew Ng

142,010 views • 1 year ago