npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ignitionai/azure-ai-search-mcp

v1.0.2

Published

Complete Azure AI Search MCP server with vector search, semantic search, and document management

Readme

Azure AI Search MCP Server

npm version License: MIT

A comprehensive Model Context Protocol (MCP) server for Azure AI Search with advanced capabilities including vector search, semantic search, and document management.

🚀 Features

Core Search Capabilities

  • Full-text search with highlighting, filtering, and faceting
  • Vector search using k-nearest neighbors for similarity matching
  • Hybrid search combining text and vector search for optimal relevance
  • Semantic search with Azure AI's natural language understanding
  • Auto-completion and search suggestions

Document Management

  • Batch document operations (upload, merge, delete) up to 1000 documents
  • Schema validation with comprehensive error handling
  • Index discovery and dynamic resource registration

Advanced Features

  • Semantic answers extraction from search results
  • Semantic captions with highlighting
  • Dynamic index discovery and resource registration
  • Dual authentication (API key + Managed Identity)
  • Comprehensive error handling and logging

📦 Installation

npm install @ignitionai/azure-ai-search-mcp

🔧 Configuration

Environment Variables

# Required
AZURE_SEARCH_ENDPOINT=https://your-service.search.windows.net

# Authentication (choose one)
AZURE_SEARCH_API_KEY=your-api-key
# OR use Managed Identity (no API key needed)

Claude Desktop Configuration

Add to your Claude Desktop config:

{
  "mcpServers": {
    "azure-ai-search": {
      "command": "npx",
      "args": ["@ignitionai/azure-ai-search-mcp"],
      "env": {
        "AZURE_SEARCH_ENDPOINT": "https://your-service.search.windows.net",
        "AZURE_SEARCH_API_KEY": "your-api-key"
      }
    }
  }
}

🛠️ Available Tools

Search Tools

  • search-documents - Full-text search with comprehensive filtering options
  • get-document - Retrieve specific documents by key
  • suggest - Get search suggestions using configured suggesters
  • autocomplete - Auto-complete partial search terms

Vector & Semantic Search

  • vector-search - Pure vector similarity search using k-nearest neighbors
  • hybrid-search - Combined text and vector search for enhanced relevance
  • semantic-search - Azure AI semantic search with natural language understanding

Index Management

  • list-indexes - List all available search indexes
  • get-index-schema - Get complete index schema and field definitions
  • get-index-statistics - Get index usage statistics and document counts

Document Management

  • upload-documents - Upload/create documents (batch operations up to 1000)
  • merge-documents - Partial update of existing documents
  • delete-documents - Delete documents by key values (batch operations)

📝 Usage Examples

Basic Search

{
  "tool": "search-documents",
  "arguments": {
    "indexName": "my-index",
    "searchText": "machine learning",
    "top": 10,
    "highlightFields": ["content", "title"]
  }
}

Vector Search

{
  "tool": "vector-search", 
  "arguments": {
    "indexName": "my-index",
    "vectorQueries": [{
      "vector": [0.1, 0.2, 0.3, ...],
      "fields": "content_vector",
      "k": 5
    }]
  }
}

Semantic Search with Answers

{
  "tool": "semantic-search",
  "arguments": {
    "indexName": "my-index", 
    "searchText": "How does machine learning work?",
    "semanticConfiguration": "my-semantic-config",
    "answers": {
      "count": 3,
      "threshold": 0.7
    }
  }
}

Document Upload

{
  "tool": "upload-documents",
  "arguments": {
    "indexName": "my-index",
    "documents": [
      {
        "id": "1",
        "title": "Document Title",
        "content": "Document content..."
      }
    ]
  }
}

🏗️ Architecture

Core Components

  • server.ts - Main MCP server with tool registration
  • lib/azure-search-client.ts - Azure Search client wrapper
  • tools/ - Individual tool implementations
  • resources/ - Dynamic resource registration
  • types.ts - Zod schemas for validation

Key Patterns

  • Lazy Loading - Azure Search clients instantiated on demand
  • Client Caching - Search clients cached per index
  • Type Safety - All parameters validated with Zod schemas
  • Error Handling - Consistent success/error response format

🎯 Use Cases

RAG Applications

  • Knowledge retrieval with semantic understanding
  • Hybrid search for optimal relevance scoring
  • Document management for knowledge base updates

Content Discovery

  • Vector similarity for related content recommendations
  • Semantic answers for Q&A applications
  • Auto-completion for search interfaces

Enterprise Search

  • Multi-modal search across text and vector content
  • Advanced filtering and faceted navigation
  • Batch operations for data management

🔍 Requirements

  • Node.js >= 18.0.0
  • Azure AI Search service
  • Azure credentials (API key or Managed Identity)

📚 Documentation

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide for details.

📄 License

MIT License - see LICENSE file for details.

🏢 About IgnitionAI

This MCP server is developed and maintained by IgnitionAI, focusing on AI-powered search and knowledge management solutions.


Made with ❤️ for the Claude MCP ecosystem