MCP Server & AI Agent Communications

Research compiled 18 Jun 2026 ยท Sources: Anthropic, MCP Docs, GitHub

Overview: What is MCP?

The Model Context Protocol (MCP) is an open standard introduced by Anthropic in November 2024. It provides a universal way for AI assistants to connect with external data sources, tools, and services โ€” replacing one-off integrations with a single, standardised protocol.

Think of it like USB-C for AI โ€” instead of building a custom connector for every data source (databases, APIs, file systems, etc.), you build once against the MCP standard and everything works.

MCP is now at 87,000+ GitHub stars across its reference servers and has SDKs in 10 languages (Python, TypeScript, Go, Rust, Java, Kotlin, C#, PHP, Ruby, Swift).

MCP Architecture

๐Ÿค– AI Host Claude Desktop / Hermes Agent / Custom ๐Ÿ”Œ MCP Client Initiates connection Negotiates capabilities Stdio / HTTP ๐Ÿ–ฅ๏ธ MCP Server ๐Ÿ“„ Resources ๐Ÿ”ง Tools ๐Ÿ“‹ Prompts ๐Ÿ”„ Sampling JSON-RPC over Stdio or HTTP(S) Protocol version: 2025-11-25

Core Components

Transport Types

MCP in AI Agent Communications

MCP enables a standardised agent-to-tool communication pattern that solves the fragmentation problem in AI agent ecosystems. Here's how it works in practice:

1. Agent โ†’ Tool (Function Calling)

The AI agent (Host) uses MCP tools to interact with the outside world. The server advertises available tools via tools/list, and the agent calls them via tools/call. This replaces custom function-calling implementations with a standard protocol.

2. Agent โ†’ Data (Context Injection)

MCP resources expose data to the agent โ€” files, database records, API responses. Unlike RAG pipelines that require custom embedding/retrieval setups, MCP provides a standard way for agents to pull in context from any source.

3. Server โ†’ Agent (Sampling / Reverse Flow)

MCP servers can request LLM completions from the agent host via sampling. This enables agent-in-the-loop workflows โ€” the server says "I need the agent to reason about this data" and the host handles the LLM call. Hermes Agent supports this natively.

4. Multi-Agent Coordination

With multiple MCP servers connected, an agent can coordinate across:

All through one standard protocol โ€” no custom connectors needed.

How Hermes Agent Uses MCP

Hermes Agent has a built-in native MCP client that auto-discovers and registers tools from MCP servers at startup. Here's the workflow:

config.yaml mcp_servers: ... ๐Ÿ” discover_mcp_tools() Connect โ†’ Init โ†’ list_tools() ๐Ÿ“ Register Tools mcp_{server}_{tool} Injected into toolsets ๐Ÿค– Agent Uses "Get the time" โ†’ mcp_time_* Config โ†’ Discover โ†’ Register โ†’ Use (all at startup)

Configured in ~/.hermes/config.yaml:

mcp_servers:
  time:
    command: "uvx"
    args: ["mcp-server-time"]
  
  filesystem:
    command: "npx"
    args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
  
  github:
    command: "npx"
    args: ["-y", "@modelcontextprotocol/server-github"]
    env:
      GITHUB_PERSONAL_ACCESS_TOKEN: "ghp_..."

Key Benefits for AI Agents

Available Reference Servers

Official MCP reference implementations include: Everything Fetch Filesystem Git Memory Sequential Thinking Time

Community servers include: Brave Search, GitHub, GitLab, Google Drive, Google Maps, PostgreSQL, Puppeteer, Redis, Sentry, Slack, SQLite, and 5,000+ more on the MCP Registry.

Sources & Further Reading

โ† Back to Home โ† All Diagrams