# Overview

> CopilotKit connects to your agents through the Agentic Protocol of your choice

CopilotKit is fully compatible with three major agentic protocols: AG-UI, MCP, and A2A.

<Image
  src="/images/venn-agentic-light.svg"
  alt="Agentic Protocols - Venn Diagram"
  width={4096}
  height={2304}
  className="block dark:hidden mb-8 w-full mx-auto"
/>
<Image
  src="/images/venn-agentic-dark.svg"
  alt="Agentic Protocols - Venn Diagram"
  width={4096}
  height={2304}
  className="hidden dark:block mb-8 w-full mx-auto"
/>

<table style={{ width: "100%", borderCollapse: "collapse" }}>
  <thead>
    <tr>
      <th
        style={{
          width: "25%",
          textAlign: "left",
          padding: "12px",
          borderBottom: "2px solid light-dark(#e5e7eb, var(--border))",
        }}
      >
        Connection
      </th>
      <th
        style={{
          width: "25%",
          textAlign: "left",
          padding: "12px",
          borderBottom: "2px solid light-dark(#e5e7eb, var(--border))",
        }}
      >
        Protocol
      </th>
      <th
        style={{
          width: "50%",
          textAlign: "left",
          padding: "12px",
          borderBottom: "2px solid light-dark(#e5e7eb, var(--border))",
        }}
      >
        Purpose
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td
        style={{
          padding: "12px",
          borderBottom: "1px solid light-dark(#e5e7eb, var(--border))",
          verticalAlign: "top",
        }}
      >
        <strong>Agent ↔ User Interaction</strong>
      </td>
      <td
        style={{
          padding: "12px",
          borderBottom: "1px solid light-dark(#e5e7eb, var(--border))",
          verticalAlign: "top",
        }}
      >
        <a href="/agentic-protocols/ag-ui">
          <strong>AG-UI</strong>
        </a>
        <br />
        (Agent-User Interaction Protocol)
      </td>
      <td style={{ padding: "12px", borderBottom: "1px solid light-dark(#e5e7eb, var(--border))" }}>
        The open, event-based standard that connects agents to user-facing
        applications. It enables real-time, multimodal, interactive experiences.
      </td>
    </tr>
    <tr>
      <td
        style={{
          padding: "12px",
          borderBottom: "1px solid light-dark(#e5e7eb, var(--border))",
          verticalAlign: "top",
        }}
      >
        <strong>Agent ↔ Tools & Data</strong>
      </td>
      <td
        style={{
          padding: "12px",
          borderBottom: "1px solid light-dark(#e5e7eb, var(--border))",
          verticalAlign: "top",
        }}
      >
        <a href="/agentic-protocols/mcp">
          <strong>MCP</strong>
        </a>
        <br />
        (Model Context Protocol)
      </td>
      <td style={{ padding: "12px", borderBottom: "1px solid light-dark(#e5e7eb, var(--border))" }}>
        Open standard that lets agents securely connect to external systems:
        tools, workflows, and data sources.
      </td>
    </tr>
    <tr>
      <td
        style={{
          padding: "12px",
          borderBottom: "1px solid light-dark(#e5e7eb, var(--border))",
          verticalAlign: "top",
        }}
      >
        <strong>Agent ↔ Agent</strong>
      </td>
      <td
        style={{
          padding: "12px",
          borderBottom: "1px solid light-dark(#e5e7eb, var(--border))",
          verticalAlign: "top",
        }}
      >
        <a href="/agentic-protocols/a2a">
          <strong>A2A</strong>
        </a>
        <br />
        (Agent to Agent)
      </td>
      <td style={{ padding: "12px", borderBottom: "1px solid light-dark(#e5e7eb, var(--border))" }}>
        Defines how agents coordinate and share work across distributed agentic
        systems.
      </td>
    </tr>
    <tr>
      <td style={{ padding: "12px", verticalAlign: "top" }}>
        <strong>Agent ↔ Generative UI </strong>
      </td>
      <td style={{ padding: "12px", verticalAlign: "top" }}>
        <strong>[A2UI](/generative-ui/a2ui)</strong> (Google)
        <br />
        <strong>[MCP Apps](/generative-ui/mcp-apps)</strong> (MCP
        Ecosystem)
      </td>
      <td style={{ padding: "12px" }}>
        Declarative, LLM-friendly [generative UI specs](/generative-ui/tool-based)
        that define <em>what</em> to render and how to structure agent responses
        visually. CopilotKit renders A2UI and MCP Apps.
      </td>
    </tr>
  </tbody>
</table>

## **Mixing and Matching Protocols** [#mixing-and-matching-protocols]

CopilotKit lets developers connect to any of these protocols **directly or in combination.**
CopilotKit can connect to your agent backend through any of these protocols.

<Image
  src="/images/any-agentic-backend-light.png"
  alt="Any Agentic Backend"
  width={4096}
  height={2304}
  className="block dark:hidden mb-8 w-full mx-auto"
/>
<Image
  src="/images/any-agentic-backend-dark.png"
  alt="Any Agentic Backend"
  width={4096}
  height={2304}
  className="hidden dark:block mb-8 w-full mx-auto"
/>

AG-UI middleware connects CopilotKit to A2A agents and MCP servers through one AG-UI agent. See [A2A](/agentic-protocols/a2a) and [AG-UI middleware](/agentic-protocols/ag-ui-middleware).

This means that if your host agent connects to subagents using **MCP** or **A2A**, their UI properties can be propagated all the way through to the user-facing application.

<Image
  src="/images/mcp-and-a2a-through-agui-light.png"
  alt="MCP and A2A through AG-UI"
  width={4096}
  height={2304}
  className="block dark:hidden mt-8 w-full mx-auto"
/>
<Image
  src="/images/mcp-and-a2a-through-agui-dark.png"
  alt="MCP and A2A through AG-UI"
  width={4096}
  height={2304}
  className="hidden dark:block mt-8 w-full mx-auto"
/>
