# What Is an AI Agent? How to Build One from Scratch in Python
9 min read
What makes an AI agent different from a chatbot, the agent loop explained, and a working Python agent with tools built step by step on the Claude API.
What makes an AI agent different from a chatbot, the agent loop explained, and a working Python agent with tools built step by step on the Claude API.
What the Model Context Protocol is, how MCP servers expose tools, resources and prompts, and how to build, test and connect one with the Python SDK 2.x.
How self-hosted Dify stores files with OpenDAL: OPENDAL_FS_ROOT, .env settings and Docker volume mounts explained, plus fixes for permission errors.
What an agentic framework is, how LangGraph, LlamaIndex, OpenAI Agents SDK, Google ADK and CrewAI compare, plus agentic AI coding frameworks like Claude Code.