Azure AI Search MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Used for loading configuration settings for Azure AI Search connections.
Supports running the MCP server on macOS to connect Claude Desktop with Azure AI Search services.
Used for formatting search results returned from Azure AI Search queries.
Azure AI Agent Service + Azure AI Search MCP Server
A Model Context Protocol (MCP) server that enables Claude Desktop to search your content using Azure AI services. Choose between Azure AI Agent Service (with both document search and web search) or direct Azure AI Search integration.
Overview
This project provides two MCP server implementations to connect Claude Desktop with Azure search capabilities:
- Azure AI Agent Service Implementation (Recommended) - Uses the powerful Azure AI Agent Service to provide:
- Azure AI Search Tool - Search your indexed documents with AI-enhanced results
- Bing Web Grounding Tool - Search the web with source citations
- Direct Azure AI Search Implementation - Connects directly to Azure AI Search with three methods:
- Keyword Search - Exact lexical matches
- Vector Search - Semantic similarity using embeddings
- Hybrid Search - Combination of keyword and vector searches
Features
- AI-Enhanced Search - Azure AI Agent Service optimizes search results with intelligent processing
- Multiple Data Sources - Search both your private documents and the public web
- Source Citations - Web search results include citations to original sources
- Flexible Implementation - Choose between Azure AI Agent Service or direct Azure AI Search integration
- Seamless Claude Integration - All search capabilities accessible through Claude Desktop's interface
- Customizable - Easy to extend or modify search behavior
Quick Links
Requirements
- Python: Version 3.10 or higher
- Claude Desktop: Latest version
- Azure Resources:
- Azure AI Search service with an index containing vectorized text data
- For Agent Service: Azure AI Project with Azure AI Search and Bing connections
- Operating System: Windows or macOS (instructions provided for Windows, but adaptable)
Azure AI Agent Service Implementation (Recommended)
Setup Guide
- Project Directory:Copy
- Create a
.env
File:Copy - Set Up Virtual Environment:Copy
- Use the
azure_ai_agent_service_server.py
script for integration with Azure AI Agent Service.
Azure AI Agent Service Setup
Before using the implementation, you need to:
- Create an Azure AI Project:
- Go to the Azure Portal and create a new Azure AI Project
- Note the project connection string and model deployment name
- Create an Azure AI Search Connection:
- In your Azure AI Project, add a connection to your Azure AI Search service
- Note the connection name and index name
- Create a Bing Web Search Connection:
- In your Azure AI Project, add a connection to Bing Search service
- Note the connection name
- Authenticate with Azure:Copy
Configuring Claude Desktop
Note: Replace path placeholders with your actual project paths.
Direct Azure AI Search Implementation
For those who prefer direct Azure AI Search integration without the Agent Service:
- Create a different
.env
File:Copy - Install Dependencies:Copy
- Use the
azure_search_server.py
script for direct integration with Azure AI Search. - Configure Claude Desktop:Copy
Testing the Server
- Restart Claude Desktop to load the new configuration
- Look for the MCP tools icon (hammer icon) in the bottom-right of the input field
- Try queries such as:
- "Search for information about AI in my Azure Search index"
- "Search the web for the latest developments in LLMs"
- "Find information about neural networks using hybrid search"
Troubleshooting
- Server Not Appearing:
- Check Claude Desktop logs (located at
%APPDATA%\Claude\logs\mcp*.log
on Windows) - Verify file paths and environment variables in the configuration
- Test running the server directly:
python azure_ai_agent_service_server.py
oruv run python azure_ai_agent_service_server.py
- Check Claude Desktop logs (located at
- Azure AI Agent Service Issues:
- Ensure your Azure AI Project is correctly configured
- Verify that connections exist and are properly configured
- Check your Azure authentication status
Customizing Your Server
- Modify Tool Instructions: Adjust the instructions provided to each agent to change how they process queries
- Add New Tools: Use the
@mcp.tool()
decorator to integrate additional tools - Customize Response Formatting: Edit how responses are formatted and returned to Claude Desktop
- Adjust Web Search Parameters: Modify the web search tool to focus on specific domains
License
This project is licensed under the MIT License.
This server cannot be installed
Integrates Claude Desktop with Azure AI Search, allowing users to query search indexes using keyword, vector, or hybrid search methods.
- Overview
- Features
- Quick Links
- Requirements
- Azure AI Agent Service Implementation (Recommended)
- Direct Azure AI Search Implementation
- Testing the Server
- Troubleshooting
- Customizing Your Server
- License