What is the Model Context Protocol, and why does it matter?
Agents and tools · Intermediate 3
Short answer
MCP is an open protocol, introduced by Anthropic in 2024, that standardises how AI applications connect to tools and data. An MCP server exposes tools, resources and prompts; an MCP client inside an app such as an IDE or chat assistant connects to it. Build an integration once as a server, and any MCP-compatible app can use it.
Deeper answer
Before MCP, every app needed custom code for every integration. MCP plays a role similar to a common port: servers for GitHub, databases or internal systems work across clients. Servers run locally over standard input and output or remotely over HTTP.
Security still matters: an MCP server can give a model real power, so use authentication, least-privilege scopes, and approval for risky tools, and only install servers you trust, because tool descriptions and results can carry prompt injection.
What a strong answer covers
- Open protocol connecting AI apps to tools and data
- Servers expose tools, resources and prompts
- Clients inside apps connect to servers
- Build once, works across apps
- Security: trust, auth and least privilege
Answer it out loud in the mock interview about 1 min
Follow-ups to expect
- What is the difference between an MCP tool and a resource?
- What security risks come with installing third-party MCP servers?
Common mistakes
- Calling MCP a model or a framework
- Ignoring the security of servers
Learn it
- What are common failure modes of agents, and how do you guard against them?
- What kinds of memory can an agent have, and how do you implement them?
- Your agent ran overnight and ran up a large API bill. What probably happened, and what do you change?
- How would you design a harness for an agent that has to work on one task for several hours?
- What is the difference between an agent and a workflow?
- What are computer-use or browser agents good for, and what are their risks?
- What is context engineering, and why does it matter for agents?
- An agent completes a task correctly most of the time but sometimes goes badly wrong. How do you debug it?
- What makes a good tool for an agent?
- Design an agent that handles refund requests for an online store.
- You changed your agent's harness. How do you prove the change made it better?
- What are verification gates in an agent harness, and how would you add them to a coding agent?
- How does tool calling work?
- When should an AI agent ask a human for approval before acting?
- Explain state, nodes, edges and checkpoints in LangGraph.
- What are planning and reflection in agents, and when do they help?
- Two coding agents use the same model, but one solves far more of your tasks. Why could that be, and how would you find out?
- What is an agent harness, and what is harness engineering?
- When is a multi-agent system worth it, and what are the risks?