liveBook · Manning

MCP server

As explained in Building Reliable AI Systems

An MCP server is a server component that implements the Model Context Protocol and exposes tools or data capabilities to compatible AI applications.

An MCP server exposes tools or data through a standardized interface so compatible AI applications can discover and invoke them. Each server supplies the tool schema and runs its execution logic; MCP standardizes the interface, not authentication, authorization, or endpoint security. section 7.0 section 7.3

A product-search server can use a CSV catalog instead of a live commerce API, keeping the tool portable and testable. In an end-to-end request, an AI runtime discovers the server’s search schema, routes a model-generated call to it, and uses its JSON results to answer the user. A local endpoint suits testing; deployment requires a secure public-facing endpoint. section 7.4 section 7.6.2

curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4.1-mini",
    "input": "I need a lightweight vest under $100.",
    "tools": [
      {
        "type": "mcp",
        "server_url": "http://localhost:8000",
        "require_approval": "never"
      }
    ]
  }'

Example Responses API request that connects an AI runtime to an MCP server. Automatic tool execution without approval is suitable only for simplicity; sensitive actions need approval or custom controls. section 7.6.2

How Building Reliable AI Systems covers it

How deep it goes
Traces tool discovery, schema exchange, execution, and results, but does not detail protocol internals.
Examples
Uses a CSV product catalog, a vest-search request, and an email-tool schema to illustrate server tools.
What you can do after
Build and expose a product-search server, then connect it to an AI runtime for tool discovery and execution.
How it connects
Connects MCP servers with MCP clients, AI applications, external APIs, and tool integrations.

Also explained in

Compare how 12 books explain MCP server →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Reliable AI Systems. The section links point to the parts of the book it draws on.