
Learn to build your first MCP server in Python, connect LLMs to external apps and APIs, and explore security testing by attacking MCP servers and prompt injection.
Explore attacking a remote, vulnerable MCP server in a docker-based lab, using MCP inspector and prompt injection to demo server-side request forgery and tool exploitation.
Explain indirect prompt injection against Google Antigravity, showing how a malicious site can trigger Gemini to read credentials from the workspace and exfiltrate data via a browser sub-agent.
Demonstrate prompt injection in AI chatbots using a customer support chatbot and a prompt template. Show how AI generates a SQL query for Postgres and how authorization vulnerabilities arise.
Explore prompt injection in a customer support chatbot and how impersonating a user can expose orders. Implement a two-model defense: classify and authorize before generating any queries.
Companies rush to integrate MCP servers into their AI infrastructure, a new attack surface is emerging - and most developers are building vulnerable systems without realizing it.
This hands-on course takes you from zero MCP knowledge to confidently building and attacking MCP servers. Whether you're a developer securing AI systems or a security professional hunting for vulnerabilities, this course gives you the practical skills you need.
No complex setup required - all labs run in Docker containers with step-by-step guidance. Join thousands of students already learning to secure the next generation of AI infrastructure.
In Section 1, you'll build a solid foundation by creating your first MCP server in Python using the FastMCP SDK. You'll understand the client-server architecture, learn the difference between local and remote MCP servers, and integrate your server with Claude Desktop. By the end, you'll know how to expose tools, resources, and prompts to AI models - and more importantly, you'll understand where things can go wrong.
In Section 2, you shift to an attacker's mindset. Through practical labs running in Docker, you'll exploit real vulnerabilities including:
- Server-Side Request Forgery (SSRF) - Abuse URL fetching tools to access internal resources, and bypass common protections using redirect chains
- Confused Deputy attacks - Exploit broken authorization when MCP servers have overly broad access to backend services
- Prompt Injection - Manipulate AI-generated SQL queries to access unauthorized data, with a real-world case study of Google Antigravity credential exfiltration
- Directory Traversal and Information Disclosure - Extract sensitive files through misconfigured MCP resources.