Overview
Features
search_m365_files tool
Performs a file search within the Microsoft 365 environment and returns an array of file metadata, including content summary, drive ID, and file ID.
get_file_content tool
Retrieves the binary content of a specified file (drive ID + file ID) and supports binary stream delivery; uses the local cache to speed repeated access.
Local file caching
Caches downloaded files locally in ./src/mcp_m365_filesearch/.local/downloads to improve performance and reduce API calls.
Metadata-rich results
Returns file metadata including content summary, drive ID, and file ID to support downstream processing.
Workflow integration
Designed to integrate with business workflows by exposing file content and metadata to MCP-enabled automation.
Claude Desktop integration guide
Includes configuration guidance for Claude Desktop via claude_desktop_config.json enabling seamless use in Claude workflows.
Graph API authentication guidance
Provides steps for Microsoft Graph app registration including Client ID, Tenant ID, Client Secret and required permissions (Sites.Read.All, Files.Read.All) with admin consent.
Who Is This For?
- Developers:Create MCP-based apps to search SharePoint/OneDrive and fetch file content.
- IT Pros:Enable IT teams to integrate Microsoft 365 content search into automation workflows.
- System Integrators:Embed MCP-based search and retrieval into enterprise systems and automation pipelines.




