
ftaricano/mcp-onedrive-sharepoint
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버 및 CLI OneDrive 및 SharePoint 문서 라이브러리 Microsoft Graph를 통해, app-only auth 및 작은 기본 도구 세트
개요
AI Agent (MCP 이상) 및 Shell scripts (ods CLI를 통해)는 Microsoft Graph를 통해 OneDrive 및 SharePoint 문서 라이브러리에 액세스하고, 앱 전용 인증 및 작은 기본 도구 세트. 실제 CLI는 fictional data(contoso.sharepoint.com의 Acme 사이트)로 모인 Microsoft Graph에 대해 출력합니다. - MCP 서버 및 CLI는 동일한 도구, 오 및 핸들러를 공유합니다. - 핵심 프로파일에는 매일 10개의 도구가 있습니다; 삭제, 공유, 권한, 목록-item 및 원시 그래프 도구는 opt-in입니다. - 요청 URL은 토큰이 첨부되기 전에 https://graph.microsoft.com에 대해 체크하고 로컬 파일 액세스는 하나의 루트 디렉토리에 confined. - 도구 결과는 JSON이므로 jq 및 친구가 작동합니다. Node.js 20+ 및 Microsoft Entra ID 앱 등록이 필요합니다. 자세히보기 모든 및 사이트. 자세히보기 모든 신청 허가 및 관리자 동의 (필수 참조). Prefer는 쉘에 입력하여 비밀 관리자에서 비밀을 주사합니다.
개요(AI 번역)
AI 에이전트 (MCP 이상) 및 쉘 스크립트 ([T0]] CLI를 통해) OneDrive 및 SharePoint 문서 라이브러리에 액세스 Microsoft Graph를 통해, 앱 전용 인증 및 작은 기본 도구 세트.
Real CLI는 fictional data([T1]]에 Acme 사이트)로 모인 Microsoft Graph에 대해 출력합니다.
- ** 1개의 핵심, 2개의 정면 끝: ** MCP 서버 및 CLI는 동일한 공구, auth 및 Handlers를 공유합니다.
- 소형 표면:
core] 프로파일에는 매일 10개의 도구가 있습니다. 삭제, 공유, 권한, 목록-item 및 원시 그래프 도구가 선택되어 있습니다. - **Guarded 요청: ** 요청 URL은 토큰이 첨부되기 전에
https://graph.microsoft.com]에 대해 확인되며 로컬 파일 액세스는 한 루트 디렉토리에 confined. -Script friendly: 도구 결과는 JSON이므로,jq과 친구는 단지 작동합니다.
퀵스타트
Node.js 20+ 및 Microsoft Entra ID 앱 등록이 필요합니다. Files.ReadWrite.All 및 Sites.ReadWrite.All] 신청 허가 및 관리자 동의 (필수 사항 참조).
Prefer는 쉘에 입력하여 비밀 관리자에서 비밀을 주사합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP OneDrive/SharePoint Server
Give AI agents (over MCP) and shell scripts (through the ods CLI) access to OneDrive and SharePoint document libraries via Microsoft Graph, with app-only authentication and a small default tool set.
Real CLI output against a mocked Microsoft Graph with fictional data (the Acme site on contoso.sharepoint.com).
- One core, two front ends: the MCP server and the CLI share the same tools, auth and handlers.
- Small default surface: the
coreprofile has 10 everyday tools; delete, share, permission, list-item and raw Graph tools are opt-in. - Guarded requests: request URLs are checked against
https://graph.microsoft.combefore the token is attached, and local file access is confined to one root directory. - Script friendly: tool results are JSON, so
jqand friends just work.
Quickstart
You need Node.js 20+ and a Microsoft Entra ID app registration with the Files.ReadWrite.All and Sites.ReadWrite.All Application permissions and admin consent (see Requirements).
git clone https://github.com/ftaricano/mcp-onedrive-sharepoint.git
cd mcp-onedrive-sharepoint
npm ci && npm run build
export MICROSOFT_GRAPH_TENANT_ID=
export MICROSOFT_GRAPH_CLIENT_ID=
export MICROSOFT_GRAPH_CLIENT_SECRET=
node build/cli.js list
node build/cli.js list_files --siteUrl=https://contoso.sharepoint.com/sites/Docs --path=/
Prefer injecting the secret from your secret manager over typing it into the shell. To use the MCP server, point your MCP client at node /absolute/path/to/mcp-onedrive-sharepoint/build/index.js with the same three variables in its environment (see MCP stdio snippet).
Example
List a folder of a SharePoint site and keep only the fields you need:
node build/cli.js list_files --siteUrl=https://contoso.sharepoint.com/sites/Acme --path=/Reports \
| jq -c '.items[] | {name, type, size}'
{"name":"2026-Q2","type":"folder","size":0}
{"name":"Quarterly report Q1.pdf","type":"file","size":482133}
{"name":"Sales pipeline.xlsx","type":"file","size":91520}
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"sharepoint": {
"command": "node",
"args": ["/absolute/path/to/mcp-onedrive-sharepoint/build/index.js"],
"env": {
"MICROSOFT_GRAPH_TENANT_ID": "<tenant-uuid>",
"MICROSOFT_GRAPH_CLIENT_ID": "<application-client-id>",
"MICROSOFT_GRAPH_CLIENT_SECRET": "<client-secret>"
}
}
}
}