Skip to main content

Connect Microsoft 365 Copilot

Microsoft 365 Copilot can control your site, but not by adding an MCP server directly as you would in Claude or ChatGPT: Microsoft's intended route is to create an agent in Copilot Studio, then publish it to Teams and Copilot.


How it works

In Microsoft 365 Copilot (the Teams chat, Word, Outlook, and so on), users cannot connect an MCP server themselves. You create an agent in Copilot Studio, add your site's MCP server as a tool, and then publish the agent. All authorised users in the organisation can then use it from their usual Copilot. Microsoft also offers MCP-based declarative agents for Microsoft 365 Copilot, a more developer-oriented approach that is beyond the scope of this article.

This procedure is based on Microsoft's documentation and the capabilities of the Senso MCP server. It has not yet been fully validated on an end-to-end Microsoft 365 tenant: if you implement it, we would welcome your feedback via support.

Prerequisites

Copilot Studio requires an MCP server to provide:

  • streamable HTTP transport (SSE transport is no longer accepted);
  • OAuth 2.0 authentication with dynamic discovery and client registration, or an API key.

Senso MCP meets both requirements: streamable HTTP transport, OAuth metadata published under .well-known, dynamic client registration, and a Joomla API token as an alternative.

Create the agent

  1. In Copilot Studio, create a new agent (or open an existing one).
  2. Open the Tools tab, then select Add a tool → New tool → Model Context Protocol.
  3. Enter a name, a description, and the Server URL: https://your-site.tld/api/index.php/v1/mcp.
  4. Choose the authentication method: OAuth 2.0 with dynamic discovery (recommended, as each user signs in to your site with their own Joomla account), or an API key sent in the Authorization header in the form Bearer <token>, using a Joomla API token from a dedicated account (see Connect another MCP client).
  5. Validate the configuration: Copilot Studio queries the server and lists the available tools. Test the agent in the test pane before publishing it.

Publish the agent

From the agent's Publish page, select the Microsoft 365 Copilot and Teams channels. Depending on the tenant configuration, the agent may need to be approved by an administrator before it becomes available to users. Once available, it can be used like any other agent: by mentioning it in Copilot or opening it in Teams.

Check with your administrator

  • Access to Copilot Studio: agents used in Microsoft 365 Copilot are generally covered by the Copilot licence, but this depends on the organisation's agreement;
  • authorisation for agents and MCP connectors in the Microsoft 365 admin centre, which are often restricted by default;
  • Power Platform data loss prevention (DLP) policies, which may block connections to external servers.

GitHub Copilot

For developers, GitHub Copilot in Visual Studio Code and Visual Studio supports MCP directly, without going through Copilot Studio: add the server to the editor's MCP configuration using the URL above; OAuth authentication takes place the first time it is used.

Official documentation