drio
Open app

Claude Integration with MCP for Microsoft Graph API

Source

Claude integration with MCP server for Microsoft Graph API

Catalog onlyCatalog onlySTDIO

Overview

This project provides a complete solution for integrating Claude with a Model Context Protocol (MCP) server to access Microsoft Graph API, enabling seamless communication and data retrieval from Microsoft services.

To use this integration, clone the repository, set up the MCP server and Claude application by installing dependencies, configuring environment variables, and starting both servers. You can then test the integration using provided API endpoints.

  • Complete integration of Claude with Microsoft Graph API via MCP server. - Step-by-step implementation guide for easy setup. - Customizable integration with options to add more Graph API functions and caching. - API endpoints for chat and organizational analysis.
  1. Accessing user data from Microsoft Graph API.
  2. Automating responses to user queries using Claude.
  3. Customizing the integration for specific organizational needs.

Add to your AI client

Use these steps to connect Claude Integration with MCP for Microsoft Graph API in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "test1-jbagent": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-test1-jbagent"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "test1-jbagent": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-test1-jbagent"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "test1-jbagent": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-test1-jbagent"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "test1-jbagent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-test1-jbagent"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "test1-jbagent": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-test1-jbagent"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "test1-jbagent": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-test1-jbagent"
      ]
    }
  }
}

FAQ

What is the purpose of the MCP server?

The MCP server acts as a bridge between Claude and Microsoft Graph API, facilitating data requests and responses.

How do I configure the environment variables?

You need to edit the `.env` files in both the MCP server and Claude application directories with your Azure AD credentials and API keys.

Can I customize the integration?

Yes! You can add more Graph API functions and customize the system prompt for Claude's behavior.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2108,"uuid":"354f3f20-e303-48e1-b6e7-e22bdda5100d","name":"Test1","title":"Claude Integration with MCP for Microsoft Graph API","description":"Claude integration with MCP server for Microsoft Graph API","avatar_url":"https://avatars.githubusercontent.com/u/202438391?v=4","created_at":"2025-03-09T03:34:17.018Z","updated_at":"2025-03-12T10:18:23.709Z","status":"created","author_name":"JBAgent","author_avatar_url":"https://avatars.githubusercontent.com/u/202438391?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/JBAgent/Test1","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-09 21:50:25\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

Claude Integration with MCP for Microsoft Graph API — MCP Registry