liveBook · Manning

MCP

As explained in Investing for Programmers

A model context protocol is a standardized interface that lets AI agents connect to external data sources and retrieve data in a consistent format.

A Model Context Protocol (MCP) is a standardized interface that lets AI agents connect to external data sources and retrieve information in a consistent format. It functions like an API designed explicitly for large language models. section 9.1.2

MCPs provide an alternative to other agent data-access patterns:

  • RAG databases aggregate and index external data, but require ingestion jobs and ongoing maintenance. section 9.1.2
  • Web searches expose a standardized search interface to agents. section 9.1.2
  • MCPs let an LLM query data directly during response generation, reducing the need for custom aggregation jobs as more MCPs become available. section 9.1.2

Current share price

An AI agent can use an MCP to query the latest share price while generating an answer, rather than relying only on previously collected data. section 9.1.2

Figure 9.1 A reference workflow for an AI agent
figure

Use the reference workflow to place MCP-based retrieval between an agent’s task and its response-generation process. section 9.1.2

How Investing for Programmers covers it

How deep it goes
Defines the interface, compares it with RAG and web search, and stops short of implementation details.
Examples
Uses an agent querying the latest stock share price while generating an answer.
What you can do after
Apply it via an MCP interface to let an LLM retrieve current external data during answer generation.
How it connects
Connects AI agents, APIs, large language models, RAG databases, and web search.

Also explained in

Compare how 14 books explain MCP →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Investing for Programmers. The section links point to the parts of the book it draws on.