Skip to main content

What is MCP (Model Context Protocol)?

The Model Context Protocol (MCP) is an open protocol created and maintained by Anthropic - MCP github organization

MCP defines how AI agents (like Saiki agents) can discover, connect to, and interact with external tools, services, and APIs in a standardized way.

Why MCP Matters

  • Interoperability: MCP provides a common language for agents and tools, making it easy to connect new services without custom integration code for each one.
  • Extensibility: Anyone can build and share MCP-compatible tools, expanding what agents can do.
  • Modularity: Tools are decoupled from the agent's core logic, so you can add, remove, or swap tools as needed.

How Saiki Agents Use MCP

Saiki agents use MCP to:

  • Discover available tools: MCP servers advertise what actions they support (e.g., read a file, send an email, browse the web).
  • Connect to tools: Saiki agents communicate with MCP servers using a standard protocol (often over stdio, HTTP, or sockets).
  • Invoke tool actions: When you give a command, Saiki selects the right tool(s) via MCP and orchestrates their use to fulfill your request.
  • Read server resources: Saiki agents can read resources from the server, like files, databases, etc., and use that to reason about what to do next.

Example: Registering a Tool via MCP

Suppose you want to add a filesystem tool. In your Saiki agent configuration file, you might specify:

mcpServers:
filesystem:
type: stdio
command: npx
args:
- -y
- "@modelcontextprotocol/server-filesystem"
- .
connectionMode: strict # Ensure this tool is always available

This tells your Saiki agent to connect to the filesystem MCP server, which then advertises its capabilities to the agent.

Learn More

MCP is a key part of what makes Saiki flexible, extensible, and able to automate across a wide range of tools and services.