本项目是一个模型上下文协议(MCP)服务器,可让Claude桌面使用Azure AI服务搜索您的内容。您可以选择使用Azure AI Agent Service(具备文档搜索和网络搜索功能),也可以直接集成Azure AI Search。
此项目旨在通过MCP服务器将Claude Desktop与Azure的AI搜索功能连接起来。用户可按需选择两种实现方式:
pip install "mcp[cli]" azure-search-documents==11.5.2 azure-identity python-dotenv
pip install "mcp[cli]" azure-search-documents==11.5.2 azure-identity python-dotenv
{
"mcpServers": {
"azure-agent-service": {
"command": "python",
"args": ["path/to/agent_service.py"],
"env": {
"AZURE_AGENT_ENDPOINT": "https://your-endpoint.azure.com",
"API_KEY": "your-api-key"
}
}
}
}
{
"mcpServers": {
"azure-search": {
"command": "python",
"args": ["path/to/search_server.py"],
"env": {
"AZURE_SEARCH_ENDPOINT": "https://your-search-service.search.windows.net",
"INDEX_NAME": "your-index-name",
"API_KEY": "your-api-key"
}
}
}
}
python agent_service.py
python search_server.py
%APPDATA%\Claude\logs\mcp*.log)。@mcp.tool()装饰器集成额外功能。此项目基于MIT License开源。