# Copilot Studio

Copilot Studio can read your fivebar stats over MCP, and answer questions about them.

Ask it about your sites in your own words, such as why traffic jumped on Tuesday, and it answers from your figures, following fivebar’s rules about what they mean. Connecting is adding fivebar’s address, signing in and choosing Allow, with no key to copy.

## Before you start

An agent of your own in Microsoft Copilot Studio. The Copilot app in Windows and on the web can’t add MCP servers of your own.

## Add fivebar

1. Open your agent’s **Tools** page, and choose **Add a tool**, **New tool**, then **Model Context Protocol**.
2. Give it the **Server name** fivebar, a description, and the **Server URL** `https://fiveb.ar/api/mcp`.
3. For authentication choose **OAuth 2.0**, then **Dynamic discovery**, and **Create**.

## Sign in

Choose **Create a new connection**, sign in to fivebar, then **Add to agent**.

fivebar opens in your browser. Sign in if you need to, check that the page names Copilot Studio, and choose Allow. Copilot Studio can then [read the stats](https://fiveb.ar/docs/mcp.md#what-an-app-can-read) of every site on your Sites page, and changes nothing of yours unless you also tick the box to let it [change settings](https://fiveb.ar/docs/mcp.md#changing-settings).

## Try it

Your agent uses fivebar when a question calls for it, wherever you publish it, such as Teams or Microsoft 365 Copilot.

Ask Copilot Studio about your sites in your own words, such as:

- Which pages did best last week, and where did their visitors come from?
- How does this month compare with last month so far?
- How many people are on my site right now?

## Removing it

Remove fivebar from the agent’s **Tools**.

To stop Copilot Studio reading your stats from fivebar’s side, disconnect it in [Settings](https://fiveb.ar/settings).

More in [Copilot Studio’s own documentation](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-add-existing-server-to-agent).
