Development · MODEL CONTEXT PROTOCOL

allenday solr mcp

A Python package for accessing Solr indexes via Claude Code

WHAT IT CONNECTS

allenday solr mcp 为 AI Agent 提供什么

  • **MCP Server**: Implements the Model Context Protocol for integration with AI assistants
  • **Hybrid Search**: Combines keyword search precision with vector search semantic understanding
  • **Vector Embeddings**: Generates embeddings for documents using Ollama with nomic-embed-text
  • **Unified Collections**: Store both document content and vector embeddings in the same collection
  • **Docker Integration**: Easy setup with Docker and docker-compose
  • **Optimized Vector Search**: Efficiently handles combined vector and SQL queries by pushing down SQL filters to the vector search stage, ensuring optimal performance even with large result sets and pagination
  • SQL filters (WHERE clauses) are pushed down to the vector search stage
  • This ensures that vector similarity calculations are only performed on documents that will match the final SQL criteria
  • Significantly improves performance for queries with:
  • Selective WHERE clauses
  • Pagination (LIMIT/OFFSET)
  • Large result sets
  • Clone this repository
  • Start SolrCloud with Docker:
  • Install dependencies:
  • Process and index the sample document:
  • Run the MCP server:
  • Python 3.10 or higher
  • Docker and Docker Compose
  • SolrCloud 9.x
  • Ollama (for embedding generation)

SECURITY

MCP 收录不等于安全审核

MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。