Build an MCP Server in Python (Full Tutorial)

Oxylabs
4,791 views β€’

_*Disclaimer:* This video features an AI-generated avatar of one of our own Oxylabs experts, created with their full knowledge and consent. The voice and likeness are their own, recreated with AI. The video itself was produced using AI to make our production process more efficient while keeping the people and expertise behind them genuine._ Try Oxylabs Web Scraper API for free πŸ‘‰ https://oxy.yt/5EDc Learn how to build an MCP server in Python and connect it to your LLM for easy access to live web data. In this MCP tutorial, we build a custom server from scratch with FastMCP and connect it to an external API. You’ll learn how the Model Context Protocol works, how MCP servers expose tools to AI agents, and how to define tools with the Python SDK. We start with a minimal MCP server and then build a practical web-data tool that an AI agent can actually use. Along the way, we cover the three main MCP types (tools, resources, and prompts) and explain why each part matters. The tutorial also walks through connecting the server to Claude Desktop, testing it, and troubleshooting some of the common issues you may encounter when building an MCP server. If you're looking to build an MCP server from scratch, this guide is your quick starting point to creating custom tools for Claude and any other AI agents. πŸ“š *MENTIONED RESOURCES* ✏️ Node.js download: https://nodejs.org/en/download ✏️ Claude Code docs: https://code.claude.com/docs/en/ ✏️ Oxylabs MCP Server on GitHub: https://oxy.yt/7EJV ✏️ Oxylabs Agent Skills on GitHub: https://oxy.yt/pEKa ✏️ MCP docs: https://modelcontextprotocol.io/docs/develop/build-server πŸŽ₯ *RELATED VIDEOS* πŸ‘‰ What Is an MCP Server: https://oxy.yt/NELd πŸ‘‰ Vibe Coding with Claude Code: https://oxy.yt/UEZ7 πŸ”§ *OUR SCRAPING SOLUTIONS* Web Scraper API: πŸ‘‰ https://oxy.yt/5EDc Residential Proxies: πŸ‘‰ https://oxy.yt/CEFp ISP Proxies: πŸ‘‰ https://oxy.yt/zEGo Datacenter Proxies: πŸ‘‰ https://oxy.yt/tEHO ⏱️ *TIMESTAMPS* 00:00 – Intro 00:38 – What is an MCP server? 01:35 – Prerequisites 02:04 – Build an MCP server 03:16 – Code review 04:58 – MCP inspector test 06:05 – Claude Code demo 07:08 – Connect MCP to Claude Desktop 08:52 – Common pitfall 09:16 – Local vs Hosted MCP 10:02 – Alternatives for scraping 11:35 – Next steps πŸ’¬ *CONNECT WITH US* Website: https://oxylabs.io LinkedIn: https://www.linkedin.com/company/oxylabs-io X: https://x.com/Oxylabs_io Support: [email protected] #MCP #AIagents #ModelContextProtocol

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close