Most people still use AI through copy and paste. Pull a number out of your ERP, paste it into a chat, copy the answer back into a report. It works, until you count the cost: it is slow, it is easy to mis-copy, and nobody can audit where the data went. Ask an AI to check this month's return rate in the east region and it cannot. The data sits behind an export button in a system it has never seen.

MCP (Model Context Protocol) exists for that gap. It defines a standard way for an AI application to call external systems and data sources in a controlled, auditable way, instead of relying on a human to move text back and forth. In one line: it turns "what the AI can see and do" from a chat-window accident into a configurable, reviewable interface list.

Three roles, easy to mix up

MCP has only three roles, and most first-time readers blend them together.

Host is the AI application you actually use: a desktop client, an IDE plugin, or your own product. It talks to the user and manages which connectors are attached.

Client is one connection the host opens per connector, one to one. Attach five connectors and you have five clients, isolated from each other.

Server is the small program you write, or someone provides, that wraps one system's capabilities into a standard interface. It can run locally as a process or live on a remote machine.

The important part is isolation. Each server sees only what it is allowed to see. A server connected to your database has no idea what your mail server contains. That is not an implementation detail; it is the design premise. It is what lets you split permissions by system.

What a server actually exposes

A server exposes three kinds of things, and confusing them is the most common reason a connector "works but is useless."

Tools are actions: place an order, send a message, generate a report. Each tool has a name, a description, and a parameter schema. The model decides when to call a tool based on the description. This is where most quality problems live. A vague description means the model calls the tool at the wrong time.

Resources are content: files, rows, documents, tables, configuration. They are read, and they produce no side effects. If you want the AI to know what is in a system, you expose a resource.

Prompts are pre-written instruction templates. They let a server describe the right way to use it, so every user does not have to reinvent the question.

There is a simple test worth remembering: tools change the world, resources do not. Your approval flow, permission design, and human confirmation steps should all be built around tools. Reading data can be opened up wider. Writing data should stay narrow.

Connecting a database: the shape of the work

Say you want to give an AI read access to a reporting database. The process is the same whatever the system.

  1. Define the smallest useful surface. Do not expose the whole database. Pick the handful of views or queries that answer real questions. A connector with 200 tools is a connector nobody can review.
  2. Decide the boundary before writing code. Which tables are read-only? Which columns contain personal data? Which operations require a human to confirm? Write those answers down first; the code follows from them.
  3. Implement the server. Wrap each allowed operation as a tool with a clear description and a strict parameter schema. Add a resource for the static context the model needs to understand the data.
  4. Test with bad inputs, not just happy ones. Ask for a date range with no data. Ask for a customer ID that does not exist. A good server returns a clear "not found" instead of an empty result the model will happily turn into a confident answer.
  5. Log every call. Which tool was invoked, with which parameters, by whom. This is the part copy and paste could never give you, and usually the reason to adopt MCP in the first place.

Where people get it wrong

The first trap is treating the description as marketing copy. "Query customer data" tells the model almost nothing. "Look up a customer's current plan and renewal date by account ID; returns not found if the ID is unknown" tells it when to use the tool and what to expect. Descriptions are behavior, not documentation.

The second trap is skipping the permission boundary because the prototype worked. A local prototype that can drop tables is fine on your machine. The same server attached to a shared assistant is not. Set the boundary when the connector is still small; retrofitting it later means re-testing every path.

The third trap is assuming the model will notice missing data. It will not. If a required input is absent, the server should say so explicitly and stop. Silent fallbacks are how a connector produces polished, wrong answers.

A checklist before you ship a connector

  • Does each tool have a name, a description, and a parameter schema?
  • Can you list, in one sentence each, what every tool is allowed to do?
  • Are write operations separated from read operations?
  • Do write operations require confirmation?
  • Does the server return an explicit failure when inputs are missing?
  • Is every call logged with caller, tool, and parameters?
  • Can you revoke one connector without affecting the others?

If you cannot answer yes to all seven, the connector is not ready to attach to a shared assistant.

Why this matters more than the protocol details

MCP is a small protocol. The hard part was never the wire format; it is deciding what an AI should be allowed to see and do inside your systems. Writing a connector forces that decision into the open. That is the real value: not that the AI can reach your database, but that you now have a written, reviewable list of exactly how far it can reach.

Read the full version with implementation examples: MCP Connector: Connect AI to Your Own Systems Safely