Azure MCP Blueprint
Deploys a Model Context Protocol (MCP) server on Azure with industry-specific templates, sample data, and pre-configured tools for AI agents to query and manage resources.
README
MCP (Model Context Protocol) <br/> Blueprint in Azure – Overview
Costa Rica
Last updated: 2026-04-06
MCP is about
structured behavior, access control, and responsibilitiesfrom the AI's perspective, and we expose it (often via HTTP) using whatever hosting option fits best.
<details> <summary><strong>List of References</strong></summary>
- Tutorial: Host an MCP server on Azure Functions
- Remote HTTP MCP Server with authentication enabled fails to acquire token from OIDC IDP (Entra)
</details>
<details> <summary><strong>Table of contents</strong></summary>
- What MCP Really Is?
- What gets deployed
- Industry Templates (10 Available)
- Features
- Pre-Built AI Agent Samples
- MCP Tools Available
</details>
<div align="center"> <img width="700" src="https://github.com/user-attachments/assets/f215d752-4212-4b2a-a0df-7018ada9a607" alt="Centered Image" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/> </div>
[!TIP] You can think of MCP as:
- A universal API contract for AI agents.
- A permissions framework (AI can only do what's declared).
- A deployment‑agnostic service (you choose where/how to host it).
- An industry-ready demo with 100K sample records and pre-configured queries
[!IMPORTANT] The deployment process typically takes 15-20 minutes
- Adjust terraform.tfvars values
- Initialize terraform with
terraform init. Click here to understand more about the deployment process- Run
terraform apply, you can also leverageterraform apply -auto-approve.
[!NOTE] Configuration Options: Customize, and choose your hosting service by editing terraform.tfvars.
# Choose your industry template
selected_industry = "healthcare" # Options: healthcare, retail, finance, manufacturing, education, logistics, insurance, hospitality, energy, realestate
# Choose deployment type
mcp_deployment_type = "container-app" # Options: container-app, function, app-service
What MCP Really Is?
MCP (Model Context Protocol) is a structured contract between an AI client (like Copilot Studio or Azure AI Foundry) and an external service (your MCP server).
<div align="center"> <img width="700" src="https://github.com/user-attachments/assets/c49b002d-e367-4ee6-b0cf-62c413259e33" alt="Centered Image" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/> </div>
It defines:
- What tools exist (functions the AI can call).
- What inputs they require (schemas).
- What outputs they return (structured JSON).
- What resources are available (read‑only context like docs, schemas, or files).
- What prompts are predefined (templates the AI can use).
[!TIP] Like a set of rules and responsibilities that tell the AI:
"Here’s what you’re allowed to do, here’s how you call it, and here’s what you’ll get back"
<details> <summary><b>Rights & Responsibilities </b> (Click to expand)</summary>
From the AI’s perspective:
- Rights: It can only call the tools/resources the MCP server advertises.
- Responsibilities: It must respect the input/output schema and handle errors gracefully.
- Boundaries: The AI cannot
“invent”new tools, it only uses what the MCP server exposes.
From developer perspective (as the server owner):
- You decide what to expose (e.g.,
getCustomerOrders,createInvoice). - You enforce security and governance (auth, rate limits, logging).
- You control where it’s hosted (local dev, Azure App Service, Container Apps, Functions, etc.).
</details>
<details> <summary><b> Transport Layer </b> (Click to expand)</summary>
- MCP itself is transport‑agnostic, it can run over stdio, WebSockets, or HTTP.
- In practice, for Copilot Studio and Azure AI Foundry, you’ll usually expose it as an HTTP(S) endpoint so it’s accessible in the cloud.
- That's why you see multiple hosting options:
- Local dev → run on your laptop, expose via a dev tunnel.
- Azure App Service / Container Apps → production‑ready, scalable.
- Azure Functions → serverless, event‑driven.
</details>
What gets deployed
Terraform provisions:
- Provisions Azure resources (Key Vault, Cosmos DB, Azure AI Search, Microsoft Foundry (Azure AI Foundry), monitoring)
- Configures app settings and Key Vault-backed secrets for the selected hosting option
- If
mcp_deployment_type = "container-app"and automation is enabled, builds the MCP server image in Azure using ACR Tasks and deploys it to Azure Container Apps - Returns the MCP endpoint URL as a Terraform output
<details> <summary><b> Verify Deployment </b> (Click to expand)</summary>
After
terraform apply, use themcp_endpointoutput. For example:
cd terraform-infrastructure
terraform output mcp_endpoint
<img width="1911" height="907" alt="image" src="https://github.com/user-attachments/assets/872c8647-4fc9-4d95-8393-76e3f371eea7" />
Then test:
curl -s "$(terraform output -raw mcp_endpoint)/health"
<img width="1362" height="185" alt="image" src="https://github.com/user-attachments/assets/24107fcd-67c5-44d7-8767-72a46ff55805" />
# MCP initialize
curl -s "$(terraform output -raw mcp_endpoint)/mcp" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'
<img width="1569" height="272" alt="image" src="https://github.com/user-attachments/assets/3f3f02d6-44bd-4a77-8d36-c068929ea129" />
# MCP initialized notification
curl -s "$(terraform output -raw mcp_endpoint)/mcp" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
<img width="1565" height="146" alt="image" src="https://github.com/user-attachments/assets/aeacf4ce-0978-415d-a1f3-e7dbc64b9d77" />
# MCP tools/list
curl -s "$(terraform output -raw mcp_endpoint)/mcp" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "MCP-Protocol-Version: 2025-06-18" -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
<img width="1924" height="1136" alt="image" src="https://github.com/user-attachments/assets/58dc1448-ff18-4d07-a01c-9205773b2c91" />
Code samples you can run against the endpoint:
samples/mcp-http-client/agent-samples/
</details>
Industry Templates (10 Available)
Each template includes:
- 100,000 realistic sample records
- 10 pre-configured example queries
- Industry-specific MCP tools
- Tailored Cosmos DB schema
- Optimized AI Search index
<details> <summary><b>Healthcare</b> (Click to expand)</summary>
E.g. Medical records management, patient data search, clinical research
Sample Queries:
- Find patients with diabetes
- Query patients by blood type (O-negative for emergency)
- Search patients with penicillin allergies
- List patients by primary physician
- Semantic search for cardiac conditions
- Query patients with multiple chronic conditions
- Find recently admitted patients (last 30 days)
- AI-assisted medical summary generation
- Search by insurance provider
- Find pediatric patients (under 18)
Sample Data: Patient records including:
- Demographics: Patient ID, name, date of birth, gender, contact information, address
- Medical Profile: Blood type, allergies (medications, foods), chronic conditions (diabetes, hypertension, asthma)
- Clinical Data: Current medications with dosages, vaccination history, lab results (blood tests, imaging)
- Care Management: Primary physician, insurance provider, last visit date, upcoming appointments
- Emergency Info: Emergency contact details, advance directives, medical alerts
- History: Complete medical history narrative, previous hospitalizations, surgical procedures
</details>
<details> <summary><b>Retail & E-Commerce</b> (Click to expand)</summary>
Product catalog management, transaction analytics, customer insights
Sample Queries:
- Find high-value transactions (>$500)
- Search electronics purchases
- Query recent online orders (last 7 days)
- Find customer purchase history
- Semantic search for gift purchases
- Query by store location (regional analysis)
- Find failed/cancelled transactions
- AI product recommendation engine
- Query loyalty program members
- Search promotional campaign usage
Sample Data: Transaction records including:
- Transaction Details: Transaction ID, timestamp, total amount, payment method, status (completed/cancelled/refunded)
- Products: Product SKU, name, category, quantity, unit price, discount applied, tax amount
- Customer Info: Customer ID, name, email, phone, membership tier (bronze/silver/gold/platinum)
- Loyalty Program: Points earned, points redeemed, current balance, tier benefits, rewards history
- Store Data: Store location, region, sales associate, checkout lane, purchase channel (online/in-store)
- Promotions: Campaign codes used, discount percentages, seasonal offers, bundle deals
</details>
<details> <summary><b>Financial Services</b> (Click to expand)</summary>
Transaction monitoring, fraud detection, customer account management
Sample Queries:
- Find high-risk transactions (fraud score >0.7)
- Search large withdrawals (>$10,000 for AML)
- Query international transactions
- Find account activity history
- Semantic search for travel expenses
- Query by merchant category (spending patterns)
- Find declined transactions
- AI financial advice generation
- Query recent deposits (cash flow analysis)
- Search by merchant name
Sample Data: Financial transaction records including:
- Transaction Core: Transaction ID, timestamp, amount, currency, transaction type (debit/credit/withdrawal)
- Account Info: Account number, account type (checking/savings/credit), customer ID, balance after transaction
- Merchant Data: Merchant name, category (retail/restaurant/travel/gas), MCC code, merchant ID
- Location: Transaction location (city, state, country), GPS coordinates, distance from home address
- Risk Analysis: Fraud score (0-1), risk flags, anomaly detection alerts, velocity checks
- Security: Card last 4 digits, authorization code, CVV verification status, 3D Secure authentication
- Metadata: IP address, device fingerprint, transaction description, reference number
</details>
<details> <summary><b>Manufacturing & IoT</b> (Click to expand)</summary>
Equipment monitoring, predictive maintenance, production optimization
Sample Queries:
- High-risk equipment requiring maintenance (failure score >0.7)
- Equipment currently in fault status
- Semantic search for overheating alerts
- Equipment by facility location
- Equipment due for maintenance (next 7 days)
- Low efficiency equipment (quality <80%)
- CNC machines performance monitoring
- High power consumption equipment (>500 kW)
- AI equipment diagnostics and recommendations
- Recent equipment installations (last 90 days)
Sample Data: Equipment monitoring records including:
- Equipment Profile: Equipment ID, name, type (CNC/robotic arm/conveyor), manufacturer, model, serial number
- Location: Facility name, zone/department, floor level, GPS coordinates, installation date
- Real-time Telemetry: Temperature (°C), vibration (mm/s), pressure (PSI), RPM, power consumption (kW)
- Performance Metrics: Operating hours, production output, efficiency percentage, defect rate, uptime/downtime
- Predictive Maintenance: Failure prediction score (0-1), next maintenance due date, mean time between failures (MTBF)
- Maintenance History: Last service date, maintenance type, technician notes, parts replaced, cost
- Quality Data: Quality control results, specification compliance, tolerance measurements
- Alerts: Active warnings, fault codes, threshold violations, recommended actions
</details>
<details> <summary><b>Education & Learning</b> (Click to expand)</summary>
Student records, academic analytics, enrollment management
Sample Queries:
- Honor students with high GPA (>=3.5)
- Students by major (e.g., Computer Science)
- At-risk students (low attendance or probation)
- Graduating seniors eligible for commencement
- Financial aid recipients (active status)
- Semantic search for course topics (AI, machine learning)
- Near graduation students (within 15 credits)
- Students by academic advisor
- AI academic recommendations and course planning
- Recently enrolled students (last semester)
Sample Data: Student records including:
- Personal Info: Student ID, name, email, date of birth, contact phone, home address
- Academic Profile: Major/program, minor, academic level (freshman/sophomore/junior/senior/graduate), enrollment date
- Performance: Current GPA, cumulative GPA, credits completed, credits in progress, credits required for graduation
- Course Data: Current courses enrolled, course history with grades, semester-by-semester transcripts
- Attendance: Attendance rate percentage, total absences, tardiness records, participation scores
- Financial: Financial aid status (active/pending/none), scholarship amounts, tuition balance, payment plans
- Support Services: Academic advisor name, tutoring services used, career counseling sessions
- Standing: Academic standing (good standing/probation/suspended), honors/dean's list, graduation date
</details>
<details> <summary><b>Logistics & Supply Chain</b> (Click to expand)</summary>
Shipment tracking, inventory management, delivery optimization
Sample Queries:
- Delayed shipments (current status)
- High-value shipments in transit (>$10,000)
- Customs clearance pending (international shipping)
- Semantic search for delay reasons (weather, storms)
- Priority overnight shipments tracking
- Temperature-controlled cargo (refrigerated)
- Shipments by carrier (FedEx, UPS, DHL)
- Hazardous materials shipments (regulatory compliance)
- AI route optimization recommendations
- Recently delivered shipments (last 24 hours)
Sample Data: Shipment tracking records including:
- Shipment Identity: Shipment ID, tracking number, order reference, customer account number
- Origin/Destination: Origin facility, city, country, destination facility, delivery address, GPS coordinates
- Carrier Info: Carrier name (FedEx/UPS/DHL), service level (standard/express/overnight), vehicle ID
- Package Details: Weight (kg), dimensions (LxWxH), volume, declared value, number of packages
- Status Tracking: Current status, current location, last scan timestamp, estimated delivery, actual delivery
- Route Data: Planned route waypoints, actual route taken, distance traveled, transit time, delays
- Special Handling: Temperature-controlled (yes/no), hazardous materials (yes/no), signature required, priority level
- Customs: Customs clearance status, duty amount, import/export documents, country of origin
- Customer: Customer name, contact phone, delivery instructions, proof of delivery signature
</details>
<details> <summary><b>Insurance & Claims</b> (Click to expand)</summary>
Claims processing, fraud detection, policy management
Sample Queries:
- High-risk fraud claims (fraud score >0.8)
- Pending claims awaiting review/approval
- High-value claims (>$50,000 for special handling)
- Semantic search for accident types (vehicle collision)
- Claims by adjuster (workload balancing)
- Recently filed claims (last 7 days)
- Denied claims (appeals management)
- Property damage claims (homeowner policies)
- AI claims assessment and recommendations
- Recently settled claims (last 30 days)
Sample Data: Insurance claims records including:
- Claim Identity: Claim ID, policy number, claim type (auto/property/health/liability), claim number
- Policyholder: Name, address, contact phone/email, policy effective dates, premium amount
- Incident Details: Incident date, filed date, location (city, state), incident description/narrative
- Financial: Claim amount requested, approved amount, deductible, previous payments, outstanding balance
- Assessment: Adjuster name, investigation status, repair estimates, medical reports, police reports
- Fraud Detection: Fraud risk score (0-1), red flags identified, investigation notes, third-party verification
- Status Tracking: Current status (pending/approved/denied/settled), last updated date, settlement date
- Documentation: Uploaded photos, damage reports, witness statements, receipts, invoices
- Resolution: Resolution type, settlement method, payment date, closing notes, appeal status
</details>
<details> <summary><b>Hospitality & Tourism</b> (Click to expand)</summary>
Hotel reservations, guest management, service optimization
Sample Queries:
- Today's check-ins (arrival preparation)
- VIP guests (Platinum loyalty tier)
- Pending reservations (unconfirmed bookings)
- Suite reservations (luxury room management)
- Long-stay guests (>=7 nights)
- Guests with special requests (accessibility needs)
- Online booking channel reservations
- Unpaid reservations (payment follow-up)
- AI guest concierge (personalized recommendations)
- High-value reservations (>$2000)
Sample Data: Hotel reservation records including:
- Reservation Details: Reservation ID, confirmation number, booking date, status (confirmed/pending/cancelled)
- Guest Information: Guest name, email, phone, address, nationality, frequent guest number
- Loyalty Program: Tier (bronze/silver/gold/platinum), points balance, member since date, tier benefits
- Stay Details: Check-in date, check-out date, number of nights, number of guests (adults/children)
- Room Info: Room type (standard/deluxe/suite), room number, bed type (king/queen/twin), floor preference
- Pricing: Nightly rate, total amount, taxes/fees, discounts applied, deposit paid, balance due
- Booking Channel: Booking source (direct/online/OTA/travel agent), rate code, promotional code
- Special Requests: Accessibility needs, dietary restrictions, early check-in/late checkout, airport transfer
- Guest Preferences: Smoking/non-smoking, high/low floor, quiet room, pillow type, minibar preferences
- Services: Spa appointments, restaurant reservations, room service orders, concierge requests
</details>
<details> <summary><b>Energy & Utilities</b> (Click to expand)</summary>
Smart grid monitoring, energy consumption analytics, utility management
Sample Queries:
- High consumption meters (>1000 kWh)
- Smart meters with alerts (grid maintenance)
- Solar generation customers (renewable energy)
- Power quality issues (voltage/frequency anomalies)
- Meters by service zone (regional load balancing)
- Commercial meters (business customers)
- Recent outage history (last 30 days)
- High carbon offset accounts (green energy contributors)
- AI energy optimization (demand-side management)
- Peak demand periods (capacity planning)
Sample Data: Smart meter records including:
- Meter Identity: Meter ID, customer account number, meter type (residential/commercial/industrial), serial number
- Location: Service address, city, state, zip code, service zone/district, GPS coordinates
- Consumption Data: Current reading (kWh), previous reading, consumption period, average daily usage
- Billing: Current charges, rate schedule, billing period, payment status, outstanding balance
- Power Quality: Voltage (V), frequency (Hz), power factor, harmonics, sag/swell events
- Demand Metrics: Peak demand (kW), time of peak usage, load factor, demand charges
- Renewable Energy: Solar generation (kWh), net metering credits, feed-in tariff, carbon offset (kg CO2)
- Outage Data: Outage history, duration, cause (weather/equipment/scheduled), restoration time
- Smart Grid: Real-time load, demand response participation, time-of-use rates, automated controls
- Alerts: High usage warnings, power quality alerts, payment reminders, maintenance notifications
</details>
<details> <summary><b>Real Estate & Property</b> (Click to expand)</summary>
Property listings, sales tracking, portfolio management
Sample Queries:
- Luxury properties (>$1,000,000)
- Active listings (currently available)
- Family homes (3+ bedrooms)
- Properties with pools (amenity search)
- New construction (built in last 5 years)
- Properties with offers (competitive bidding)
- Stale listings (on market >90 days)
- Condos and townhomes (multi-family properties)
- AI property recommendations (buyer matching)
- Price per square foot analysis (investment opportunities)
Sample Data: Property listing records including:
- Property Identity: Property ID, listing ID, MLS number, parcel ID, address, neighborhood
- Property Details: Type (single-family/condo/townhouse/multi-family), bedrooms, bathrooms, square feet, lot size
- Structure Info: Year built, stories, garage spaces, basement, attic, architectural style, construction type
- Pricing: List price, price per square foot, previous price, price history, assessed value, tax amount
- Status: Listing status (active/pending/sold/withdrawn), days on market, listing date, sold date
- Features: Pool, fireplace, hardwood floors, updated kitchen, smart home, security system, HOA
- Utilities: Heating type, cooling type, water source, sewer type, energy efficiency rating
- Agent Info: Listing agent name, contact, brokerage/agency, co-listing agent
- Showing: Open house dates, showing instructions, lockbox code, virtual tour URL, photo count
- Market Data: Comparable sales, neighborhood trends, school district ratings, walk score, crime statistics
- Offers: Number of offers received, offer amounts (if disclosed), contingencies, closing timeline
</details>
Features
- Multi-agent orchestration
- Model router (gpt-4o vs gpt-4o-mini optimization)
- Intent classification & handoffs
- Agent specialization patterns
- Cost optimization strategies
<details> <summary><b>Option 1: Custom Applications (Developers)</b> (Click to expand)</summary>
Build AI-powered applications with direct MCP SDK integration.
[!TIP]
- Perfect for: Custom web apps, mobile apps, enterprise systems
- Guide: Custom App Integration
Features:
- Python/Node.js SDK examples
- REST API integration
- Flask/FastAPI templates
- Authentication patterns
- Error handling & retries
</details>
<details> <summary><b>Option 2: Azure AI Foundry (Data Scientists)</b> (Click to expand)</summary>
Create sophisticated multi-agent systems with model routing.
[!TIP]
- Perfect for: Complex AI workflows, multi-agent orchestration, advanced reasoning
- Guide: Azure AI Foundry Integration
Features:
- Multi-agent orchestration
- Model router (gpt-4o vs gpt-4o-mini optimization)
- Intent classification & handoffs
- Agent specialization patterns
- Cost optimization strategies
</details>
<details> <summary><b>Option 3: Copilot Studio (Business Users)</b> (Click to expand)</summary>
Low-code/no-code AI chatbots with enterprise data access.
[!TIP]
- Perfect for: Teams deployment, customer service bots, internal tools
- Guide: Copilot Studio Integration
Features:
- Visual topic builder
- OpenAPI connector setup
- Microsoft Teams integration
- Generative answers
- No coding required
</details>
Pre-Built AI Agent Samples
Production-ready multi-agent implementations with model routing:
| Sample | Industry | Agents | Complexity |
|---|---|---|---|
| Healthcare Multi-Agent | Healthcare | 5 | Advanced |
| Retail Shopping Assistant | Retail | 6 | Advanced |
| Financial Advisor | Finance | 4 | Intermediate |
| Manufacturing Monitor | Manufacturing | 3 | Intermediate |
| Education Student Assistant | Education | 3 | Intermediate |
| Logistics Tracker | Logistics | 3 | Intermediate |
| Insurance Claims Agent | Insurance | 4 | Intermediate |
| Hospitality Concierge | Hospitality | 3 | Intermediate |
| Energy Usage Advisor | Energy | 3 | Intermediate |
| Real Estate Portfolio Manager | Real Estate | 3 | Intermediate |
MCP Tools Available
Based on your selected industry and enabled services:
| Tool Name | Description | Category |
|---|---|---|
health_check |
Server status and diagnostics | Always Available |
cosmos_create_item |
Create documents | Cosmos DB Tools |
cosmos_query_items |
SQL-like queries | Cosmos DB Tools |
search_documents |
Full-text search with filters | Azure AI Search Tools |
search_semantic |
AI-powered semantic search | Azure AI Search Tools |
openai_chat_completion |
Chat completions (OpenAI-compatible) | Foundry Tools |
openai_embeddings |
Text embeddings (OpenAI-compatible) | Foundry Tools |
<!-- START BADGE --> <div align="center"> <img src="https://img.shields.io/badge/Total%20views-1283-limegreen" alt="Total views"> <p>Refresh Date: 2026-04-06</p> </div> <!-- END BADGE -->
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.