Azure AI Search MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure AI Search MCP ServerSearch for hotels with pool in Seattle"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure AI Search MCP Server
An MCP (Model Context Protocol) server that exposes Azure AI Search functionality as tools for AI assistants.
Features
Full-text search - Search documents using Azure AI Search
Semantic/vector search - Perform semantic search with reranking
Index management - List indexes and get schema information
Document retrieval - Get documents by key or count documents
Related MCP server: Hermes Search MCP Server
Available Tools
Tool | Description |
| Full-text search with filters and field selection |
| Semantic search with reranking scores |
| List all available search indexes |
| Get fields and schema of an index |
| Retrieve a specific document by key |
| Count documents in an index |
Setup
Prerequisites
Python 3.10+
Azure AI Search service
Azure Search API key or Azure credentials
Installation
Clone the repository:
git clone <repository-url> cd aisearch-mcpInstall dependencies:
pip install -r requirements.txtConfigure environment variables:
cp .env.example .env # Edit .env with your Azure Search credentials
Configuration
Set the following environment variables in your .env file:
Variable | Description | Required |
| Azure Search service URL (e.g., | Yes |
| Azure Search admin or query key | Yes* |
| Default search index name | Yes |
| Server port (default: 9000) | No |
*If not provided, the server will use DefaultAzureCredential for authentication.
Running the Server
Local
python server.pyThe server will start on http://0.0.0.0:9000 with the following endpoints:
SSE Transport:
GET /sse(establish connection),POST /messages(send messages)Streamable HTTP:
POST /mcp
Docker
Build and run with Docker:
# Build the image
docker build -t azure-search-mcp .
# Run with environment variables
docker run -p 9000:9000 \
-e AZURE_SEARCH_ENDPOINT=https://your-search.search.windows.net \
-e AZURE_SEARCH_API_KEY=your-api-key \
-e AZURE_SEARCH_INDEX=your-index \
azure-search-mcp
# Or run with .env file
docker run -p 9000:9000 --env-file .env azure-search-mcpConnecting MCP Clients
VS Code / Claude Desktop (SSE)
Add to your MCP configuration:
{
"mcpServers": {
"azure-search": {
"url": "http://localhost:9000/sse"
}
}
}Streamable HTTP Clients
{
"mcpServers": {
"azure-search": {
"url": "http://localhost:9000/mcp"
}
}
}Stdio (Local Process)
For clients that support stdio transport, run directly:
{
"mcpServers": {
"azure-search": {
"command": "python",
"args": ["/path/to/server.py"]
}
}
}Example Usage
Once connected, you can use the tools through your MCP client:
Search for hotels: "Search for hotels with pool in Seattle"
Get index schema: "What fields are in the hotels-sample-index?"
Count documents: "How many documents are in the index?"
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nagendramishr/aisearch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server