SharePoint Embedded gives developers API-first document storage and Microsoft 365 collaboration capabilities for custom applications. With the SharePoint Embedded MCP server (preview), which uses the Model Context Protocol (MCP), a coding agent can assist you from idea to working proof of concept by helping plan the architecture, scaffold the app, connect services, test APIs, and refine the experience through natural-language instructions. Results vary based on your project, tools, and environment.
With an MCP-compatible coding agent, you can describe what you want to accomplish in natural language and let the agent invoke the appropriate tools, reducing the need to move between portals or manually assemble commands. The open-source developer tool is currently in preview and runs locally through the @microsoft/spe-mcp npm package.
Turn your intent into SharePoint Embedded actions
Instead of translating every task into a series of commands, you can prompt your coding agent with requests such as:
- “List my SharePoint Embedded container types.”
- “Create a trial container type called Contoso Docs for app ID abc-123.”
- “Provision a new SharePoint Embedded app and scaffold a React sample.”
The SharePoint Embedded MCP server (preview) exposes tools that span much of the development workflow. Your coding agent can help:
- Provision resources: Create and manage owning applications, container types, registrations, and containers.
- Configure billing: Connect a standard container type to an Azure subscription and resource group.
- Build and run: Scaffold a reference app, populate its configuration, seed sample content, and run it locally.
- Work with content: With explicit content-access consent, upload files, create folders, search, preview, and manage sharing.
- Manage containers: Configure permissions and archive, restore, or delete containers.
- Deploy: Deploy the generated reference application to Azure.
- Find documentation: Retrieve official SharePoint Embedded and Microsoft Graph documentation through the Microsoft Learn MCP server.
Learn more about the available tools for the SharePoint Embedded MCP server. For the architecture and requirements behind these steps, see the end-to-end SharePoint Embedded build guidance.
Start building in the environment you already use
Before you get started, make sure you have the prerequisites: Node.js 22 or later, Azure CLI, administrative access to a Microsoft 365 tenant, and an MCP-compatible client.
The SharePoint Embedded MCP server works with MCP-compatible clients including GitHub Copilot in Visual Studio Code or CLI, Claude Desktop, Cursor, and Azure AI Foundry. Microsoft Learn also provides configuration guidance for Visual Studio, Claude Code, and the Codex CLI.
Clients that support MCP servers over the stdio transport can run the server with the same npx -y @microsoft/spe-mcp start command. See the Install and configure guidance or your client’s documentation for where to register MCP servers.
Once registered, you can use your coding agent to invoke its tools.
The MCP server supports two running modes: bootstrap mode and pre-provisioned app mode. For a simpler starting experience, use bootstrap mode. The server uses your Azure CLI session for control-plane operations and can provision the owning Microsoft Entra ID application on demand, so you don’t need to create that app registration first. Learn more about choosing how the server authenticates.
Control what your coding agent can access
The SharePoint Embedded MCP server includes controls that let you limit what a coding agent can do.
For example, read-only mode exposes only read, list, get, and search tools while rejecting mutating operations. You can also restrict the tools exposed to the agent with profiles such as readOnly, docsOnly, provisioning, content, and admin, or select individual tools. Content operations require separate, explicit consent.
This lets you align the agent’s capabilities to the task, whether you’re exploring an environment, provisioning development resources, or working with content.
Learn more about read-only mode and tool profiles.
Keep the SharePoint Embedded security model in the loop
Using a coding agent can help simplify how you execute development tasks, but it doesn’t change the underlying SharePoint Embedded security model.
Applications interact with SharePoint Embedded through Microsoft Graph. Access combines Microsoft Graph permissions, container type application permissions, and, for delegated access, the user’s permissions on an individual container. Microsoft Graph permissions alone don’t grant access to containers.
For user-driven operations, use delegated access whenever possible. Use app-only access for background operations that don’t act on behalf of a user, and apply least privilege when assigning permissions.
One important architectural requirement remains: creating a container requires a confidential client that can securely hold a credential. If your front end is a single-page, mobile, or desktop public client, route container creation through a secure backend.
Learn more about how to plan for authentication and permissions.
Next steps: Put your coding agent to work
Ready to try an agent-driven development workflow?
- Set up the SharePoint Embedded MCP server and connect it to your preferred MCP-compatible coding agent.
- Review the end-to-end build path to understand the architecture and production requirements behind your application.
- Review authentication and permissions before deciding how your application and agent should access resources.
- Then put your agent to work with a prompt like: “Provision a new SharePoint Embedded app and scaffold a React sample.”
Coding agents can help reduce the manual mechanics between an idea and a working SharePoint Embedded application, helping you spend more time building the content experiences your users need.
If you’re attending ESPC26, add the Modernize Legacy Systems for the Copilot Era with SharePoint Embedded session on 1 Dec at 15:15 CET to your schedule. James Eccles and Shreyas Saravanan, Microsoft, will explore how SharePoint Embedded can provide a secure, scalable, API-driven content foundation for modernizing content-centric applications while keeping the user experience in your control.
0 comments
Be the first to start the discussion.