SharePoint MCP Server

v1.1.1
io.github.ravikant1918/sharepoint-mcp Checked 1 day ago Published 8 months ago

MCP server for Microsoft SharePoint — manage folders, documents, and metadata.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

List_SharePoint_Documents

List all documents (with metadata) inside a SharePoint folder. For Graph API, use empty string or 'root' for the document library root. For nested folders, use paths like 'Reports' or 'Reports/2024'.

ParameterTypeDescription
folder_namestring

Search_SharePoint

Search SharePoint for documents using Keyword Query Language (KQL). Useful for finding files when you don't know their exact folder path. Returns up to row_limit results with metadata.

ParameterTypeDescription
query *string
row_limitinteger

Get_Document_Content

Retrieve and decode the content of a SharePoint document. Supports PDF, Word, Excel, and plain-text files. For files in the document library root, use empty string for folder_name.

ParameterTypeDescription
file_namestring
folder_namestring

Upload_Document

Upload a new document to a SharePoint folder. Pass content as a UTF-8 string or Base64-encoded bytes. Use empty string for folder_name to upload to document library root.

ParameterTypeDescription
content *string
file_name *string
folder_namestring
is_base64boolean

Upload_Document_From_Path

Upload a local file directly to SharePoint without converting to Base64 first. Use empty string for folder_name to upload to document library root.

ParameterTypeDescription
file_pathstring
folder_namestring
new_file_name

Update_Document

Overwrite the content of an existing SharePoint document. Use empty string for folder_name for files in document library root.

ParameterTypeDescription
contentstring
file_namestring
folder_namestring
is_base64boolean

Delete_Document

Permanently delete a document from a SharePoint folder. Use empty string for folder_name for files in document library root.

ParameterTypeDescription
file_namestring
folder_namestring

Download_Document

Download a SharePoint document to the local filesystem (with automatic fallback to ./downloads/). Use empty string for folder_name for files in document library root.

ParameterTypeDescription
file_namestring
folder_namestring
local_pathstring

List_SharePoint_Folders

List all sub-folders in a SharePoint directory. Use None/null or empty string for document library root. For Graph API, the root represents the default document library.

ParameterTypeDescription
parent_folder

Get_SharePoint_Tree

Get a recursive tree view of folders and files starting from a SharePoint directory. Use None/null or empty string for document library root.

ParameterTypeDescription
parent_folder

Create_Folder

Create a new folder in a SharePoint directory. Use None/null or empty string for parent_folder to create in document library root.

ParameterTypeDescription
folder_namestring
parent_folder

Delete_Folder

Delete an empty folder from SharePoint. Provide the full path to the folder to delete.

ParameterTypeDescription
folder_pathstring

Get_File_Metadata

Retrieve all SharePoint list-item metadata fields for a document.

ParameterTypeDescription
file_name *string
folder_name *string

Update_File_Metadata

Update one or more SharePoint list-item metadata fields for a document.

ParameterTypeDescription
file_name *string
folder_name *string
metadata *object