Model Context Protocol, usually shortened to MCP, is an open protocol for exchanging context and capabilities between AI applications and external programs. It gives compatible applications a common way to discover and use tools, information, and prompt templates.

For example, a project assistant could use an MCP connection to search an approved document library. MCP describes the interaction between the application and the program serving that capability. It does not decide which documents the user should be allowed to read.

The three participants

The host is the AI application. Inside it, an MCP client communicates with an MCP server, which exposes capabilities. A host can use multiple clients to communicate with multiple servers. “Server” describes the program’s role; it may run locally or remotely.

Servers can expose tools that perform operations, resources that supply information, and reusable prompt templates. Clients differ in which features they support. Compatibility must be checked on both sides. Official MCP architecture

Follow a document lookup

Suppose an application offers an approved search_project_notes tool. The user asks, “What is blocking the dashboard release?” The host makes the capability available to its model. The model proposes a search. The application checks the request and calls the server. The server searches within the user’s authorized scope and returns results. The application gives those results to the model to support an answer.

That sequence contains several separate responsibilities. The server must enforce access. The application must decide what to send to the model. The final answer must accurately represent the retrieved information.

Local and remote connections

Local connections commonly use standard input and output streams between processes. Remote connections commonly use Streamable HTTP. Transport support and protocol versions evolve, so match the client’s and server’s documented versions before copying an integration example.

The protocol standardizes communication. It does not train the model, provide a database automatically, or guarantee that a tool’s description is truthful. An application can also call an ordinary API directly when that better fits the task.

Permissions remain part of the design

Connecting an unfamiliar server can expose tools with access to files, accounts, or remote services. Read the requested scope, understand where the server runs, and provide only the permissions needed for the job. Keep credentials out of prompts and source repositories.

Returned documents and tool descriptions can contain hostile instructions. Treat them as untrusted input. Authorization checks, tool restrictions, and review of consequential actions belong in the surrounding system. MCP’s security guidance covers issues such as token handling, confused-deputy risks, and protecting local servers. MCP security best practices

Questions to ask before connecting

Identify the server operator, the data it can access, and whether it can make changes. Check whether tool calls leave your device, how credentials are stored, and how access can be revoked. Test a read-only task first and confirm the returned data belongs to the intended scope.

For a training exercise, a server exposing a few fictional documents is enough to demonstrate discovery and retrieval. Access to a real shared drive is unnecessary for learning the architecture.

Check your understanding

Does an MCP-compatible server automatically become safe to connect to every company account?

See the explanation

No. Protocol compatibility says that the components can communicate. The server's implementation, requested access, data handling, and the application's controls still require review.