How AI Connects to Your Systems

Model Context Protocol (MCP) โ€” the open standard that turns AI from a chatbot into a system that can query databases, call APIs, and take actions.

๐Ÿ“– Day 3 Reference โšก Interactive ๐Ÿ”Œ MCP

๐Ÿ’ก Why Does AI Need MCP?

Without MCP, AI can only work with text you paste into it. It can't look things up, check databases, or take actions in your systems. MCP changes that.

๐Ÿ“‹

Without MCP

Export CSV โ†’ paste into chat โ†’ AI analyzes what you gave it. Manual, one-at-a-time.

๐Ÿ”Œ

With MCP

AI queries your database directly, gets exactly what it needs, analyzes live data. Automatic.

๐Ÿ”Œ

USB-C for AI

Just as USB-C connects any device to any peripheral, MCP connects any AI to any data source.

๐ŸŒ

Open Standard

Works with Claude, ChatGPT, Kiro, Cursor, VS Code โ€” build once, connect everywhere.

๐Ÿฆ What MCP Means for Finance Teams

Your team works with databases, spreadsheets, document stores, and internal APIs every day. MCP lets AI access these systems the same way you do โ€” but faster.

Today (Manual)With MCP (Automated)
Export merchant data to CSV, paste into AIAI queries merchant database directly
Open 50 invoices one by oneAI scans the invoice folder automatically
Check compliance status in 3 different systemsAI checks all 3 systems in one request
Copy transaction data, format it, paste itAI runs SQL query, gets exactly what it needs
Manually send Slack alert when issue foundAI sends the alert automatically via MCP
๐Ÿ’ก
Key insight: MCP doesn't replace your systems โ€” it connects AI to them. Your databases, APIs, and tools stay exactly where they are. MCP just gives AI a way to talk to them.

๐Ÿ”ง MCP Architecture

MCP follows a simple client-server pattern. The AI application (Kiro) is the host. It creates clients that connect to servers. Each server provides access to a specific data source or tool.

๐Ÿค– MCP Host Kiro / Claude / Cursor
โ†’
๐Ÿ”— MCP Client One per server
โ†’
๐Ÿ—„๏ธ MCP Server Database / API / Files

Three Core Primitives

Every MCP server can expose three types of capabilities:

๐Ÿ”จ

Tools

Actions the AI can perform: run a SQL query, call an API, send a message. The AI decides when to use them.

๐Ÿ“ฆ

Resources

Data the AI can read: file contents, database schemas, API responses. Like giving the AI access to a document.

๐Ÿ’ฌ

Prompts

Reusable templates that structure how the AI interacts with the server. Like pre-built query patterns.

โš™๏ธ How Connection Works

When you configure an MCP server in Kiro, here's what happens under the hood:

StepWhat happensYou see
1. ConfigureYou add the server to .kiro/settings/mcp.jsonEdit a JSON file
2. ConnectKiro launches the MCP server process and negotiates capabilitiesGreen checkmark โœ… in MCP panel
3. DiscoverKiro asks the server "what tools do you have?" via tools/listTool names appear in the panel
4. UseWhen you ask a question, Kiro decides which tool to call and sends a tools/call requestAI response includes data from the server
๐Ÿ”
Two transport modes: MCP servers can run locally (on your machine, using stdio โ€” like the SQLite server in the lab) or remotely (on a server, using HTTP โ€” like a cloud API). The protocol is the same either way.

๐ŸŽฎ MCP Message Flow โ€” Interactive Demo

Watch messages flow through the full MCP architecture as you ask a question. Each step shows exactly what's happening between components.

Message Flow

Step 0 / 0
๐Ÿ‘ค
You
Plain English
๐Ÿค–
Kiro (Host)
AI reasoning
๐Ÿ”—
MCP Client
JSON-RPC 2.0
โš™๏ธ
MCP Server
mcp-server-sqlite
๐Ÿ—„๏ธ
Database
anycompany.db
Press Play or Step Forward to watch the message flow.

๐Ÿฆ MCP Servers for Finance Teams

These are the most common MCP servers your team would use. You specify what connections are needed in the Agent Design Canvas โ€” your tech team configures the actual servers.

MCP ServerConnects toFinance use caseSetup
SQLite / PostgreSQLDatabasesQuery merchant data, transaction history, compliance recordsConfig only
FilesystemFile directoriesProcess folders of invoices, scan regulatory documentsConfig only
Slack / TeamsTeam messagingSend alerts when RED-rated merchant detectedAPI key
Google Drive / S3Document storageRead policy documents for RAG groundingOAuth / IAM
Email (SMTP)Email systemsSend compliance reports, escalation alertsSMTP config
Custom REST APIInternal servicesCall risk scoring engine, KYC verificationCustom build
๐Ÿ’ก
You design the recipe, your tech team sets up the kitchen. In the Agent Design Canvas, you specify "MCP connections needed: merchant database, Slack for alerts." Your engineering team then configures the actual MCP servers. The open-source community has pre-built servers for most common systems.

โš™๏ธ Configuration Example

This is what an MCP configuration looks like in Kiro. It's a simple JSON file โ€” no code required:

// .kiro/settings/mcp.json { "mcpServers": { "anycompany-db": { "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "./anycompany.db"], "autoApprove": ["read_query", "list_tables"] } } }

That's it โ€” 7 lines of JSON. Kiro launches the SQLite MCP server, connects to it, and you can start querying the database in plain English.

๐Ÿ”— The Complete Kiro Stack

MCP is the fourth and final layer of the Kiro automation stack. Here's how all 4 layers work together:

๐Ÿ“‹ Steering
Global rules
โ†’
๐Ÿ› ๏ธ Skills
On-demand expertise
โ†’
โšก Hooks
Auto-triggers
โ†’
๐Ÿ”Œ MCP
Data connections

How They Work Together โ€” Fraud Detection Example

LayerWhat it doesIn the fraud detection workflow
SteeringSets global rulesSGD currency, no PII, GREEN/AMBER/RED ratings
SkillDefines the investigation processFraud Investigation Lead persona, 6-section report format, guardrails
HookTriggers automaticallyNew .alert file โ†’ run fraud investigation skill
MCPConnects to dataSQLite server โ†’ query merchant profile, transactions, compliance alerts
๐Ÿ”
The full automation loop: Alert file arrives (external system) โ†’ Hook detects it โ†’ Skill activates โ†’ MCP queries the database โ†’ Report generated โ†’ Human reviews the recommendation. The AI handles the investigation; you make the decision.

๐Ÿ—บ๏ธ Your 3-Day Journey

DayWhat you learnedWhat you built
Day 1What AI can do, responsible AI, use casesUnderstanding + GenAI playbook
Day 2Prompt engineering techniquesReusable prompt templates
Day 3Agentic AI, skills, hooks, MCPWorking agent with database connection

The thread: Day 1's responsible AI โ†’ enforced by Day 3's guardrails. Day 2's prompt templates โ†’ become Day 3's skills. Day 2's RAG grounding โ†’ becomes Day 3's MCP connections. Everything builds on what came before.