MCP (Model Context Protocol)

An open standard protocol connecting AI models to external tools and data sources. Unifies the interface for exposing resources and invoking functions so models can interact with external systems safely.

General Meaning

Previously, enabling an LLM to interact with external systems—such as databases, REST APIs, local filesystems, or password managers—required writing custom prompt templates and proprietary function-calling adapters for every tool.

Model Context Protocol (MCP) is an open standard that defines a client-server architecture for connecting AI models with external tools and data sources. By exposing standardized primitives for Tools, Resources, and Prompts, a single MCP server implementation can be shared across any MCP-compatible AI client.

Why It Matters

  • Tool reusability: Eliminates the need to rewrite custom plugins or adapters for every new agent harness.
  • Separation of concerns: Decouples core model prompt handling from the connection and execution logic of external tools.
  • Centralized permission and safety control: Lets the client govern exactly which MCP servers are connected and block unauthorized data access.

How the Site Factory Uses It

The Site Factory uses and evaluates MCP for external tool integration across agent environments (Claude Code, Codex, Cursor, etc.), subject to strict security rules on secrets and attack surfaces. For example, the 1Password MCP integration is restricted strictly to checking environment variable names (Environments), and secret values or vault contents are never passed through chat (decisions.md).

When creating cloud routine sessions via API, if connectors such as Gmail or Google Drive are attached automatically, the script immediately strips them using clear_mcp_connections (ops/routine.md). In addition, the Site Factory researches public municipal MCP servers as prior art for open data publishing (ideas/reports/), and in environments that do not support Dynamic Client Registration, agents record the body as unretrieved rather than forcing brittle authentication workarounds.

Caveats & Operational Rules

  • Connectivity does not mean exposing raw secrets: Just because an MCP server can connect to a vault does not mean AI models should read plaintext API keys or passwords; the Site Factory keeps automated operational keys in the system Keychain and never exposes plaintext secrets over MCP.
  • Unused connectors widen the attack surface: If a fetched web page contains a prompt injection payload, leaving unnecessary MCP connectors (such as email or cloud drive) attached creates a severe data exfiltration risk.
  • Never hide authentication failures: When an MCP tool fails authentication, never fabricate output; explicitly record the unretrieved status and hand off cleanly.

Related Terms

References

  • Book: Michael Nygard, "Release It!", 2nd Edition, Chapter 5 (Integration Points)

Verified: 2026-11-08