MCP server providing jokes and humorous content to AI agents.
Microsoft Copilot Studio ❤️ MCP
Welcome to the Microsoft Copilot Studio ❤️ MCP lab. In this lab, you will learn how to deploy an MCP Server, and how to add it to Microsoft Copilot Studio.
What is MCP?
Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs, defined by Anthropic. MCP provides a standardized way to connect AI models to different data sources and tools. MCP allows makers to seamlessly integrate existing knowledge servers and APIs directly into Copilot Studio.
Currently, Copilot Studio only supports Tools. To learn more about current capabilities, see aka.ms/mcsmcp. There are some known issues & planned improvements. These are listed here.
MCP vs Connectors
When do you use MCP? And when do you use connectors? Will MCP replace connectors?
MCP servers are made available to Copilot Studio using connector infrastructure, so these questions are not really applicable. The fact that MCP servers use the connector infrastructure means they can employ enterprise security and governance controls such as Virtual Network integration, Data Loss Prevention controls, multiple authentication methods—all of which are available in this release—while supporting real-time data access for AI-powered agents.
So, MCP and connectors are really better together.
Prerequisites
- Azure Subscription (with payment method added)
- Have a GitHub account and be logged in
- Copilot Studio trial or developer account
- Power Platform environment provisioned
Lab
To be able to deploy this MCP Server and use it in Microsoft Copilot Studio, you need to go through the following actions:
- Create a new GitHub repository based on the template
- Deploy the Azure Web App
- Create the Power Platform Connector
- Add the MCP Server as an action in Microsoft Copilot Studio
Create a new GitHub repository based on the template
Select
Use this templateSelect `Create a new repository

Select the right
OwnerGive it a
Repository nameOptionally you can give it a
DescriptionSelect
PrivateSelect
Create repositoryThis will take a little while. After it's done, you will be directed to the newly created repository.
[!WARNING]
After completing the steps in this lab, you will have an MCP Server running on Azure that is publicly available. Ideally, you don't want that. Make sure to delete the Azure Web App after finishing the lab.
Deploy the Azure Web App
Go to
portal.azure.com
Hover over the
Resource groupstab and selectCreate
Click the
Subscriptiondropdown and select your subscription from the list
Click in the
Resource groupname text box and type a resource group name such as "jokesgrp"
Select the
Regiondropdown choose the region closest to you
Click
Review + create
Click
Create
Select
Go to resource group
Select
Create
Click into the
search box
Type
web appSelect the
Create buttonin the Web App search result
Select
Web App
Select the
Nametext input and put in a name for the web app, such as "wegotjokes"
Select the
Runtime stackdropdown and chooseNode 22 LTS
Select the
Regiondropdown and choose the region closest to you
Click
Review + create
Click
Create
Click
Refreshto update your deployment progress
Once deployment is complete, select
Go to resource
Configuration
{"mcpServers":{"jokes":{"url":"https://your-domain.azurewebsites.net"}}}