What is MCP?
Read a little, play a little. No scary maths, and no rush.
Every tool speaks a different dialect (the problem)
Your model needs files, a database, a calendar, and your ticket system. Without a standard, each integration is bespoke glue: custom schemas, custom auth, custom error handling — N tools × M models of duplicated work. Every new model means rewiring everything.
USB-C for AI tools
The Model Context Protocol (MCP) standardizes the plug: an MCP server exposes tools, documents, and resources with typed schemas; any MCP client (any model, any app) discovers and calls them uniformly. Write the Postgres integration once as an MCP server; every present and future model can query your database through it.
What a server can offer
An MCP server can expose three kinds of things:
- Tools: actions the model can call, such as "search tickets" or "create calendar event", each with a typed input schema.
- Resources: data the application can read into the model's context, such as a file, a database row, or a document.
- Prompts: reusable prompt templates the server provides for common tasks.
Most servers start with tools, because that is where the immediate value lies.
How a session runs
- The client connects to the server: locally by launching it as a subprocess, or remotely over HTTP.
- It asks the server what it offers and receives the list of tools with their descriptions and schemas.
- Those descriptions are given to the model alongside the user's request.
- When the model calls a tool, the client forwards the call to the server, which runs it and returns the result.
MCP and function calling are partners
Function calling is how a model asks to use a tool within one application. MCP is a standard way to package tools so that any compatible application can use them. In practice the two work together: the application discovers tools through MCP and hands them to the model through its normal function-calling interface.
Local first, remote with armor
Start local: file search, SQLite, a calendar on your machine — no auth headaches while learning. Going remote (a shared company server) adds the production checklist: OAuth (who may call what), scopes (read vs write), rate limits, and audit logs of every call. Same protocol, grown-up posture.
Design patterns that work
- Single-purpose servers ("github-mcp," "calendar-mcp") over one mega-server — blast radius stays small.
- Versioned schemas so tool changes don't silently break prompts written against v1.
- Observability: log every call, argument, and result — debugging agents without traces is astrology.
Try /animations/mcp to watch the handshake.
Treat servers like dependencies
Installing an MCP server means trusting its code and its tool descriptions. A malicious or careless server can describe its tools in ways that carry hidden instructions to the model, sometimes called tool poisoning. Use servers from sources you trust, review what each one can access, and grant the narrowest permissions that do the job.
Remember this
- MCP = write once, use from every model. Local to learn, auth + scopes + logs to ship.
Check your understanding
5 questions · first-try answers earn the most XP
My notes
Saved in this browser. Highlight a line above and save it, or write it in your own words.
Nothing saved yet. Your highlights will live here.
References
Finished reading?
Ticking it here also ticks the chapter in the sidebar, the section count and your streak — it is all one number.
Related chapters
Spotted a mistake or want a topic covered? Report an issue