For The Microsoft Graph Api MCP Server

Model-context-protocol (MCP) server for the Microsoft Graph API in C#

Local serverstdio

What is the For The Microsoft Graph Api MCP Server?

Model-context-protocol (MCP) server for the Microsoft Graph API in C

What it actually does

Register a new Entra ID application, add and grant at least the User.Read.All application permission and create a new client secret.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the For The Microsoft Graph Api MCP Server

{
    "mcpServers": {
        "graphApi": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "path/to/folder/with/console_project",
                "--no-build"
            ],
            "env": {
                "TENANT_ID": "<tenant_id>",
                "CLIENT_ID": "<client_id>",
                "CLIENT_SECRET": "<client_secret>",
                "NATIONAL_CLOUD": "Global"
            }
        }
    }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
TENANT_IDConfiguration value read at startup.Optional
CLIENT_IDConfiguration value read at startup.Optional
CLIENT_SECRETCredential the server authenticates with.Yes
NATIONAL_CLOUDConfiguration value read at startup.Optional
AZURE_OPENAI_API_KEYCredential the server authenticates with.Yes

Frequently asked questions

The project is a .NET console application built with C#. You need the .NET SDK installed to build and run it (using the `dotnet` command).