Architecture
MCP follows a client-server architecture:
┌─────────────────────────────────────────────────┐
│ HOST (AI Application) │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │MCP Client│ │MCP Client│ │MCP Client│ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
└───────┼──────────────┼──────────────┼───────────┘
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│MCP Server│ │MCP Server│ │MCP Server│
│ (GitHub) │ │(Database)│ │ (Slack) │
└──────────┘ └──────────┘ └──────────┘
Components: - Host — The AI application (Claude Desktop, Cursor, your custom app) - Client — Maintains a 1:1 connection with a server (created by the host) - Server — Exposes tools, resources, and prompts to the client