---
title: "Model Context Protocol"
description: "The Model Context Protocol explained: how MCP servers and clients work, how MCP compares with A2A and function calling, and how teams run MCP in production."
type: "topic-hub"
canonical_url: "https://theaiengineering.com/topics/mcp"
markdown_url: "https://theaiengineering.com/topics/mcp.md"
author: "The AI Engineering Editors"
publisher: "The AI Engineering"
keywords: ["model context protocol","what is mcp","mcp server","mcp gateway","a2a protocol","a2a protocol vs mcp"]
citation: "The AI Engineering Editors. \"Model Context Protocol.\" The AI Engineering. https://theaiengineering.com/topics/mcp"
---

# Model Context Protocol

The open protocol that connects models to tools and data, and how it fits with A2A.

The Model Context Protocol (MCP) is an open standard for connecting AI applications to external tools, data and prompts through a common client-server interface. Instead of writing one integration per model and per tool, a team exposes a capability once as an MCP server.

This hub covers the protocol's architecture, MCP servers and gateways, security considerations, and how MCP relates to agent-to-agent protocols such as A2A.

## Model Context Protocol guides

- [How to build an MCP server: a Python and TypeScript tutorial](https://theaiengineering.com/articles/how-to-build-an-mcp-server): Learn how to build an MCP server with the official Python and TypeScript SDKs: tools, resources, transports, testing, client config, and production security.
- [A2A protocol vs MCP: differences and when to use each](https://theaiengineering.com/articles/a2a-vs-mcp): A2A protocol vs MCP: A2A connects AI agents to other agents, and MCP connects an agent to tools and data. Compare agent cards, tasks, transports, and security.
- [What is the Model Context Protocol (MCP)? How it works](https://theaiengineering.com/articles/what-is-model-context-protocol): The Model Context Protocol (MCP) is an open standard for connecting AI apps to tools and data. Learn its architecture, transports, tool calls, and security.

## Key terms

- [A2A protocol](https://theaiengineering.com/glossary/a2a-protocol): The A2A (Agent2Agent) protocol is an open standard, introduced by Google in April 2025, that lets AI agents built on different frameworks discover each other, exchange messages, and delegate tasks.
- [Agent Card](https://theaiengineering.com/glossary/agent-card): An Agent Card is a JSON document that an A2A server publishes, usually at /.well-known/agent-card.json, describing the agent's identity, endpoints, capabilities, skills, and authentication requirements.
- [JSON-RPC](https://theaiengineering.com/glossary/json-rpc): JSON-RPC is a lightweight, transport-agnostic remote procedure call protocol that encodes method calls, results, and errors as JSON objects; version 2.0 is the message format of MCP and A2A.
- [MCP gateway](https://theaiengineering.com/glossary/mcp-gateway): An MCP gateway is a proxy that sits between MCP hosts and many MCP servers, exposing them through one endpoint and centralizing authentication, tool access policy, and audit logging.
- [MCP server](https://theaiengineering.com/glossary/mcp-server): An MCP server is a program that exposes tools, resources, and prompts to AI applications through the Model Context Protocol, running locally over stdio or remotely over Streamable HTTP.
- [MCP transport](https://theaiengineering.com/glossary/mcp-transport): An MCP transport is the binding that carries Model Context Protocol messages between a client and a server; the specification defines stdio for local subprocesses and Streamable HTTP for remote servers.
- [Model Context Protocol (MCP)](https://theaiengineering.com/glossary/model-context-protocol): Model Context Protocol (MCP) is an open protocol, introduced by Anthropic in November 2024, that standardizes how AI applications connect to external tools, data sources, and prompts through MCP servers.
- [Tool poisoning](https://theaiengineering.com/glossary/tool-poisoning): Tool poisoning is an attack in which a malicious or compromised MCP server hides instructions in a tool's description or schema, which the model reads as trusted context and may follow.

## Tools and platforms

- [MCP platforms](https://theaiengineering.com/platforms/mcp-platforms): 23 platforms. MCP platforms are the registries, hosting services, integration platforms, gateways, and developer tools that help teams find, run, secure, and test Model Context Protocol servers, the programs that expose tools and data to AI agents and assistants.
- [AI gateways](https://theaiengineering.com/platforms/ai-gateways): 32 platforms. An AI gateway is a proxy between applications and model providers that exposes one API while handling routing, failover, authentication, rate limits, caching, and usage tracking.

## Cite this page

The AI Engineering Editors. "Model Context Protocol." The AI Engineering. https://theaiengineering.com/topics/mcp

- Title: Model Context Protocol
- Author: The AI Engineering Editors
- Publisher: The AI Engineering
- URL: https://theaiengineering.com/topics/mcp
- Markdown: https://theaiengineering.com/topics/mcp.md
