Guide 4 of 6MCP: connecting AI to tools
  1. Anatomy of an automation
  2. How AI agents work
  3. RAG: answering from your documents
  4. MCP: connecting AI to tools
    1. What MCP is
    2. Three roles
    3. See the messages
    4. Why it matters for a business
  5. Guardrails, review and evals
  6. How a project runs

Deep dive3 min readUpdated

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

MCP roles
RoleWhat it isExample
HostThe AI application the person uses.Claude Desktop, an IDE, your internal assistant
ClientLives inside the host; holds one connection to one server.Created by the host for each server you connect
ServerA 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.

InteractiveAn MCP session, message by messageStep forward or press play
  1. initialize: The client opens the session and says which protocol version and features it supports.
  2. capabilities: The server answers with what it offers: here, tools.
  3. notifications/initialized: A notification (no id, no reply expected) confirms the session is ready.
  4. tools/list: The client asks which tools exist, so the model can see their names, descriptions and input schemas.
  5. tool definitions: One tool here; real servers often expose several.
  6. tools/call: The model decided to use the tool. The client sends the call with the model’s arguments.
  7. API request: The server talks to the real system with its own credentials. The model never sees them.
  8. result: The result comes back as content the model can read.

Why it matters for a business

  1. Build onceOne server for your CRM works with every MCP-capable assistant your team adopts.
  2. Permissions stay server-sideCredentials live in the server. The model only sees tool results.
  3. Smaller, safer toolsExpose search_contact and log_activity, not the whole API.
  4. 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.