← Sessions

Workshop

Build your first MCP server in Python

Room:
Workshop
Level:
All levels

The Model Context Protocol (MCP) is an open standard that lets AI agents discover and call external tools to improve their responses. In this hands-on workshop, you'll learn how MCP works and start by connecting a coding agent to existing MCP servers. Next, you'll build your own MCP server in Python with FastMCP, defining tools, resources, and prompts that agents can use. We'll then explore newer MCP features: MCP Apps for interactive UIs right inside the chat, and agent skills that teach agents when and how to use your tools.

Outline

  • Welcome and setup check (10 min)
  • MCP 101 (40 min)
  • AI agents and LLM tool-calling
  • MCP clients, servers, and hosts
  • Tools, prompts, and resources
  • Exercise: Use popular MCP servers from a coding agent (GitHub Copilot, Claude Code)
  • Build an MCP server (45 min)
  • FastMCP: mcp.tool, mcp.prompt, mcp.resource
  • Running the server over stdio vs. HTTP
  • Development tools: MCP Inspector and MCPJam
  • Exercise: Write, run, and modify your server
  • Break (10 min)
  • MCP Apps (40 min)
  • Interactive UIs that show up inside the chat
  • Elicitations for user confirmation
  • Exercise: Add an MCP App UI to your server
  • Agent skills (25 min)
  • What skills are and how agents load them
  • Pairing skills with MCP tools
  • Exercise: Write a skill for your server
  • Next steps with MCP (10 min)
  • Deployment tips
  • Security considerations
  • Further learning

Before you come

There are two ways to participate:
1. GitHub Codespaces (recommended): Everything is set up online in a browser-based VS Code, with access to the GitHub Copilot free tier. This requires a GitHub account.
2. Local setup: Use a local IDE with Python 3.11+ and the ability to install packages from PyPI (fastmcp and a few others). You'll also need a coding agent with MCP support, such as GitHub Copilot, Claude Code, Codex, Goose, or Pi.

Who it is for

Python developers who are curious about building tools for AI agents. Participants should be comfortable writing basic Python functions; no prior AI or MCP experience is needed.

Add to calendar