Posts

Showing posts from 2026

Agent AI And MCP (Model Context Protocol)

Image
  Building My First AI Agent Using MCP and Gemini – Understanding the Complete Flow When I first started learning AI Agents and the Model Context Protocol (MCP), I found plenty of tutorials that showed how to write the code, but very few explained why each piece exists and how everything works together . This article explains a simple AI Agent built using: Node.js Google Gemini Model Context Protocol (MCP) By the end, you'll understand: What an AI Agent actually is How MCP fits into the architecture Why the LLM doesn't need to see tool implementations How tool selection really works What We Are Building Our project contains only two files. app.js server.js Although the project is small, it demonstrates the same basic architecture used by many production AI agents. The flow looks like this: User │ ▼ app.js │ ┌───────────┴────────────┐ ▼ ▼ Gemini LLM ...