1. Conduid
  2. Developer Tools
  3. Copilot Retrieval API MCP Server
MCP server · Developer Tools

Copilot Retrieval API MCP Server

MCP Server to access CoPilot Retrieval API

Unclaimed last commit 11 months ago devtools
34Low

Scored 7 months ago · breakdown

About Copilot Retrieval API MCP Server

Copilot Retrieval API MCP Server is an MCP server published by lowcodelegend in the Developer Tools category: mCP Server to access CoPilot Retrieval API.

The repository has 2 stars and 0 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/lowcodelegend/copilot-retrieval-api-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Copilot Retrieval API MCP Server

Powered by Claude · Grounded in docs

I know everything about Copilot Retrieval API MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Microsoft CoPilot Retrieval API MCP Server

Description

Since mid-2025 Microsoft has provided a Retrieval API for Copilot.

The API leverages Semantic Search and automatically takes care of OneDrive and SharePoint document chunking, embedding, and storing vector representation of these documents. This saves the engineer from needing to bring their own Embedding Models, Vector DB, Chunker, and upsert flow.

It allows the central data-store to remain as M365. Rather than copying the data elsewhere.

For information on the API see: Retrieval API Documentation

The MCP server provides the following interface: Input is a natural language query. Response is a list of chunks (document fragments) of relevant text from OneDrive/SharePoint Documents.

Getting Started

  1. Do an App Registration in Entra ID (AAD).
  2. Set-up the required Environment Variables (docker-compose.yaml, or .env if building locally)
  3. Host and run on Docker with docker compose - copy just the docker-compose.yaml and run:
docker compose up -d

Alternativly, clone the whole repo for dev/test work.

  1. Visit the /login endpoint to setup to authenticate to Graph API.
  2. Add the server to your mcp.json or other MCP client:
{
  "mcpServers": {
    "copilotRetrieval": {
      "url": "http://localhost:5192/mcp"
    }
  }
}

Environment Variables

You will need an App Registration in Entra ID (AAD). Update the values in the .env file or in the docker-compose.yaml depending how you're hosting.

Default Docker ports exposed are: HTTP: 5192 HTTPS: 7198

No provisions has been added yet to manage the SSL cert. TODO. Typically the service is expected to run behind an SSL offloading Reverse Proxy.

ASPNETCORE_URLS=http://0.0.0.0:5192                             # generally you won't want to change this - change the public base url and redirect uri
GRAPH_TENANT_ID=REPLACEME                                       # from Entra ID App Registration
GRAPH_CLIENT_ID=REPLACEME                                       #
GRAPH_CLIENT_SECRET=REPLACEME                                   #
GRAPH_LOGIN_HINT=me@myO365Tenant.com                            # user login hint - suggest the user logs in as
GRAPH_ALLOWED_UPN=copilotServiceAccountUser@myO365Tenant.com    # *ensure* the user logs in as this user only
GRAPH_REDIRECT_URI=http://localhost:5192/auth/callback          # e.g. https://myMcpServerUrl/auth/callback, make sure it's registered in App Registration in Entra ID
MOCK_COPILOT_RETRIEVAL=0                                        # for offline hacking, mock response from graph and bypass auth
PUBLIC_BASE_URL=https://myMcpServerUrl                          # if using a reverse proxy you can set this

Notes on Authentication

Copilot Retrieval API only supports Auth Code tokens which need a user context. No AppOnly/ClientCredentials

  • When you authenticate, you will provide a single static user: user@myTenant.com
  • The user must have a FULL Copilot licence, not just a Copilot Chat licence, but only that one user requires it.
  • The refresh token has a 90 day inactivity window by default Entra ID (AAD) settings.
  • If nobody uses the server in that inactivity window, you will need to re-auth.
  • Re-auth is done by the copilot licenced user going to /login on the MCP server. You can trap the auth_required error in the Agent and fire off notifications etc.
  • Be careful, all users of the MCP server will have access to whatever the user has access to.

Notes on Rate Limits

As there's a single user context, care should be taken to understand the rate limiting restrictions MS places.

Licence and Copyright

MIT Ashley Evans 2025

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Copilot Retrieval API MCP Server

How do I install Copilot Retrieval API MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Copilot Retrieval API MCP Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Copilot Retrieval API MCP Server still maintained?

The last commit was 11 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.