Skip to main content

Model Context Protocol (MCP)

Model Context Protocol (MCP) is an open protocol that connects AI coding agents (Claude Code, Antigravity, GitHub Copilot) to external tools, APIs, and data sources through one standard interface.

Three Core Primitives​

  • Tools: Actions an agent can call (for example: search GitHub issues, run a read-only DB query, capture a browser screenshot).
  • Resources: Structured data an agent can read (files, schemas, logs, internal docs).
  • Prompts: Reusable prompt templates exposed by the server.

Transports​

  • stdio: Runs the MCP server as a local subprocess on your machine (most common for local tools).
  • Streamable HTTP: Connects to a remote MCP server over HTTPS with OAuth or Bearer authentication.

Security Notes​

  • Install MCP servers only from trusted sources and scope permissions to read-only when writes are not needed.
  • Never hardcode tokens or API keys in committed config files; use environment variables or OS Keychain / plugin auth.
  • Watch out for prompt injection when agents read untrusted external content (public issues, web pages, emails).