MCP: how AI connects to your tools
Hosts, clients and servers; tools, resources and prompts; and the JSON-RPC messages in between.
Includes an interactive demo: Message sequence
What MCP is
The Model Context Protocol (MCP) is an open standard, introduced by Anthropic in late 2024, for connecting AI applications to tools and data. Instead of writing a custom integration for every model and every app, you build one MCP server for your system, and any MCP-capable client (Claude, IDEs, agent frameworks) can use it.
Three roles
| Role | What it is | Example |
|---|---|---|
| Host | The AI application the person uses. | Claude Desktop, an IDE, your internal assistant |
| Client | Lives inside the host; holds one connection to one server. | Created by the host for each server you connect |
| Server | A small program that exposes a system’s abilities. | A CRM server, a database server, a files server |
Servers offer three kinds of things: tools (actions the model can call), resources (data the app can read, like files or records) and prompts (reusable templates). Messages are JSON-RPC 2.0, sent over stdio for local servers or Streamable HTTP for remote ones.
See the messages
Step through a real-shaped session: the handshake, tool discovery, and one tool call that reaches a CRM.
- initialize: The client opens the session and says which protocol version and features it supports.
- capabilities: The server answers with what it offers: here, tools.
- notifications/initialized: A notification (no id, no reply expected) confirms the session is ready.
- tools/list: The client asks which tools exist, so the model can see their names, descriptions and input schemas.
- tool definitions: One tool here; real servers often expose several.
- tools/call: The model decided to use the tool. The client sends the call with the model’s arguments.
- API request: The server talks to the real system with its own credentials. The model never sees them.
- result: The result comes back as content the model can read.
Why it matters for a business
- Build onceOne server for your CRM works with every MCP-capable assistant your team adopts.
- Permissions stay server-sideCredentials live in the server. The model only sees tool results.
- Smaller, safer toolsExpose
search_contactandlog_activity, not the whole API. - Swap models freelyThe integration doesn’t change when you change model or vendor.
I hold Anthropic’s Introduction to Model Context Protocol and Claude Code in Action credentials. You can watch MCP-style tool calls in Agent Lab.