Skip to content

MCP Architecture: Hosts, Clients and Servers

How the Model Context Protocol is structured: the host application, the clients it creates and the servers that expose capabilities.

Editorial team 1 min read

The Model Context Protocol (MCP) is an open protocol for connecting AI applications to tools and data. It has three roles.

Host

The AI application the user interacts with — a chat app, an IDE, a coding agent. The host manages connections, enforces permissions and decides what reaches the model.

Client

A connector inside the host that maintains one connection to one server. A host typically runs several clients, one per server.

Server

A program that exposes capabilities — tools, resources and prompts — over the protocol. Servers can wrap a database, a file system, a SaaS API or an internal service.

How They Talk

Messages use JSON-RPC 2.0: requests with responses, and one-way notifications. A connection starts with initialisation, where client and server exchange protocol versions and declare which capabilities they support.

Why This Design

  • One server works with any MCP-compatible host.
  • Hosts can add integrations without custom code for each.
  • Security boundaries are clear: the host controls what each server can see and do.

Local and Remote

Servers can run locally as a subprocess or remotely over HTTP. The roles are the same either way.

More in MCP

All MCP guides →
MCP Guide · 2 min

MCP Tools, Resources and Prompts

The three main things an MCP server can offer, who controls each, and when to use which.

MCP 2 min read 1 Sep 2025

MCP Guide · 1 min

MCP Transports: stdio and HTTP

How MCP messages travel: standard input and output for local servers, HTTP for remote ones, and how to choose.

MCP 1 min read 31 Aug 2025

MCP Guide · 1 min

Building Your First MCP Server

A walkthrough of the steps to create a simple MCP server that exposes a tool, and how to test it.

MCP 1 min read 30 Aug 2025

MCP Guide · 1 min

MCP Authorisation for Remote Servers

How remote MCP servers authenticate users with OAuth, and good practice for tokens and scopes.

MCP 1 min read 29 Aug 2025