A beginner-friendly guide to APIs and MCP, with examples showing how software talks to services and how AI agents connect to tools.