MCP.so
ログイン

MCP Server for the Microsoft Graph Api

@MartinM85

基本情報

カテゴリ

開発者ツール

ライセンス

MIT

トランスポート

stdio

作者

MartinM85

MCP Server for the Microsoft Graph Api について

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

#mcp#graph-api#microsoft-graph-api#microsoft-graph-sdk#claude-ai#mcp-server#claude-3-7-sonnet

MCP Server for the Microsoft Graph Api の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "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"
      }
    }
  }
}

MCP Server for the Microsoft Graph Api のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server for the Microsoft Graph Api?

An MCP (Model Context Protocol) server written in C# that enables AI assistants (such as Claude or Azure OpenAI) to interact with the Microsoft Graph API and answer questions about your Microsoft Entra tenant.

How to use MCP Server for the Microsoft Graph Api?

Register an Entra ID application with at least User.Read.All permission, then configure the server in claude_desktop_config.json with your tenant ID, client ID, client secret, and optional national cloud endpoint. Build the solution, and the MCP server will be automatically discovered by the Claude Desktop app.

Key features of MCP Server for the Microsoft Graph Api

  • Connects AI assistants to the Microsoft Graph API
  • Supports multiple national clouds (Global, US Gov, China, Germany)
  • Uses app‑only authentication via Entra ID client secret
  • Exposes Graph API tools through the Model Context Protocol
  • Compatible with Claude Desktop and any MCP client
  • Optionally works with Azure OpenAI Service or Anthropic Claude API

Use cases of MCP Server for the Microsoft Graph Api

  • Let an AI assistant query user or group information from your Microsoft 365 tenant
  • Automate common administration tasks by sending natural language requests to Microsoft Graph
  • Integrate Copilot or similar tools with your tenant’s directory data

よくある質問

1

What runtime and dependencies are required?

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).

2

How does authentication work?

The server uses an Entra ID application with a client secret (app‑only authentication). You must grant at least the `User.Read.All` application permission and provide the tenant ID, client ID, and client secret in environment variables.

3

Can I use a national cloud other than the global Microsoft Graph service?

Yes. Set the `NATIONAL_CLOUD` environment variable to `Global`, `US_GOV`, `US_GOV_DOD`, `China`, or `Germany` to target the corresponding Microsoft Graph endpoint.

4

Which transports and authentication are supported by the MCP server?

The server uses command‑line stdio (standard input/output) for transport, as configured in `claude_desktop_config.json`. Authentication is always via Entra ID client credentials.

5

Where are logs stored if something goes wrong?

When using Claude Desktop, logs can be found in `%APPDATA%\Claude\logs` on Windows.

コメント

「開発者ツール」の他のコンテンツ