SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

Model Context Protocol (MCP) — Interview Q&A

Most asked interview questions with detailed answers

💬
Last updated Nov 2026
Expert Content

Model Context Protocol Interview Q&A

Q: What problem does MCP actually solve?

Without it, hooking an LLM application up to an external tool or data source meant writing a one-off integration for that exact pairing — an M×N cost, scaling with the product of applications and tools rather than their sum. MCP gives every application and every tool a shared protocol to speak instead, so a tool built once works with any compliant application, and an application built once can reach any compliant tool, with no bespoke glue code on either side.

Q: Explain the host, client, and server roles.

The host is whatever the person is actually using — a chat interface, an assistant built into an editor. Inside it, a client owns the live connection to one particular server and manages the back-and-forth of the protocol itself. On the other end, the server is the program that actually exposes tools, resources, or prompts, sitting in front of whatever real system it wraps. It's normal for one host to run several clients in parallel, each talking to a different server.

Q: What's the difference between a tool and a resource?

Calling a tool is an action — the model supplies arguments and gets a result back, much like invoking a function. A resource is just data the host can fetch and hand to the model directly, with no decision from the model required to retrieve it. Treating ordinary data as a tool purely out of habit costs a model call that reading a resource would have avoided entirely.

Q: Why does a client negotiate capabilities with a server at connection time instead of assuming what it supports?

A server's available tools, resources, and prompts can differ across versions or configurations, and hardcoded assumptions break the moment reality diverges from them. The initialization handshake has the client ask what's actually supported, and the server reports its real current capabilities — everything that follows is built on that confirmed answer, not a guess.

Q: Why is connecting a host to an MCP server a security decision as much as a feature decision?

Every tool a server exposes hands the connected model real capability, and a model independently deciding when to exercise that capability carries different risk than a human manually choosing to run the same action. Scoping each connection to the narrowest tool set a task genuinely needs, and requiring explicit confirmation before anything with real consequences executes, keeps a bad decision contained rather than giving standing access to everything a server could theoretically do.

Q: What is sampling, and why is it host-controlled rather than something a server can do freely?

Sampling flips the usual direction: instead of a client calling into a server, the server itself can request that its connected client run a model completion for it, avoiding the need for the server to hold its own separate model credentials. That request still draws on the host's own resources and model access, so a host is free to refuse sampling outright, or wrap it in its own approval and rate-limiting rules, rather than letting any server it's connected to trigger model calls on demand.

Q: An organization connects a read-access customer-data server and a separate outbound-messaging server to the same host. What's the governance risk?

Each server can pass its own individual review while the combination creates a capability nobody explicitly signed off on — reading sensitive data and then sending it externally through the other server. A central registry tracking which servers are connected to which hosts, and what the combined capability surface looks like, is what makes that combination visible at all; without one, it's effectively undocumented until something goes wrong.

Q: How should a tool report an expected failure, like a search returning no results?

As a normal, readable result the model can reason about — "no tickets matched that query" — not a raw stack trace or an opaque error code, and not a protocol-level failure that breaks the connection. MCP treats a tool's own execution errors as ordinary results distinct from protocol violations, and a tool that returns something readable on failure gives the model a real chance to recover (retry differently, ask the user) instead of getting stuck repeating the same failing call.

Q: A server upgrade changes a tool's input schema. How does a connected client find out, rather than just failing unexpectedly?

The capability negotiation that happens at connection time reflects the server's current state, including any schema or tool-set changes — a client re-checking what's actually offered can detect that an expected tool is missing or changed before attempting to call it, rather than discovering the mismatch only when a call fails at runtime.

Q: A task only needs to read files and check git history. Would you build one server that does both, or connect two separate ones?

Two separate, narrow servers is the better default — each stays simple to reason about and audit on its own, and a host composing several connected servers already sees the combined tool set as one pool the model can draw from. Building one wider server to cover both saves a connection but makes it harder to tell, later, exactly what capability a given task actually has access to.

Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
→
✅Quick Check — Model Context Protocol (MCP)
1 / 2

What is the most important concept to understand about Model Context Protocol (MCP) for interviews?

Up Next
📋
Model Context Protocol (MCP) — Cheatsheets
Quick reference — commands, syntax, and patterns
Also Worth Exploring
← Back to all Model Context Protocol (MCP) modules
← ProjectsTroubleshooting →