MCP Server for the Microsoft Graph Api
@MartinM85
MCP Server for the Microsoft Graph Api について
Model-context-protocol (MCP) server for the Microsoft Graph API in C#
基本情報
設定
以下の設定を使って、このサーバーを 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"
}
}
}
}ツール
ツールは検出されませんでした
ツールは 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
FAQ from MCP Server for the Microsoft Graph Api
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).
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.
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.
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.
Where are logs stored if something goes wrong?
When using Claude Desktop, logs can be found in %APPDATA%\Claude\logs on Windows.
「開発者ツール」の他のコンテンツ
test
prysmaticlabsGo implementation of Ethereum proof of stake
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
OpenSumi
opensumiA framework helps you quickly build AI Native IDE products. MCP Client, supports Model Context Protocol (MCP) tools via MCP server.
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
コメント