MCP Server Microsoft365 Filesearch
M

MCP Server Microsoft365 Filesearch

A server implementation based on the MCP protocol that provides file search functionality for Microsoft 365 (SharePoint/OneDrive), supporting efficient file discovery, metadata analysis, and business process integration.
2 points
7.2K

What is the Microsoft 365 File Search Server?

This is a server based on the Model Context Protocol (MCP) that allows you to quickly search for files in Microsoft 365, such as finding specific content in SharePoint and OneDrive. It can help you analyze file metadata and easily integrate it into your workflow.

How to use the Microsoft 365 File Search Server?

Simply enter search keywords to find the required files. The server will return the file metadata and content summary, and you can further obtain the specific content of the file.

Applicable Scenarios

This server is very suitable for scenarios where enterprise users need to quickly retrieve files, analyze file content, or integrate file management functions.

Main Features

Advanced File Search
Search for files in Microsoft 365 based on keywords and return the file metadata and content summary.
Local Cache Mechanism
Downloaded files will be stored in the local cache for quick subsequent access, improving efficiency.
Seamless Workflow Integration
Integrate file search results directly into existing business processes to improve work efficiency.
Advantages
Quickly retrieve files, saving time.
Support local cache to reduce repeated API calls.
Easy to use without complex configuration.
Support various file formats and content analysis.
Limitations
Requires permissions for an Azure - registered application.
May take longer to process large files.
Depends on the Microsoft Graph API and requires a stable network connection.

How to Use

Install and Run the Server
Ensure that the Python environment is installed and clone the GitHub repository locally.
Configure Environment Variables
Set the necessary environment variables, including the client ID, client secret, and tenant ID.
Start the Server
Run the server script in the project directory.
Use the Search Function
Enter keywords to search for files and obtain file metadata.

Usage Examples

Case Title: Search for Annual Reports
Enter the keyword 'Annual Report' to obtain a list of eligible files.
Case Title: Get Specific File Content
Get the specific content of a file through the file ID and drive ID.

Frequently Asked Questions

How to register an Azure application?
What if the search speed is slow?
Where is the file cache stored?

Related Resources

GitHub Project Address
View the project source code and documentation.
Microsoft Graph API Documentation
Understand the relevant functions of the Microsoft Graph API.
Azure Registration Tutorial
Quickly get started with Azure application registration.

Installation

Copy the following command to your Client for configuration
"mcpServers": {
  "M365 File Search (SharePoint/OneDrive)": {
    "command": "uv",
    "args": [
      "--directory",
      "full_path_to_parent_directory",
      "run",
      ".\\src\\mcp_m365_filesearch\\server.py"
    ],
    "env": {
      "CLIENT_ID": "MSGraph Client ID",
      "CLIENT_SECRET": "MS Graph Client Secret",
      "TENANT_ID": "TENANT ID",
      "REGION": "SEARCH REGION"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
14.6K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.5K
4.5 points
H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
16.4K
5 points
C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
29.3K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
23.9K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
14.2K
5 points
A
Annas MCP
The MCP server and CLI tool of Anna's Archive are used to search for and download documents on the platform and support access through an API key.
Go
12.7K
4.5 points
S
Search1api
The Search1API MCP Server is a server based on the Model Context Protocol (MCP), providing search and crawling functions, and supporting multiple search services and tools.
TypeScript
17.9K
4 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
36.8K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
75.8K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
22.4K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
26.7K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
65.9K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
34.8K
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
99.5K
4.7 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.9K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase