AIYINGFrom AI Awareness to Accomplishment
Showing posts with label AI Integration. Show all posts
Showing posts with label AI Integration. Show all posts

Friday, November 13, 2026

AI Engineering Active Concepts #009 — Model Context Protocol (MCP): Connecting AI to Tools and Data

AI ENGINEERING — ACTIVE CONCEPTS & PRACTICES | #009

Model Context Protocol (MCP): Standardizing AI Connections to Tools and Data



Chapter 2: Engineering AI Applications and Agents

AIYING — Accomplishing with AI

The Big Idea: Tool calling enables AI applications to use external capabilities. Model Context Protocol (MCP) provides a common interface through which compatible AI applications can discover and interact with external tools, resources, and prompts.

Engineering question: How can an organization make its existing systems accessible to multiple AI applications without building and maintaining a separate custom integration for every combination?

Contents

  1. Why MCP Matters
  2. UNDERSTAND — What Is MCP?
  3. CONNECT — Related Engineering Concepts
  4. MCP Architecture and Lifecycle
  5. APPLY — Enterprise Procurement Integration
  6. Worked Example: Purchase Order Lookup
  7. Engineering Decisions and Trade-offs
  8. Active Industry Practices
  9. ACCOMPLISH — Design an MCP Integration
  10. Student and Practitioner Project
  11. Check Your Understanding
  12. Active Connections
  13. References and Further Reading

1. Why MCP Matters

Imagine an enterprise operating three AI applications:

  • A procurement assistant
  • A technical-support assistant
  • An AI operations assistant

Each application needs information from enterprise databases, document repositories, and business software.

Without a common integration approach, engineering teams may develop separate connectors for each application and external service.

This creates duplicated work, inconsistent interfaces, maintenance costs, and additional security review requirements.

MCP addresses part of this integration challenge by standardizing how AI applications discover and interact with exposed capabilities.

MCP standardizes the interface between compatible AI applications and external capabilities. It does not eliminate the need to implement, secure, and maintain the underlying integrations.

↑ Back to Contents

2. UNDERSTAND — What Is MCP?

Model Context Protocol (MCP) is an open protocol for connecting AI applications to external systems that provide tools, resources, and reusable prompts.

Originally introduced by Anthropic, MCP has developed as an ecosystem protocol with implementations across multiple AI platforms and developer tools.

The three architectural roles

ComponentResponsibility
MCP HostThe AI application that manages user interaction and MCP connections
MCP ClientA protocol component within the host that communicates with an MCP server
MCP ServerExposes capabilities through a standardized MCP interface

A host can manage connections to multiple servers through separate MCP clients.

The three foundational server capabilities

CapabilityPurposeExample
ToolsExpose callable operationsRetrieve a purchase order
ResourcesExpose contextual informationRead an approved supplier policy
PromptsExpose reusable prompt templatesSupplier delay analysis template

Tools, resources, and prompts are distinct protocol concepts. A server may expose one or more of them.

How is MCP different from an API?

An API defines how software accesses a particular service. MCP defines a common interface for presenting capabilities to compatible AI applications.

An MCP server can wrap an existing REST API, database, or enterprise service. The original API remains part of the implementation.

How is MCP different from tool calling?

Tool calling is the process through which a model or AI application requests an external operation.

MCP provides a standardized mechanism for discovering and accessing tools and other capabilities.

An AI application may translate a model-generated tool request into an MCP tool invocation.

Neither tool calling nor MCP automatically guarantees that an operation is safe or authorized.

↑ Back to Contents

3. CONNECT — Related Engineering Concepts

ConceptConnection to MCP
Tool CallingMCP tools can be made available for model-requested operations
Structured OutputsTool arguments and results use structured data
JSON SchemaDescribes tool input and output structures
APIsMCP servers can expose capabilities backed by APIs
Context EngineeringMCP resources can contribute external context
AI AgentsAgents may coordinate capabilities exposed by MCP servers
AuthenticationEstablishes identities and access credentials
AuthorizationDetermines which operations and records are permitted
ObservabilityMonitors server interactions, errors, and latency
AI GovernanceEstablishes trust, oversight, and accountability requirements

An important architectural insight

MCP separates the presentation of external capabilities from much of the application-specific integration code.

This can improve reuse and interoperability when both the host and server implement compatible protocol capabilities.

↑ Back to Contents

4. MCP Architecture and Lifecycle

Enterprise AI Assistant — MCP Host

↓

MCP Client

↓ Protocol Communication

MCP Server

↓

Enterprise API / Database / Service

↓

Authorized Result

↓

AI Application

Step 1 — Connection and initialization

The MCP client and server establish communication and negotiate supported protocol capabilities.

Step 2 — Capability discovery

The client can discover available tools, resources, or prompts using the relevant protocol operations.

Step 3 — Model or application selection

The host determines which available capability is relevant to the task. A model may propose a tool call, but application logic remains responsible for execution decisions.

Step 4 — Invocation

The MCP client sends a request to the server using the defined protocol interface.

Step 5 — External execution

The server may access an underlying API or database, subject to applicable permissions and controls.

Step 6 — Result handling

The result returns to the host, which may validate it, display it, or supply relevant information to the model.

Transport options

MCP supports communication arrangements including local standard input/output (stdio) and remote Streamable HTTP transport.

Transport selection affects deployment, authentication, operational monitoring, and security architecture.

Use the current MCP specification for implementation details because protocol features and transport guidance evolve.

↑ Back to Contents

5. APPLY — Enterprise Procurement Integration

Scenario: Multiple Assistants, Shared Enterprise Capabilities

A manufacturing company has purchase-order information in an ERP system, inventory records in a database, and supplier policies in a document repository.

The organization wants multiple AI assistants to access these capabilities through controlled interfaces.

Approach A — Separate integrations

Each assistant implements its own connection logic for the ERP system, inventory database, and document repository.

Changes to an underlying API may require updates across multiple applications.

Approach B — Shared MCP servers

The engineering team develops or deploys MCP servers that expose approved capabilities:

  • Procurement server: Purchase-order lookup tools.
  • Inventory server: Stock availability tools.
  • Policy server: Approved procurement documents as resources.

Compatible AI applications connect through MCP clients.

Server implementations still need to enforce user permissions, data restrictions, input validation, and operational controls.

Engineering outcome

This architecture may reduce duplicated integration work and improve reuse.

However, standardizing the interface does not automatically make business semantics, permissions, or error handling identical across systems.

↑ Back to Contents

6. Worked Example: Purchase Order Lookup

The following is a conceptual example using fictional enterprise data. It is not a live MCP connection.

Available MCP tool

{
  "name": "get_purchase_order",
  "description": "Retrieve an authorized purchase order",
  "inputSchema": {
    "type": "object",
    "properties": {
      "po_id": {
        "type": "string"
      }
    },
    "required": ["po_id"],
    "additionalProperties": false
  }
}

Illustrative MCP tool request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_purchase_order",
    "arguments": {
      "po_id": "PO-1048"
    }
  }
}

Illustrative tool result

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "PO-1048: delayed; revised delivery 2026-11-23"
      }
    ]
  }
}

The tool result is illustrative. Production implementations should use appropriate typed outputs, validation, error reporting, and access controls.

What happens next?

The AI assistant can report the retrieved order status.

If the user also requests a follow-up task, the host may make an additional authorized tool available for that purpose.

The MCP server must not assume that a request from an AI model is automatically permitted.

Key distinction

The model may select the capability. The MCP client transports the request. The server implements the operation. The application and supporting systems remain responsible for authorization and outcome verification.

↑ Back to Contents

7. Engineering Decisions and Trade-offs

DecisionPotential BenefitRisk or Trade-off
Shared MCP serversReusable integrationsShared dependency and operational concentration
Local serversConvenient local tool accessHost-machine access and process security risks
Remote serversCentralized servicesNetwork, authentication, and availability concerns
Read-only capabilitiesLower operational impactLimited automation
Write-enabled toolsGreater workflow automationHigher risk of unintended side effects
Broad tool catalogsMore capabilitiesSelection complexity and attack surface
Third-party serversFaster integrationSupply-chain and trust assessment requirements

Important security risks

  • Malicious or compromised MCP servers
  • Excessive tool permissions
  • Unauthorized access to enterprise records
  • Prompt injection through tool results or resources
  • Credential leakage or insecure token handling
  • Unapproved data transmission
  • Misleading tool descriptions
  • Unintended or repeated write operations

Recommended engineering controls

  • Maintain an approved server inventory.
  • Review server provenance and implementation.
  • Use least-privilege credentials.
  • Enforce authorization for each sensitive operation.
  • Validate tool inputs and outputs.
  • Require appropriate approval for consequential actions.
  • Restrict access to sensitive resources.
  • Log relevant operations without exposing secrets.
  • Monitor errors, changes, and unusual tool activity.
  • Test resilience and failure recovery.
MCP standardizes connectivity. Security, trust, and governance must still be engineered around every connection.

↑ Back to Contents

8. Active Industry Practices

Established foundations

  • Client-server protocol architecture
  • Structured tool discovery and invocation
  • Resource access through standardized interfaces
  • Reusable prompt templates
  • Local and remote server deployments
  • Integration with existing APIs and services

Developing engineering practices

  • Enterprise MCP server registries
  • Centralized server governance
  • Fine-grained tool access policies
  • Multi-server agent architectures
  • Server trust and provenance assessment
  • MCP observability and evaluation

Where MCP is relevant

MCP is relevant to AI coding assistants, enterprise knowledge assistants, data-analysis workflows, business-process automation, agentic applications, and AI-enabled developer environments.

It is particularly useful when multiple compatible AI applications need reusable access to external capabilities.

For a simple application with one stable API integration, a direct API connection may remain the more practical engineering choice.

Practice status: Open integration protocol with an evolving ecosystem and operational practices.

Reviewed: November 2026.

↑ Back to Contents

9. ACCOMPLISH — Design an MCP Integration

Exercise: Enterprise Procurement MCP Architecture

Consider a fictional manufacturing company with the following systems:

ERP: Purchase orders and supplier records.

Inventory database: Stock availability.

Document repository: Procurement policies.

AI applications: Procurement assistant and operations assistant.

Your tasks

  1. Identify the capabilities each AI application needs.
  2. Decide which capabilities should be tools and which should be resources.
  3. Design an MCP server architecture.
  4. Define a purchase-order lookup tool and its input schema.
  5. Specify how user permissions should be enforced.
  6. Identify operations requiring approval.
  7. Describe how errors and unavailable services should be handled.
  8. Explain how the design reduces duplicated integrations.

Reusable AI-assisted prompt

Act as an enterprise AI integration engineer.

Design an MCP-based architecture for a
fictional procurement organization.

Systems:
- ERP purchase orders
- Inventory database
- Procurement policy repository

AI applications:
- Procurement assistant
- Operations assistant

Provide:
1. MCP host, client, and server roles.
2. Proposed tools, resources, and prompts.
3. Tool input schemas.
4. Capability discovery and execution flow.
5. Authentication and authorization controls.
6. Human approval requirements.
7. Failure handling and observability.
8. Integration reuse benefits.
9. Risks and limitations.
10. A small implementation test plan.

Do not assume that MCP automatically
provides security or business authorization.

Accomplishment: Design an MCP integration architecture that supports reusable capabilities while preserving operational control.

↑ Back to Contents

10. Student and Practitioner Project

Mini Project: Build a Read-Only MCP Server

Objective: Build or prototype an MCP server that exposes purchase-order lookup capabilities using fictional data.

Project requirements

  1. Create a small fictional purchase-order dataset.
  2. Choose a compatible MCP SDK.
  3. Implement a read-only purchase-order lookup tool.
  4. Define and validate tool input parameters.
  5. Expose a sample procurement-policy resource.
  6. Connect using a compatible MCP client or inspection tool.
  7. Test capability discovery.
  8. Test successful and unsuccessful tool invocations.
  9. Check that unauthorized or invalid requests are rejected.
  10. Document execution logs and observed limitations.

Suggested evaluation measures

MetricWhat It Measures
Discovery successWhether the client can discover capabilities
Invocation accuracyWhether valid tool calls return correct results
Input validationWhether invalid arguments are rejected
Access controlWhether unauthorized operations are blocked
LatencyTime required to complete tool requests
Error handlingWhether failures are reported accurately
Reuse potentialWhether multiple compatible clients can use the server

Deliverable: A working demonstration or architecture prototype, tool definition, sample request and response, test results, and an engineering recommendation.

Use fictional data and a local development environment. Do not expose real credentials or production systems during the exercise.

↑ Back to Contents

11. Check Your Understanding

  1. What problem does MCP address in AI engineering?
  2. What is the difference between an MCP host, client, and server?
  3. How do MCP tools differ from resources and prompts?
  4. How is MCP different from a conventional API?
  5. How does MCP relate to model tool calling?
  6. Does MCP automatically enforce enterprise authorization?
  7. What risks arise from connecting untrusted MCP servers?
  8. When might a direct API integration be preferable?

Reflection: If an MCP server exposes a tool named "approve_payment", should an AI assistant be allowed to invoke it merely because the tool is discoverable? What additional controls are necessary?

↑ Back to Contents

12. Active Connections

Coming next — #010: Agent Orchestration: Designing Reliable Multi-Step AI Workflows.

↑ Back to Contents

13. References and Further Reading

  1. Model Context Protocol — Introduction
  2. MCP — Official Specification
  3. MCP — Documentation and Developer Guides
  4. MCP — Official GitHub Organization
  5. MCP — Security Best Practices

MCP specifications, SDKs, transport guidance, and security practices evolve. Consult the latest official documentation before implementing production integrations.


Final Takeaway

MCP helps make external tools, data, and reusable prompts accessible through a common protocol. Effective AI engineering combines this interoperability with explicit security, authorization, validation, and operational accountability.

AI Engineering — Active Concepts & Practices
Active Concept #009 — Model Context Protocol

AIYING — Accomplishing with AI

Understand → Connect → Apply → Accomplish

Thursday, November 12, 2026

AI Engineering Living Glossary #017 — Model Context Protocol (MCP): Connecting AI to Tools and Data

AI ENGINEERING | LIVING GLOSSARY | #017

MODEL CONTEXT PROTOCOL (MCP)

Standardizing Connections Between AI Applications and External Capabilities



Chapter 3: Connecting AI to Tools, Workflows, and Agents

Lesson 17 of 24

AIYING — Accomplishing with AI

Imagine an enterprise AI assistant that must answer:

"Find the latest customer support issues for Acme, check the relevant project documentation, and summarize what our team should investigate."

The information may be distributed across a customer relationship management system, a support platform, and a document repository.

Traditionally, engineers might build separate custom integrations for each system and each AI application.

What happens when another AI assistant needs the same integrations? Must the engineering team implement everything again?

Model Context Protocol (MCP) addresses this integration challenge by defining a common protocol through which compatible AI applications can discover and interact with external capabilities.

But interoperability is not the same as trust. A connection may be technically valid while still exposing the wrong data, invoking the wrong operation, or returning misleading information.

Central engineering insight: MCP standardizes how capabilities are exposed and accessed. The surrounding system remains responsible for security, authorization, correctness, and business outcomes.

1. What Is MCP?

Model Context Protocol (MCP) is an open protocol that standardizes communication between AI applications and systems that expose external tools, information, and reusable prompts.

Its purpose is to reduce the need for application-specific integration interfaces.

Through MCP, a compatible AI application can discover capabilities exposed by an MCP server and use those capabilities according to the protocol and the application's permissions.

MCP is not itself an AI model, an agent, a database, or a workflow engine.

It is a communication and integration protocol.

Also, MCP does not automatically make an external connection secure. Secure deployment depends on transport protection, identity, authorization, trusted configuration, and appropriate operational controls.

↑ Back to contents

2. Why MCP Matters

AI applications increasingly need access to external information and software capabilities.

Without a common integration approach, each application may require custom code for every external service.

Integration challengeWhat MCP can help with
Different connector interfaces.A shared protocol for exposing capabilities.
Repeated integration development.Potential reuse of compatible MCP servers.
Inconsistent capability discovery.Standardized discovery mechanisms.
Different ways to invoke tools.Common tool invocation structures.
Separate approaches to external context.Standardized resource access.
Application-specific prompt libraries.Reusable prompts exposed through servers.

These benefits are conditional. Applications must support MCP, servers must expose useful capabilities, and enterprise security requirements still need to be met.

Industry insight: Standardization can reduce integration friction, but it does not remove the need to engineer the underlying business integration.

↑ Back to contents

3. Core Components and Capabilities

A. MCP Host

The host is the AI application that manages the overall experience and its MCP connections.

Examples may include a compatible desktop AI application, development environment, or enterprise assistant.

B. MCP Client

The MCP client is a protocol component within the host that communicates with an MCP server.

A host can manage multiple client-server connections.

C. MCP Server

An MCP server exposes capabilities to connected clients.

It may wrap an existing API, database access layer, file system interface, or enterprise service.

D. Tools

Tools represent callable operations.

Examples:

  • Search support tickets.
  • Retrieve an order status.
  • Create a draft support ticket.
  • Query an approved business service.

Tool definitions include names, descriptions, and input schemas. Implementations may provide additional metadata.

E. Resources

Resources expose information that an application can read through defined resource interfaces.

Examples include documents, reference information, and other accessible content.

F. Prompts

Prompts expose reusable prompt templates or structured message content for supported applications.

G. Protocol messages

MCP uses structured communication, including JSON-RPC messages, to exchange requests, responses, and notifications.

H. Transport

Supported transports include local standard input/output communication and HTTP-based communication, depending on deployment and protocol version.

Remember: Host = application. Client = protocol connection component. Server = capability provider. Tools, resources, and prompts = different capabilities exposed through the protocol.
↑ Back to contents

4. How MCP Works

Consider a user asking an AI assistant to retrieve recent support tickets.

User Request
     |
     v
AI Application (MCP Host)
     |
     v
MCP Client
     |
     | Protocol communication
     v
MCP Server
     |
     v
Authorized Support API
     |
     v
Support Ticket Data
     |
     v
MCP Server Response
     |
     v
Host Validates and Processes
     |
     v
AI-Assisted User Response

Representative execution sequence

  1. The host establishes a connection with a configured MCP server.
  2. The client and server initialize their protocol session and negotiate supported capabilities.
  3. The application discovers relevant tools or other exposed capabilities.
  4. The user submits a request.
  5. The application may provide suitable tool descriptions to the model.
  6. The model may propose invoking a tool.
  7. The host applies validation, policy, and authorization controls.
  8. The MCP client sends an appropriate tool request to the server.
  9. The server validates the request and performs its authorized underlying operation.
  10. The result returns through the protocol.
  11. The host treats the result as external data and processes it appropriately.
  12. The model may use the result to produce a response.

The model does not directly gain unrestricted access to an enterprise system merely because an MCP server is available.

Actual access depends on the host, server implementation, identity, permissions, and the underlying service.

↑ Back to contents

5. MCP vs Tool Calling, APIs, RAG, and Agents

ConceptPrimary purpose
APIProvides an interface to software or data capabilities.
Tool CallingAllows a model to request an operation through an application.
MCPStandardizes how compatible applications connect to exposed tools, resources, and prompts.
RAGRetrieves relevant information to ground model responses.
WorkflowCoordinates a designed sequence or network of operations.
AI AgentUses model-guided decisions to pursue a goal.
Agent OrchestrationCoordinates agent execution, handoffs, and shared task state.

MCP can support several of these patterns.

For example, a RAG application may retrieve documents through an MCP resource or tool. An agent may use tools exposed by MCP servers. A workflow may invoke MCP-connected operations.

However, MCP does not itself perform retrieval ranking, manage an agent's goals, or orchestrate a complete business process.

↑ Back to contents

6. MCP Engineering Architecture

Consider an enterprise assistant connected to three systems.

       Enterprise AI Assistant
               (Host)
                  |
        +---------+---------+
        |         |         |
        v         v         v
     Client A  Client B  Client C
        |         |         |
        v         v         v
     MCP CRM   MCP Docs  MCP Support
      Server    Server     Server
        |         |         |
        v         v         v
     CRM API   Document   Ticket API
               Service

Cross-cutting controls:
Identity | Authorization | Validation
Audit | Monitoring | Error Handling

The host decides which servers to connect to and which capabilities are made available within its application.

Each server must protect access to its underlying systems.

Different servers may have different security requirements and data classifications.

The architecture should also define how the host handles unavailable servers, tool errors, and incompatible capability versions.

Important architectural boundaries

  • Application-to-server communication.
  • Server-to-underlying-service communication.
  • Model-to-application tool requests.
  • User identity and delegated permissions.
  • External data entering the model context.

These boundaries should be evaluated separately rather than assuming that protocol compatibility provides end-to-end security.

↑ Back to contents

7. Security and Trust Boundaries

Server trust

Connect only to servers that have been appropriately assessed and approved. A malicious server may expose misleading descriptions, request excessive permissions, or return hostile content.

Authentication and authorization

Apply the authentication and authorization mechanisms appropriate to the transport, server, and underlying service. Do not treat discovery as authorization.

Least privilege

Expose only the capabilities needed for the user's legitimate task.

Consent and approval

Use clear confirmation and approval mechanisms for consequential operations.

Prompt injection

Tool descriptions, resources, documents, and tool outputs can carry untrusted instructions. The host must not automatically promote external content into higher-priority instructions.

Data minimization

Avoid transmitting unnecessary customer, employee, financial, or confidential information.

Credential handling

Protect access tokens and secrets. Avoid passing credentials into model prompts or exposing them through tool results.

Tool validation

Validate arguments, access scope, and operation-specific constraints at trusted execution boundaries.

Auditability

Record relevant connection, authorization, and execution events without unnecessarily exposing sensitive data.

Failure handling

Handle unavailable servers, timeouts, malformed responses, and uncertain execution results.

Security principle: A standardized connection is not a trusted connection by default. MCP integrations require the same disciplined security engineering as other external integrations.
↑ Back to contents

8. Industry Applications

IndustryPotential MCP-enabled capability
Customer supportRetrieve tickets and authorized customer information.
Software engineeringAccess repositories, documentation, and approved development tools.
SalesQuery customer and opportunity records.
Human resourcesAccess permitted policy and employee service information.
OperationsRetrieve inventory and process status.
Knowledge managementAccess approved documents and reference content.
AnalyticsInvoke governed data-query capabilities.
Enterprise automationConnect controlled workflow operations to AI applications.

These are architectural possibilities, not guarantees that a particular enterprise application provides an MCP server.

↑ Back to contents

9. Engineering Design Decisions

  1. Does MCP provide a useful advantage over a direct API integration?
  2. Which MCP hosts and clients will be supported?
  3. Which servers are trusted and approved?
  4. Which tools, resources, and prompts should be exposed?
  5. Which capabilities are read-only?
  6. Which capabilities can change enterprise data?
  7. How will user identity and permissions be enforced?
  8. How will credentials and secrets be protected?
  9. What transport is appropriate for the deployment?
  10. How will external data be validated?
  11. How will prompt injection risks be addressed?
  12. Which operations require human confirmation?
  13. How will tool failures be detected and handled?
  14. How will server versions and compatibility be managed?
  15. How will integration quality be evaluated?
  16. How will the organization monitor and audit usage?

Engineering principle: Standardize the interface where it creates value, while retaining explicit responsibility for the security and correctness of the integrated operation.

↑ Back to contents

10. Practical Industry Case: The Enterprise Support Assistant

Scenario: A fictional enterprise wants an AI assistant to investigate a customer's unresolved support issues.

The assistant needs access to three approved systems:

  • CRM for customer account information.
  • Document repository for product support guidance.
  • Ticketing system for current incidents.

Proposed MCP architecture

The enterprise deploys or approves MCP servers that expose narrowly scoped capabilities for these systems.

The AI host connects to the relevant servers and discovers permitted operations.

Illustrative tools

crm.get_customer_summary
docs.search_support_guides
tickets.list_open_tickets

These are fictional tool names used for teaching. They are not standardized MCP tool names.

Execution sequence

  1. The user asks for a summary of Acme's unresolved support issues.
  2. The host verifies the user's identity and permitted customer access.
  3. The application selects relevant approved capabilities.
  4. The CRM tool retrieves an authorized customer summary.
  5. The ticketing tool retrieves open support cases.
  6. The documentation tool searches relevant support guidance.
  7. The host validates returned structures and handles errors.
  8. The AI model summarizes findings with references to available evidence.
  9. The application avoids presenting unsupported recommendations as verified facts.
  10. Any requested record modification follows separate authorization and approval controls.

Failure scenario A: Unauthorized customer access

The user requests records outside their assigned accounts.

The underlying authorization layer denies access even if the model requests the operation.

Failure scenario B: Untrusted document instructions

A retrieved support document contains text instructing the assistant to disclose unrelated customer information.

The application treats that text as untrusted document content, not as an authorized instruction.

Failure scenario C: Ticket server unavailable

The host reports that ticket information could not be retrieved rather than inventing a current ticket status.

Failure scenario D: Conflicting records

CRM and ticket data disagree on a customer identifier.

The assistant flags the inconsistency and avoids merging records without a reliable matching rule.

What this case demonstrates

MCP can simplify the interface between AI applications and external systems. It does not replace access controls, data quality checks, source verification, or operational accountability.

Industry insight: The value of MCP is interoperability. The value of AI engineering is making that interoperability useful, secure, and dependable.
↑ Back to contents

11. Hands-On Mini Project

Design a Read-Only MCP Support Server

Objective: Design or implement a simple MCP server that exposes fictional customer support information.

Use only synthetic data. No live enterprise credentials are required.

Step 1: Prepare sample data

Create five fictional support tickets with customer IDs, issue descriptions, statuses, and timestamps.

Step 2: Define capabilities

Design a read-only tool named get_ticket_status that accepts a ticket identifier.

Optionally expose a resource containing fictional support policy information.

Step 3: Define the tool schema

{
  "name": "get_ticket_status",
  "description": "Return the status of an authorized fictional support ticket",
  "inputSchema": {
    "type": "object",
    "properties": {
      "ticket_id": {
        "type": "string"
      }
    },
    "required": ["ticket_id"]
  }
}

This is an illustrative tool definition, not a complete MCP server implementation.

Step 4: Implement or simulate

Use an MCP-compatible SDK and local test environment, or document the request-response interactions if coding is not yet available.

Step 5: Apply authorization

Ensure the simulated user can retrieve only the tickets assigned to their fictional account.

Step 6: Test normal behavior

Request valid ticket statuses and verify the returned data against the sample dataset.

Step 7: Test failure behavior

  • Unknown ticket ID.
  • Missing required argument.
  • Unauthorized ticket request.
  • Simulated server timeout.
  • Malformed result.
  • Misleading text embedded in a ticket description.

Step 8: Evaluate

MetricWhat to measure
Discovery successCan the client identify the exposed tool?
Schema validityAre tool arguments correctly structured?
Authorization enforcementAre unauthorized requests denied?
Result fidelityDo results match the fictional records?
Failure handlingAre unavailable or invalid results handled correctly?
Prompt injection resistanceDoes hostile content remain untrusted data?
LatencyHow long do simulated tool calls take?
Audit completenessAre important operations traceable?

Success criteria

  • The tool can be discovered by a compatible client.
  • Valid requests return correct fictional data.
  • Unauthorized requests are rejected.
  • Invalid inputs do not trigger unintended operations.
  • Untrusted ticket text does not override application instructions.
  • Failures are communicated without fabricated results.

Reflection

What did MCP standardize? Which engineering responsibilities remained outside the protocol? Would a direct API integration be simpler for this particular application?

↑ Back to contents

12. Connected Glossary Terms

  • Tool Calling (#013): Allows a model to request an operation that may be exposed through MCP.
  • Workflows (#014): Can coordinate MCP-connected operations.
  • AI Agents (#015): Can use MCP-exposed capabilities when supported by their host.
  • Agent Orchestration (#016): Can coordinate agents that access tools through MCP.
  • RAG (#004): Can retrieve information through MCP-connected resources or tools.
  • Prompt Engineering (#006): Helps define model behavior when using external capabilities.
  • Evals (#007): Tests tool use and end-to-end task outcomes.
  • Grounding (#009): Connects responses to retrieved evidence.
  • Guardrails (#010): Enforces security and operational restrictions.
  • Observability (#011): Tracks tool execution and failures.
  • Human-in-the-Loop (#012): Provides oversight for consequential actions.

Previous lesson: #016 — Agent Orchestration: Coordinating Agent Execution and Handoffs

Next lesson: #018 — Structured Outputs: Making AI Responses Machine-Readable and Verifiable.

↑ Back to contents

13. Living Update

Editorial baseline: November 2026

MCP is an evolving protocol ecosystem. Implementations should be checked against the applicable published specification and SDK versions rather than assuming that all hosts and servers support identical capabilities.

Areas to monitor include:

  • Protocol version compatibility.
  • Transport and authorization guidance.
  • Server capability discovery.
  • Tool, resource, and prompt interoperability.
  • Enterprise server governance.
  • Trusted server distribution and approval.
  • Credential handling and delegated access.
  • Prompt injection and tool-output security.
  • Agent and workflow framework integration.
  • Testing, tracing, and operational monitoring.

Living Glossary note: Review this entry when the MCP specification or relevant implementation guidance changes.

↑ Back to contents

14. Key Takeaway

MCP standardizes how compatible AI applications connect to external tools, resources, and prompts. Reliable MCP integration still depends on security, validation, authorization, and outcome verification.

MCP can make AI integration more reusable and interoperable.

But the goal is not merely to connect more systems. It is to expose the right capabilities to the right users under the right controls.

Think like an AI engineer: If an MCP server exposes a powerful tool, what prevents an unauthorized user or model-generated request from misusing it?

↑ Back to contents

15. References and Further Reading

↑ Back to contents

AI Engineering — Living Glossary

One Term. One Industry Connection. One Practical Insight. One Action.

AIYING — Accomplishing with AI

Chapter 3 | Lesson 17 | MODEL CONTEXT PROTOCOL

Understand the Term. Connect the Technology. Apply the Knowledge.

↑ Return to top

Saturday, October 3, 2026

The Minimalist MCP: Model Context Protocol Explained in 100 Words

The Minimalist MCP - Model Context Protocol Explained in 100 Words by Ravindra Dastikop

THE MINIMALIST MCP

Model Context Protocol Explained in 100 Words

Ravindra Dastikop

Understand less. Accomplish more.


Why This Book?

MCP is becoming complicated.

Hosts.
Clients.
Servers.
Tools.
Resources.
Prompts.
Discovery.
Authorization.
Judgment.

But using MCP does not have to begin with complexity.

This book strips MCP down to what matters.

10 ideas.
10 words each.
100 words.
Enough to begin.


How to Read This Book

Read one idea.

Stop.

Think about it.

Try it with AI.

Then move to the next.

The purpose is not to know everything about MCP.

The purpose is to understand enough to accomplish something with MCP.


01 — MCP

MCP standardizes connections between AI applications, external data, and tools.

AI applications often need more than what a model already knows.

They may need:

Files.
Databases.
Business systems.
APIs.
Development tools.
External services.

MCP provides an open standard for connecting AI applications to systems where data and tools live.

Instead of creating a completely different integration for every combination, MCP provides a common protocol.

Think of it as a connection layer between AI and the systems around it.

AI APPLICATION → MCP → EXTERNAL CAPABILITY

02 — HOST

Hosts run AI applications that connect through clients to servers.

The host is the AI application using MCP.

A host provides the environment in which MCP connections become useful.

It may bring together:

The user.
The AI model.
MCP clients.
MCP servers.

The host connects through MCP clients to MCP servers.

The important idea is simple.

The host is where the AI experience happens.

HOST → CLIENT → SERVER

03 — CLIENT

Clients communicate with MCP servers on behalf of host applications.

A host needs a way to communicate with an MCP server.

That role belongs to the client.

The client communicates using MCP.

It can discover server capabilities.

Request resources.

Retrieve prompts.

Call tools.

And return results into the application.

The client provides the communication link between the host and server.

HOST → CLIENT → SERVER

04 — SERVER

Servers expose capabilities that AI applications can discover and use.

The server makes useful capabilities available through MCP.

A server might connect to:

Files.
Databases.
APIs.
Development systems.
Enterprise applications.
Specialized services.

MCP servers can expose capabilities such as tools, resources, and prompts.

Rather than giving an AI application unrestricted access to everything, the server exposes defined capabilities through MCP.

SYSTEM → MCP SERVER → CAPABILITY

05 — TOOLS

Tools enable models to perform actions through functions servers expose.

Sometimes AI needs to do more than generate an answer.

It needs to act.

A tool might allow a model to:

Search.
Calculate.
Query a database.
Call an API.
Write a file.
Perform another defined operation.

The MCP server exposes the tool.

The AI application can then use that capability when appropriate.

MODEL → TOOL → ACTION

06 — RESOURCES

Resources provide contextual data that applications can retrieve from servers.

AI often needs information before it can respond effectively.

Resources provide that information.

A resource might contain:

File contents.
Database information.
Documentation.
Repository information.
Application data.
Other useful content.

The server exposes the resource.

The application can retrieve relevant information and make it available as context.

RESOURCE → CONTEXT → AI

07 — PROMPTS

Prompts provide reusable templates that users can select and invoke.

Some interactions are useful repeatedly.

MCP servers can expose prompts for these situations.

A prompt can provide predefined instructions or a template for an interaction.

Instead of rebuilding the same interaction every time, a user can select and invoke an available prompt when needed.

Prompts make useful interaction patterns reusable.

TEMPLATE → PROMPT → INTERACTION

08 — DISCOVERY

Discovery lets clients identify capabilities that connected servers make available.

A client needs to know what a server provides.

MCP supports discovering server capabilities.

These can include:

Tools.
Resources.
Prompts.
Other supported capabilities.

Discovery allows the client to identify what is available rather than assuming everything beforehand.

That makes MCP connections more flexible.

CONNECT → DISCOVER → USE

09 — AUTHORIZATION

Authorization controls whether clients may access protected MCP server capabilities.

Connection does not mean unlimited access.

Some MCP servers may expose protected systems, information, or actions.

Access therefore needs control.

Authorization helps determine whether a client is permitted to access protected server capabilities.

This becomes especially important when MCP connects AI applications with organizational systems and sensitive information.

A useful connection must also be an appropriately controlled connection.

IDENTITY → AUTHORIZATION → ACCESS

10 — JUDGMENT

Judgment determines which connections, permissions, actions, and data remain appropriate.

MCP can make AI applications considerably more capable.

But capability creates responsibility.

Humans and organizations still need to decide:

Which servers should be trusted?

Which data should be accessible?

Which tools should be available?

Which actions require approval?

Which permissions are appropriate?

What should the AI never be allowed to do?

MCP enables connections.

Human judgment determines their boundaries.

MCP CONNECTS → HUMAN JUDGES

The Entire Book in 100 Words

MCP
MCP standardizes connections between AI applications, external data, and tools.

HOST
Hosts run AI applications that connect through clients to servers.

CLIENT
Clients communicate with MCP servers on behalf of host applications.

SERVER
Servers expose capabilities that AI applications can discover and use.

TOOLS
Tools enable models to perform actions through functions servers expose.

RESOURCES
Resources provide contextual data that applications can retrieve from servers.

PROMPTS
Prompts provide reusable templates that users can select and invoke.

DISCOVERY
Discovery lets clients identify capabilities that connected servers make available.

AUTHORIZATION
Authorization controls whether clients may access protected MCP server capabilities.

JUDGMENT
Judgment determines which connections, permissions, actions, and data remain appropriate.


The Minimalist MCP

You do not need to understand everything about MCP before you begin using it.

Remember ten things:

MCP.

Host.

Client.

Server.

Tools.

Resources.

Prompts.

Discovery.

Authorization.

Judgment.

Everything else can come later.

Start with the AI application.

Understand the host.

Connect through a client.

Find the server.

Discover its capabilities.

Use tools for actions.

Use resources for context.

Use prompts for reusable interactions.

Control access through authorization.

Apply human judgment.

Then accomplish something.


One Final Question

The next time you encounter MCP, don't begin with:

“What is this protocol?”

Begin with:

“What should my AI be able to connect to?”

Then explore the connection.


Accomplish with AI

Powered by Blogger.

Featured post

AI Engineering Hands-On Lab #001 — Build an AI Answer Reliability Test Bench Without Code

AIYING | Daily 24 — Post 009 AI Engineering Hands-On Lab #001 Build an AI Answer Reliability Test Bench — Without Writing Code Lea...

Search This Blog

List of blogs

Search This Blog

About

Translate

Instant Stories

Read in Your Language

Test

share this

ShareThis

Popular Posts