Skip to content
VS Code

ms onedrive mcp for VS Code

io.github.0xka13b/ms-onedrive-mcp

Microsoft OneDrive MCP server — browse, read, and manage files and folders through Microsoft Graph.

client:VS Code transport:stdio runtime:npm

Install ms onedrive mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "microsoft-client-id",
      "description": "MICROSOFT_CLIENT_ID",
      "password": true
    }
  ],
  "servers": {
    "ms-onedrive-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ms-onedrive-mcp"
      ],
      "env": {
        "MICROSOFT_CLIENT_ID": "${input:microsoft-client-id}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ms onedrive mcp in other clients