CLI for Microsoft 365 MCP Server
Microsoft 365 MCP 서버용 CLI
💡 설명
현재 이 작업은 진행 중이며 해결책이라기보다는 POC에 가깝습니다.
Related MCP server: Microsoft MCP
📦 필수 조건
Node.js 20.x 이상
🚀 빌드 및 실행 방법
무엇보다도 먼저 npm install 실행하여 모든 종속성을 설치하세요.
그런 다음 프로젝트를 빌드하려면 다음을 실행합니다.
지엑스피1
이 MCP 서버는 npm i -g @pnp/cli-microsoft365 사용하여 전역적으로 설치해야 하는 Microsoft 365용 글로벌 설치 CLI를 사용합니다.
MCP 서버는 사용자를 대신하여 인증을 수행하지 않습니다. 먼저 Microsoft 365 CLI에서 m365 login 명령을 사용하여 인증해야 합니다. 인증이 완료되면 MCP 서버는 모든 도구를 실행할 때 동일한 인증 컨텍스트를 사용합니다.
검사기를 사용하여 MCP 실행
Microsoft 365 MCP 서버의 CLI를 테스트하는 방법 중 하나는 MCP Inspector를 사용하는 것입니다. 먼저 다음 명령을 사용하여 MCP 서버를 시작하세요.
npm run start이제 MCP 서버의 검사기를 실행하려면 repo 루트 폴더 위치에서 다음 명령을 실행해야 합니다.
npx @modelcontextprotocol/inspector node dist/index.js그 후 검사기가 시작될 때까지 기다렸다가 브라우저에서 검사기를 열어 보세요. MCP 서버가 실행 중인 것을 확인할 수 있으며, 도구를 쿼리하고 로컬에서 실행할 수 있습니다.

VS Code에서 MCP 실행
로컬 빌드에서 VS Code로 MCP 서버를 실행하여 GitHub Copilot Agent에서 사용할 수도 있습니다. 먼저 다음 명령을 사용하여 Microsoft 365 MCP 서버 CLI를 시작하세요.
npm run start이제 VS Code GitHub Copilot Agent 모드로 이동하여 도구 아이콘을 클릭하고 Add more tools 선택하세요. 그런 다음 Add MCP server 선택하고 Command (stdio) 선택한 후 다음 명령을 입력하세요.
node FULL_PATH_TO_YOUR_PROJECT/dist/index.jsEnter 키를 누르고 원하는 이름을 입력하세요. 테스트를 위해 workspace 범위에 추가하는 것이 좋습니다. 그런 다음 .vscode/mcp.json 파일을 열고 인증에 필요한 환경 변수를 전달하도록 수정하세요.
{
"servers": {
"m365-mcp-server": {
"type": "stdio",
"command": "node",
"args": [
"FULL_PATH_TO_YOUR_PROJECT/dist/index.js" // e.g. C:/workspace/repo/microsoft-365-mcp-server/dist/index.js
]
}
}
}시작을 클릭하면 GitHub Copilot Agent에 358개의 새로운 도구가 추가된 것을 확인할 수 있습니다. 직접 테스트해 보세요. 최상의 결과를 얻으려면 AI 모델로 Claude 3.5 Sonnet 사용하는 것이 좋습니다.

🔗 리소스
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLokka ia an MCP server for the Microsoft Graph API and can be used to query and update all resources in your Microsoft 365 tenant. This MCP server supports all Microsoft Graph APIs including update operations (limited by the permissions you grant to the app).288MIT
- FlicenseCqualityFmaintenanceA powerful MCP server that enables AI assistants to interact with Microsoft Graph API for managing Outlook emails, Calendar events, OneDrive files, and Contacts through natural language commands.3554
- AlicenseNot gradedqualityAmaintenanceA production-ready MCP server that provides secure, delegated access to Microsoft 365 services including Email, SharePoint, OneDrive, and Calendar. It enables AI models to search messages, browse files, manage calendar events, and parse document contents using OAuth 2.1 authentication.MIT
- AlicenseCqualityNot gradedmaintenanceAn MCP server that enables interaction with Microsoft 365 services like Outlook, OneDrive, Teams, and SharePoint via the Microsoft Graph API. It supports comprehensive operations including email management, file access, and organizational collaboration for personal and work accounts.78
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for AI dialogue using various LLM models via AceDataCloud
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/pnp/cli-microsoft365-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server