STABLELinux Foundation (Agentic AI Foundation)

Model Context Protocol (MCP)

2 min read

The universal standard for connecting AI agents to external tools and data.

Overview

The Model Context Protocol (MCP) is the foundational layer for connecting AI agents to the external world. Drawing inspiration from the Language Server Protocol (LSP), MCP defines how AI applications communicate with servers that expose external capabilities.

Why MCP Matters

Before MCP, every AI integration required custom code. Each combination of AI platform + external service meant a new integration. MCP changes this by providing a universal interface—build one MCP server, and it works with Claude, ChatGPT, Gemini, Copilot, and more.

Architecture

MCP uses a client-server architecture:

  • Hosts: Applications like Claude Desktop, Cursor, VS Code that run MCP clients
  • Clients: Components that maintain connections to MCP servers
  • Servers: Programs that expose capabilities through the standardized protocol

Core Capabilities

Tools

Executable functions that agents can invoke, described with JSON Schema for automatic parameter validation.

Resources

Access to data sources—files, databases, APIs—with support for real-time subscriptions.

Prompts

Reusable prompt templates for consistent interactions.

Transport Options

  • stdio: Local process communication (most common)
  • HTTP/SSE: Web-based deployments
  • WebSocket: Real-time bidirectional

Linux Foundation Governance

In December 2025, Anthropic donated MCP to the Linux Foundation as part of the Agentic AI Foundation (AAIF). Founding members include OpenAI, Google, Microsoft, Amazon, AWS, and Bloomberg.

This ensures MCP remains:

  • Vendor-neutral
  • Community-driven
  • Open source

Adoption Scale

  • 97M+ monthly SDK downloads
  • 10,000+ active MCP servers
  • First-class support in ChatGPT, Claude, Gemini, Copilot, VS Code, Cursor

Security Considerations

Known vulnerability patterns:

  • Prompt injection via tool responses
  • Tool permission escalation
  • Lookalike tool attacks

Best practices: sandbox execution, validate inputs, principle of least privilege.

When to Use MCP

Use MCP for:

  • Connecting agents to APIs, databases, file systems
  • Building tool ecosystems
  • Standardizing integrations

Don't use MCP for:

  • Agent-to-agent communication (use A2A)
  • User interface streaming (use AG-UI)
Example Code
// TypeScript MCP Server Example
import { Server } from "@modelcontextprotocol/sdk/server/index.js";

const server = new Server({
  name: "weather-server",
  version: "1.0.0"
}, {
  capabilities: { tools: {} }
});

server.setRequestHandler("tools/list", async () => ({
  tools: [{
    name: "get_weather",
    description: "Get current weather for a location",
    inputSchema: {
      type: "object",
      properties: { location: { type: "string" } },
      required: ["location"]
    }
  }]
}));
Quick Info
Architectureclient-server
Message FormatJSON-RPC 2.0
Transportstdio, HTTP/SSE, WebSocket
SDKsTypeScript, Python, Rust, Go, Java, C#
Agent-to-Agent Features
Discovery
Negotiation
Streaming
Bidirectional
Multi-Agent
Stay Updated

Get notified when protocols evolve.

Subscribe
Strengths
  • Universal adoption (all major AI platforms)
  • Linux Foundation governance ensures neutrality
  • Mature specification with extensive docs
  • Strong SDK support (6+ languages)
  • 97M+ monthly downloads
Considerations
  • Not designed for agent-to-agent communication
  • Security model still evolving
  • Requires server deployment per integration
Tags
tool-callingintegrationlinux-foundationstandard

Compare with Other Protocols

Compare against:(2/2)
Model Context Protocol (MCP)(current)
Strengths
Model Context Protocol (MCP)
stable
  • Universal adoption (all major AI platforms)
  • Linux Foundation governance ensures neutrality
  • Mature specification with extensive docs
AG-UI Protocol
beta
  • Purpose-built for frontend integration
  • Human-in-the-loop patterns built-in
  • Framework-agnostic design
Agent Name Service (ANS)
experimental
  • Leverages existing DNS infrastructure
  • Cryptographic identity via PKI
  • Scalable and decentralized
Considerations
Model Context Protocol (MCP)
  • Not designed for agent-to-agent communication
  • Security model still evolving
  • Requires server deployment per integration
AG-UI Protocol
  • Frontend-specific scope
  • No agent discovery
  • Smaller community than MCP/A2A
Agent Name Service (ANS)
  • Early draft stage
  • Requires PKI infrastructure
  • DNS propagation delays
Best For
Model Context Protocol (MCP)
Connecting AI assistants to enterprise systemsBuilding plugin ecosystemsDatabase queryingFile system access
AG-UI Protocol
AI-powered chat interfacesCollaborative document editingApproval workflow UIsReal-time agent dashboards
Agent Name Service (ANS)
Finding agents by capabilityVerifying agent identityCross-platform discovery
Technical Details
Model Context Protocol (MCP)AG-UI ProtocolAgent Name Service (ANS)
Architectureclient-serverevent-drivendistributed
Message FormatJSON-RPC 2.0JSON EventsDNS Records
Transportstdio, HTTP/SSE, WebSocketSSE, WebSocket, HTTP WebhooksDNS
Version2025-11-251.0draft-00
SDKsTypeScript, Python, RustTypeScript, Python, React
Architecture
Model Context Protocol (MCP)client-server
AG-UI Protocolevent-driven
Agent Name Service (ANS)distributed
Message Format
Model Context Protocol (MCP)JSON-RPC 2.0
AG-UI ProtocolJSON Events
Agent Name Service (ANS)DNS Records
Transport
Model Context Protocol (MCP)stdio, HTTP/SSE, WebSocket
AG-UI ProtocolSSE, WebSocket, HTTP Webhooks
Agent Name Service (ANS)DNS
Version
Model Context Protocol (MCP)2025-11-25
AG-UI Protocol1.0
Agent Name Service (ANS)draft-00
SDKs
Model Context Protocol (MCP)TypeScript, Python, Rust
AG-UI ProtocolTypeScript, Python, React
Agent Name Service (ANS)