# Microsoft MCP Server for Enterprise [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/microsoft/EnterpriseMCP  
**GitHub Stars:** 66  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/microsoft-mcp-server-for-enterprise

## Description
Official Microsoft MCP Server to query Microsoft Entra data using natural language

## Tools
Capabilities this server exposes over MCP:

- **microsoft_docs_search** — Search official Microsoft/Azure documentation to find the most relevant and trustworthy content for a user's query. This tool returns up to 10 high-quality content chunks (each max 500 tokens), extracted from Microsoft Learn and other official sources. Each result includes the article title, URL, and a self-contained content excerpt optimized for fast retrieval and reasoning. Always use this tool to quickly ground your answers in accurate, first-party Microsoft/Azure knowledge.

## Follow-up Pattern
To ensure completeness, use microsoft_docs_fetch when high-value pages are identified by search. The fetch tool complements search by providing the full detail. This is a required step for comprehensive results.
- **microsoft_code_sample_search** — Search for code snippets and examples in official Microsoft Learn documentation. This tool retrieves relevant code samples from Microsoft documentation pages providing developers with practical implementation examples and best practices for Microsoft/Azure products and services related coding tasks. This tool will help you use the **LATEST OFFICIAL** code snippets to empower coding capabilities.

## When to Use This Tool
- When you are going to provide sample Microsoft/Azure related code snippets in your answers.
- When you are **generating any Microsoft/Azure related code**.

## Usage Pattern
Input a descriptive query, or SDK/class/method name to retrieve related code samples. The optional parameter `language` can help to filter results.

Eligible values for `language` parameter include: csharp javascript typescript python powershell azurecli al sql java kusto cpp go rust ruby php
- **microsoft_docs_fetch** — Fetch and convert a Microsoft Learn documentation webpage to markdown format. This tool retrieves the latest complete content of Microsoft documentation webpages including Azure, .NET, Microsoft 365, and other Microsoft technologies.

## When to Use This Tool
- When search results provide incomplete information or truncated content
- When you need complete step-by-step procedures or tutorials
- When you need troubleshooting sections, prerequisites, or detailed explanations
- When search results reference a specific page that seems highly relevant
- For comprehensive guides that require full context

## Usage Pattern
Use this tool AFTER microsoft_docs_search when you identify specific high-value pages that need complete content. The search tool gives you an overview; this tool gives you the complete picture.

## URL Requirements
- The URL must be a valid HTML documentation webpage from the microsoft.com domain
- Binary files (PDF, DOCX, images, etc.) are not supported

## Output Format
markdown with headings, code blocks, tables, and links preserved.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "microsoft-mcp-server-for-enterprise": {
    "url": "https://learn.microsoft.com/api/mcp"
  }
}
```

## Documentation

## What Microsoft MCP Server for Enterprise does

Microsoft MCP Server for Enterprise provides an MCP interface for working with Microsoft Entra data and official Microsoft documentation. Natural-language requests are translated into operations against Microsoft services, allowing an AI client to retrieve relevant knowledge without requiring the user to manually search Microsoft Learn.

The documentation capabilities are focused on first-party Microsoft and Azure content. Search results include article titles, URLs, and self-contained excerpts. Code searches return implementation examples from Microsoft Learn, while page fetching converts supported Microsoft documentation pages into Markdown.

## How it works

Clients connect to the hosted MCP endpoint at `https://learn.microsoft.com/api/mcp`. The server exposes tools that an MCP-compatible client can call as part of an agent workflow.

For broad questions, use `microsoft_docs_search` first. It returns up to 10 content chunks, with each chunk limited to 500 tokens. When a result points to an important page or the answer requires more context, follow up with `microsoft_docs_fetch` to retrieve the complete page. This search-then-fetch pattern is intended for procedures, troubleshooting guidance, prerequisites, and other questions where excerpts may be insufficient.

Use `microsoft_code_sample_search` when generating Microsoft or Azure code. Queries can describe a task or name an SDK, class, or method. An optional language filter narrows results to supported languages and technologies.

## Setup and configuration

Configure an MCP client with the hosted endpoint and authenticate according to the client’s OAuth support. The Microsoft setup uses an app registration representing the client, delegated Microsoft Graph permissions, and administrator consent where required. The registered application is configured as a public client with the client’s mobile or desktop redirect URI, so a client secret is not required for sign-in.

Clients that support OAuth discovery can obtain the server’s scopes automatically. Users sign in with their work account when prompted. Access can also be restricted to assigned users or groups through the tenant’s enterprise application settings.

## Tools and capabilities

- `microsoft_docs_search` finds relevant Microsoft Learn and other official Microsoft content, returning titles, links, and concise excerpts.
- `microsoft_docs_fetch` retrieves a complete Microsoft documentation webpage as Markdown after a relevant page has been identified.
- `microsoft_code_sample_search` finds official Microsoft and Azure code examples, with optional filtering for languages such as C#, JavaScript, TypeScript, Python, PowerShell, Azure CLI, SQL, Java, Kusto, C++, Go, Rust, Ruby, and PHP.
- Microsoft Entra operations support natural-language requests for reading and managing tenant data, with changes requiring user confirmation.

## Limitations and notes

Documentation fetching accepts valid HTML webpages on the `microsoft.com` domain. Binary files such as PDFs, DOCX files, and images are not supported. Search returns a maximum of 10 chunks and limits each chunk to 500 tokens, so complete procedures may require a subsequent fetch. Code search is intended for Microsoft and Azure-related development tasks and supports the listed language filters.

Write operations require an MCP client that supports elicitation so the user can confirm changes. Clients also need OAuth support with a pre-registered client ID for the authenticated Microsoft administration workflow.

_Full upstream README: https://allmcps.com/mcp/microsoft-mcp-server-for-enterprise/readme_

