๐Ÿ”Œ Lab 1: How AI Connects to Your Systems

See MCP (Model Context Protocol) in action โ€” your AI agent fetches web content, searches documentation, and connects to data sources in plain English.

โฑ 27 minutes

What You'll Learn

In this lab, you'll see how AI connects to external data sources directly โ€” instead of relying on data you paste into the chat. That's what MCP (Model Context Protocol) does.

๐Ÿ“‹

Without MCP

You paste data into the chat, or the AI reads files from your workspace. Manual, one-at-a-time.

๐Ÿ”Œ

With MCP

AI connects to websites, databases, APIs, and legislation directly. Ask in plain English โ€” it fetches the answer.

๐Ÿ’ก What is MCP?

Model Context Protocol (MCP) is an open standard that connects AI to external tools and data sources. Think of it as a USB-C port for AI:
  • MCP Server = the data source (website, database, API, legislation database)
  • MCP Client = Kiro (the AI that uses the data)
  • You don't write code โ€” you configure a connection, and the AI can query it

Today you'll see two MCP servers in action: one that fetches web pages, and one that searches AWS documentation.

PartDurationWhat you'll see
Part A10 minActivate Fetch MCP โ†’ AI reads AnyCompany's policy page and answers questions about coverage
Part B12 minConfigure AWS Docs MCP โ†’ AI searches AWS documentation and answers architecture questions
Part C5 minVision โ€” what MCP servers would AnyCompany need in production?

Part A: Fetch MCP โ€” AI Reads the Web

Kiro comes with a Fetch MCP server pre-configured โ€” it lets your AI agent read any public web page and return its content. But first, we need to make sure it's enabled.

Step 0: Activate the Fetch MCP Server

The Fetch MCP server is pre-installed but may be disabled in your environment. Let's ask Kiro to enable it โ€” no manual editing needed:

PROMPT โ€” Copy & paste into Kiro
Enable the Fetch MCP server in my user MCP configuration. Change "disabled" from true to false for the fetch server, then save the file.

Kiro will ask permission to edit the config file. Click "Allow" when you see the prompt โ€” then it makes the change and saves automatically.

โœ… Checkpoint: Look at the MCP SERVERS section in the left sidebar (bottom of the Kiro panel). "Fetch" should change from Disabled to Running within a few seconds.
๐Ÿ’ก What just happened?

You asked the AI to configure its own connection to an external tool. Behind the scenes, Kiro edited a small config file (mcp.json) that lists which MCP servers to connect to. This is the same pattern for any MCP server โ€” add it to the config, and the AI gains new capabilities. No coding required.

Scenario: A customer asks about critical illness coverage

Imagine a customer service agent needs to quickly check what's covered under AnyCompany's Critical Illness plan. Instead of searching through internal documents, the AI reads the product page directly:

PROMPT โ€” Copy & paste into Kiro
Fetch the AnyCompany Insurance product guide from this URL: https://sing.lab.mywcloud.net/anycompany-policies.html Then answer these questions: 1. How many critical illnesses are covered under AnyCare Critical? 2. What is the maximum sum assured available? 3. If a customer has cancer and recovers, can they claim again if it comes back? 4. What is the survival period requirement? Format your answers as a clear summary a customer service agent could read to a caller.
โš ๏ธ Important: When Kiro fetches the page, look at the tool call in the chat. You should see it using the mcp_fetch_fetch tool (the MCP server you just enabled). If you see web_fetch instead, the MCP server may not have connected yet โ€” go back and check the MCP SERVERS panel shows "Fetch" as Running.
โœ… What to observe:
  • Kiro fetches the web page content automatically
  • It extracts specific answers from the product information
  • The answers are accurate โ€” grounded in the actual page content, not hallucinated
  • It formats the response for the intended audience (customer service agent)

Try another query โ€” comparing products:

PROMPT โ€” Product comparison
Based on the AnyCompany product guide you just read, create a comparison table for a customer who is deciding between the three AnyCare Shield tiers (Basic, Enhanced, Premier). Focus on: annual claim limit, ward class, daily room & board, and annual premium for a 30-year-old. Add a recommendation at the bottom: which tier suits (a) a budget-conscious young professional, (b) a family breadwinner, and (c) a high-net-worth individual?
๐Ÿ’ก Why this matters for AnyCompany:

Today, your customer service team searches through PDF product brochures or internal wikis to answer questions. With Fetch MCP, an AI agent can read your product pages, policy documents, or even competitor websites โ€” and synthesize answers in seconds. This is the foundation for an intelligent customer service agent.

Part B: AWS Documentation MCP โ€” AI Searches a Knowledge Base

Now let's connect a more powerful MCP server โ€” one that searches across the entire AWS documentation library and returns specific, up-to-date answers about cloud services.

๐Ÿ“– About this MCP server

The AWS Documentation MCP Server is an open-source server maintained by AWS Labs that provides:
  • Search across all AWS documentation (thousands of pages)
  • Read specific documentation pages and extract sections
  • Recommend related pages based on what you're reading
  • No API key required โ€” runs locally via uvx (same as Fetch)

Step 1: Configure the MCP connection

Just like Part A, we'll ask Kiro to add a new MCP server. Paste this into the chat:

PROMPT โ€” Add MCP server
Add a new MCP server to my workspace MCP configuration (.kiro/settings/mcp.json). The server details are: Name: "aws-docs" Command: uvx Args: ["awslabs.aws-documentation-mcp-server@latest"] Env: {"FASTMCP_LOG_LEVEL": "ERROR"} Add it to the workspace config file and make sure disabled is set to false.

Kiro will ask permission to edit the config file. Click "Allow" โ€” then wait 15โ€“20 seconds for the server to download and start (first time only).

โณ First-time setup

The AWS Documentation MCP server downloads its package the first time (~15โ€“20 seconds). If you see Connection Failed in the MCP panel, click "Retry" โ€” it sometimes needs a second attempt after the initial download completes.
โœ… Checkpoint: In the MCP SERVERS section (left sidebar), you should see "aws-docs" with a Connected status and its tools listed (search_documentation, read_documentation, recommend).
๐Ÿ’ก Same pattern, different data source

Notice: both Fetch and AWS Docs use the same setup pattern โ€” uvx command, a package name, and that's it. The AI now has two MCP tools: one reads web pages, the other searches AWS documentation. Same protocol, different capabilities.

Step 2: Query AWS documentation โ€” insurance-relevant questions

Now ask questions about AWS services that AnyCompany might use โ€” in plain English:

PROMPT โ€” AI services for insurance
Using the AWS Documentation MCP server, search for information about: 1. What is Amazon Bedrock and what foundation models does it support? 2. How does Amazon Bedrock Guardrails work to filter harmful content? 3. What is Amazon Bedrock Agents and how can it automate multi-step tasks? For each answer, give me a plain-English summary that a business leader at an insurance company would understand. Focus on what it does, not how to code it.
PROMPT โ€” Data protection & compliance
Search AWS documentation for: 1. How does AWS handle data residency โ€” can we keep data in Singapore? 2. What security certifications does AWS have that matter for financial services? 3. How does Amazon Bedrock handle data privacy โ€” does AWS use our data to train models? Summarize each answer in 2-3 sentences. This is for a VP of Security evaluating whether to use AWS AI services for insurance operations.
PROMPT โ€” Architecture scenario
AnyCompany Insurance wants to build an AI-powered claims processing system. Search AWS documentation to help me understand: 1. Which AWS service would we use to extract text from medical reports and claim forms? (hint: look for document processing) 2. Which service would we use to build the AI agent that orchestrates the claims workflow? 3. How would we store and search through historical claims data for the AI to reference? For each, give me the service name, what it does, and why it fits our claims use case.
๐Ÿ” What to observe:
  • The AI searches across AWS documentation โ€” not using general knowledge
  • It returns specific, current information from official docs
  • It can cross-reference multiple services to answer architecture questions
  • The answers are grounded in documentation, not hallucinated
๐Ÿ’ก Compare this to today's workflow:

Current approachWith MCP
ResearchGoogle โ†’ open 10 tabs โ†’ read each page โ†’ take notes"What AWS services handle document processing?"
CompareOpen multiple doc pages, manually compare features"Compare Textract vs Comprehend for medical reports"
ArchitectureRead whitepapers, watch re:Invent talks, ask a solutions architect"What services would I need for an AI claims system?"
TimeHours of research per question30 seconds
๐Ÿข For AnyCompany: imagine this with YOUR documentation

You just saw the AI search AWS docs. Now imagine the same pattern connected to:
  • AnyCompany's internal wiki โ€” "What's our claims escalation process?"
  • Policy product guides โ€” "What's covered under AnyCare Critical?"
  • MAS regulatory circulars โ€” "What are the latest Fair Dealing requirements?"
  • HR policies โ€” "What's our remote work policy for the Singapore office?"

Same MCP protocol, same setup pattern โ€” just pointed at different data sources. That's the power of a standard protocol.

โšก Bonus (Optional): From Reading Docs to Taking Action

So far, your AI has been reading โ€” fetching web pages and searching documentation. But MCP can also let AI interact with live systems. Let's add one more MCP server that can actually run AWS commands:

PROMPT โ€” Add AWS API MCP server
Add a new MCP server to my workspace MCP configuration (.kiro/settings/mcp.json). The server details are: Name: "aws-api" Command: uvx Args: ["awslabs.aws-api-mcp-server@latest"] Env: {"AWS_REGION": "us-east-1"} Add it to the workspace config file and make sure disabled is set to false.

Click "Allow" when prompted. Wait 15โ€“20 seconds for the first-time download.

โœ… Checkpoint: In the MCP SERVERS section, you should see "aws-api" with a Connected status.

Now let's use it โ€” ask the AI to query your actual AWS account:

PROMPT โ€” AWS API interaction
Using the AWS API MCP server: 1. List the S3 buckets in this AWS account 2. List the Bedrock foundation models available in us-east-1 3. Check what region this account is configured for Summarize what you find โ€” I want to understand what AWS resources are available to us.
๐Ÿ” What to observe:
  • The AI makes real AWS API calls โ€” not searching docs, but querying live infrastructure
  • It returns actual bucket names, model IDs, and account details from your environment
  • This is the same pattern that would let an agent check claims database status, query policy systems, or monitor infrastructure health
๐Ÿ’ก The progression you just experienced:

PartWhat the AI didMCP capability
ARead a web pageFetch (read external content)
BSearched a knowledge baseAWS Docs (search + retrieve)
BonusQueried live infrastructureAWS API (read + act)

This is the spectrum of MCP: from passive reading โ†’ active searching โ†’ live system interaction. Each step gives the AI more capability โ€” and each requires appropriate guardrails.

Part C: What MCP Servers Would AnyCompany Need?

You've seen two MCP servers in action. In production, AnyCompany would connect AI agents to many more data sources โ€” all through the same MCP protocol.

๐Ÿ—๏ธ AnyCompany's MCP Architecture (Vision)

MCP ServerWhat it connects toExample queries
Policy AdminCore policy system (Oracle/SAP)"Show all policies lapsing this month" ยท "What's the status of POL-2024-8847?"
Claims SystemClaims management platform"List all pending claims over $50K" ยท "Average processing time for critical illness claims?"
Customer 360CRM + interaction history"Full profile for customer CUST-88421" ยท "Customers with 3+ policies not contacted in 6 months"
Singapore LawLegislation database (SSO)"Insurance Act requirements for policy illustrations" ยท "PDPA consent for health data"
AWS DocumentationCloud services knowledge base"What AWS service handles document extraction?" ยท "Bedrock data privacy guarantees"
MAS CircularsRegulatory notices & guidelines"Latest MAS notice on technology risk management" ยท "Fair Dealing outcome requirements"
Actuarial ModelsPricing & reserving systems"Current mortality rates for age 45 male non-smoker" ยท "IFRS 17 reserve for product X"
Document StorePolicy documents, medical reports"Retrieve the medical report for claim CLM-2024-0847" ยท "Find the policy contract for POL-123"
Web / FetchPublic websites, competitor info"Read the latest MAS media release" ยท "Compare our CI coverage with competitor X"

Each MCP server is built and maintained by the team that owns that data source. The AI agent decides which server to query based on the question โ€” just like a human would know which system to check.

๐ŸŽฏ For the Agent Design Canvas (Lab 3)

When you fill in the "Data Sources" section of your Agent Design Canvas, think about which MCP servers your agent would need. The pattern is always the same:
  1. What data does the agent need to do its job?
  2. Where does that data live today? (database, API, website, document)
  3. That becomes an MCP server connection
๐ŸŒ MCP is growing fast

The MCP ecosystem already has hundreds of servers for different data sources:
  • Databases: PostgreSQL, MySQL, SQLite, MongoDB
  • APIs: Slack, Jira, GitHub, Salesforce, ServiceNow
  • Documents: Google Drive, SharePoint, Confluence
  • Specialized: Singapore Law, AWS Documentation, financial data feeds

Your tech team doesn't need to build everything from scratch โ€” many MCP servers already exist. For custom internal systems, building an MCP server is typically a few hundred lines of code.

๐Ÿ“‹ Summary: The MCP Stack

LayerWhat it doesYou saw this in
SteeringGlobal rules (currency, PII, ratings)Lab 2, Step 1
SkillsOn-demand expertise (risk assessment, compliance)Lab 2, Steps 2-5
HooksAuto-triggers (new file โ†’ run skill)Lab 2, Step 3
MCPData connections (web, legislation, databases)This lab

๐ŸŽ‰ What You've Seen

  • Fetch MCP โ€” AI reading a web page and extracting structured answers about insurance products
  • AWS Documentation MCP โ€” AI searching thousands of documentation pages and returning specific, current answers
  • The MCP pattern โ€” same protocol, different data sources, AI decides which to query
  • Production vision โ€” how AnyCompany would connect AI to policy admin, claims, CRM, and regulatory systems
๐Ÿ’ก Key takeaway for your team

MCP turns AI from a "chatbot that knows general things" into a "system that can query YOUR data." The protocol is open, the ecosystem is growing, and the setup is configuration โ€” not custom development. When you design your agent in Lab 3, think about what data sources it needs. Each one becomes an MCP connection.