mcp-graph-me-tool
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-graph-me-toolget my Microsoft Entra user profile"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-graph-me-tool
A minimal Streamable HTTP
MCP server exposing one tool, graph_me, which calls Microsoft Graph's GET /me with the caller's
bearer token and returns the signed-in user's profile.
It's the backend half of a Microsoft Entra ID On-Behalf-Of (OBO) token exchange demo: a gateway
(e.g. agentgateway) sits in front of this server, validates the caller's
Entra token, exchanges it for a Graph-scoped token via Entra's own token endpoint, and forwards the
request here with the exchanged token substituted for Authorization. This server does not perform
any exchange or validation itself - it only relays whatever bearer token it's handed to Graph.
What it does
sequenceDiagram
participant Client as MCP Client
participant AGW as Gateway (OBO exchange)
participant Tool as mcp-graph-me-tool
participant Graph as Microsoft Graph
Client->>AGW: tools/call graph_me + user's Entra token
AGW->>AGW: exchange for a Graph-scoped token
AGW->>Tool: tools/call graph_me + exchanged token
Tool->>Graph: GET /v1.0/me + exchanged token
Graph-->>Tool: profile
Tool-->>AGW: tool result
AGW-->>Client: tool resultgraph_me- no arguments. Reads theAuthorizationheader off the incoming HTTP request and callshttps://graph.microsoft.com/v1.0/mewith it. Returns the profile JSON on success, or{"error": "Graph API returned <status>", "detail": "<Graph's own error body>"}on failure (including when noAuthorizationheader is present at all).GET /healthz- plain200 okliveness/readiness check.
Each HTTP request gets a fresh McpServer instance built from that request's own Authorization
header (see buildServer() in server.js) - there is no session or connection state
held between requests.
Related MCP server: mcp-obo
Running locally
npm install
npm start
# listening on :8080 (override with PORT)curl localhost:8080/healthz
# okDevelopment
npm test # node --check server.js (syntax check)Wiring into agentgateway
Deploy this image behind a plain EnterpriseAgentgatewayBackend/HTTPRoute pointing at port 8080,
protocol: StreamableHTTP, path: /mcp, then apply an oauthTokenExchange policy (grantType: JwtBearer) on that route to perform the Entra OBO exchange before requests reach this server. See
docs.solo.io's Entra OBO guide
for the full walkthrough.
License
Apache License 2.0 - see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Databricks workspaces using On-Behalf-Of authentication to test connectivity, retrieve user information, and perform operations on behalf of authenticated users.1
- FlicenseNot gradedqualityDmaintenanceImplements the on-behalf-of flow with Entra ID to enable authorized calls to Microsoft Graph API via MCP tools.9
- AlicenseNot gradedqualityBmaintenanceMCP server for Microsoft 365 via the Microsoft Graph API, providing read-only access to profile, calendar, email, Teams chats, OneDrive files, and meeting transcripts from any MCP client.212MIT
- AlicenseNot gradedqualityDmaintenanceEnables authenticated user profile retrieval via the 'whoami' tool, using OAuth2 and Asgardeo.MIT
Related MCP Connectors
Remote MCP for A2A caller identity, scope policy, verdict receipts, and audit history.
Official Microsoft MCP Server to query Microsoft Entra data using natural language
An authenticated remote MCP server for user-owned devices and one-shot capability invocation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/day0ops/mcp-graph-me-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server