Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure Model Context Protocol (MCP) Server enables AI assistants like GitHub Copilot, Claude Desktop, and others to interact with Azure AI Search through natural language commands. This integration allows you to manage search resources and query both indexed and remote data without writing code or remembering complex CLI syntax.
Overview
Azure AI Search is a cloud-based search service that supports full-text, vector, and hybrid search over scattered enterprise content. You can load and query an index for classic search scenarios, or you can use a knowledge base for agentic retrieval over indexed and remote data.
With Azure MCP Server integration, you can use natural language to:
- List Azure AI Search services in your subscription.
- View index schemas, fields, and configurations.
- Query indexes to find relevant content.
- View knowledge base and knowledge source details.
- Retrieve from knowledge bases using queries or conversational messages.
Prerequisites
To use the Azure MCP Server with Azure Functions, you need:
Azure requirements
Before using Azure MCP Server with Azure AI Search, ensure you have:
- Azure subscription: An active Azure subscription. Create one for free.
- Azure AI Search service: You need to have at least one Azure AI Search service provisioned to use its features.
- Azure permissions: Appropriate roles to perform the operations you want. See Azure Built-in Roles.
MCP client requirements
You need an AI assistant or development environment that supports the Model Context Protocol. Choose one:
AI-powered code editors:
Programmatic integration:
For complete setup instructions, see Get started with Azure MCP Server.
Where can you use Azure MCP Server?
The Azure MCP Server works in three primary contexts:
In AI-powered chat and code editors
Use the Azure MCP Server directly within AI assistants and code editors. As you chat about your Azure resources, the AI assistant automatically invokes Azure MCP Server tools to retrieve information, make changes, or answer questions. This is the most common usage pattern.
Get started with:
In programmatic applications
Integrate the Azure MCP Server into your applications using the MCP SDK. Your app acts as an MCP client and invokes Azure MCP Server tools programmatically. This approach is useful for building custom automation, chatbots, or intelligent applications that need Azure integration.
Get started with:
In self-hosted scenarios
Deploy the Azure MCP Server in your own environment for advanced control, security requirements, or custom modifications. You can run it locally, in containers, or integrate it into existing infrastructure. This pattern suits enterprise scenarios requiring air-gapped environments or custom authentication flows.
Learn how to:
Available tools for Azure AI Search
Azure MCP Server provides the following tools for Azure AI Search operations:
| Tool | Description |
|---|---|
search index get |
Retrieve details of Azure AI Search indexes and their properties. |
search index query |
Query an Azure AI Search index for relevant results. |
search knowledge base get |
Get details of Azure AI Search knowledge bases and their sources. |
search knowledge base retrieve |
Retrieve information using a specific Azure AI Search knowledge base. |
search knowledge source get |
Get details of knowledge sources utilized in Azure AI Search. |
search service list |
List all Azure AI Search services available in the subscription. |
For detailed information about each tool, including parameters and examples, see Azure AI Search tools for Azure MCP Server.
Get started
Ready to use Azure MCP Server with your Azure AI Search resources?
- Set up your environment: Choose an AI assistant or development tool that supports MCP. For setup and authentication instructions, see the links in the Where can you use Azure MCP Server? section above.
- Start exploring: Ask your AI assistant questions about your search resources. Try prompts like:
- "Get details of the search index named 'products'."
- "Query the search index 'products' for items with 'laptop' in the title."
- "Retrieve information from knowledge base 'faq-kb' with the question 'What are the return policies?'."
- Learn more: Review the Azure AI Search tools reference for all available capabilities and detailed parameter information.
Best practices
- Use detailed queries during retrieval: When using the search index query tool, specify precise index and parameters to narrow results effectively.
- Check index structures before querying: Use the search index get command to understand index fields and optimize query performance.
- Regularly review knowledge base settings: Periodically retrieve knowledge base details to ensure configurations meet current needs.