MCP.so
登录

MCP MSGraph

@kevinbellinger

基本信息

分类

其他

传输方式

stdio

作者

kevinbellinger

关于 MCP MSGraph

A prototype MCP server which reads a user profile from Microsoft Graph.

MCP MSGraph 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-msgraph": {
      "command": "python3",
      "args": [
        "-m",
        "venv",
        "venv"
      ]
    }
  }
}

MCP MSGraph 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP-MSGraph?

MCP-MSGraph is a prototype MCP (Model Context Protocol) server that reads a user profile from Microsoft Graph. It serves as a proof of concept for connecting MCP to data stored in Microsoft Graph.

How to use MCP-MSGraph?

Clone the repository, create a Python virtual environment, install the required packages (fastapi, uvicorn, requests, requests-oauthlib, pydantic), then edit main.py to replace placeholder values with your Azure AD Application ID, Tenant ID, and Client Secret. Start the server with uvicorn main:app --reload and send an HTTP POST request to http://localhost:8000/mcp with a JSON body containing action, contextId, and data.userId.

Key features of MCP-MSGraph

  • Reads a user profile from Microsoft Graph via a single MCP action (readUserProfile)
  • Uses OAuth2 authentication with Azure AD
  • Runs as a local FastAPI server
  • Accepts requests over HTTP at the /mcp endpoint

Use cases of MCP-MSGraph

  • Demonstrating how an MCP server can retrieve personal data from Microsoft Graph
  • Prototyping AI assistants that need to query Microsoft 365 user profiles
  • Testing MCP integration with Microsoft identity and data platforms

常见问题

1

What exactly does MCP-MSGraph do?

It reads a user profile from Microsoft Graph using the `readUserProfile` action. It is a prototype and proof of concept, not a production‑ready server.

2

How do I get the credentials needed to run MCP-MSGraph?

You must create an Azure AD application in the Azure Portal, note the Application (client) ID and client secret, and add the `User.Read.All` API permission (delegated or application, with admin consent).

3

What are the runtime dependencies for MCP-MSGraph?

Python 3, plus the packages fastapi, uvicorn, requests, requests-oauthlib, and pydantic.

4

How can I test MCP-MSGraph after starting it?

Send a curl request like: `curl -X POST http://localhost:8000/mcp -H "Content-Type: application/json" -d '{"action":"readUserProfile","contextId":"abc123","data":{"userId":"someUser@yourtenant.onmicrosoft.com"}}'`. A successful response returns a JSON object with the user’s profile data.

评论

其他 分类下的更多 MCP 服务器