Skip to main content

How do I connect Microsoft 365 Copilot to the portal's MCP server?

Add the portal's MCP server to a Copilot Studio agent, so your colleagues can search assets and calendar events from Microsoft 365 Copilot and Teams.

Written by Justin Verhoeve

Microsoft 365 Copilot connects to the portal through an agent in Copilot Studio. Someone with access to Copilot Studio, usually your IT team, sets up the agent once. After that, every colleague uses it in Copilot or Teams and signs in with their own portal account.

Before you start: Turn on the MCP server under Settings › Marvia AI and copy your server URL. See How do I turn on the MCP server so users can connect an AI assistant?

Step 1: Add the portal to an agent

  1. In Copilot Studio, choose Create › New agent, or open an existing agent. Keep the name under 30 characters, for example "Marvia".

  2. Go to Tools and choose Add a tool › New tool › Model Context Protocol.

  3. Enter a Server name ("Marvia"), a Server description and your Server URL. Copilot uses the description to decide when to call the portal, for example: "Searches and downloads files from our Marvia Asset Gallery and lists marketing calendar events."

  4. Under authentication, choose OAuth 2.0 with type Dynamic discovery. You don't need a client ID or secret. Click Create, then Next.

  5. Choose Create a new connection, sign in to the portal in the window that opens and click Allow. Then click Add to agent.

  6. Set the tool to use end user credentials. This is required: the portal's MCP server has no API key or shared account. Every request runs as the signed-in colleague, with their own account and permissions.

Step 2: Test and publish

  1. Test the agent in the test pane, for example with "Find our latest logo files in Marvia".

  2. Click Publish.

  3. Go to Channels › Teams and Microsoft 365 Copilot, click Add channel and turn on Make agent available in Microsoft 365 Copilot.

  4. Share the agent with the users or groups who may use it. Depending on your policies, a Teams admin approves it in the Teams admin center.

How colleagues use it

They open the "Marvia" agent in Microsoft 365 Copilot or Teams and ask their first question. The first time, a card asks them to sign in to the portal and click Allow. After that they can ask, for example, "Which campaigns are planned for next month?"

⚠️ Important: Which Microsoft licenses you need for Copilot Studio and Microsoft 365 Copilot depends on your Microsoft agreement. Check this with your IT team.

Did this answer your question?