Solr MCP
一个用于通过模型上下文协议 (MCP) 访问 Apache Solr 索引的 Python 包。此集成允许像 Claude 这样的 AI 助手针对您的 Solr 索引执行强大的搜索查询,并结合关键字和向量搜索功能。
特征
MCP 服务器:实现模型上下文协议,以便与 AI 助手集成
混合搜索:将关键词搜索精度与向量搜索语义理解相结合
向量嵌入:使用 Ollama 和 nomic-embed-text 为文档生成嵌入
统一集合:将文档内容和向量嵌入存储在同一个集合中
Docker 集成:使用 Docker 和 docker-compose 轻松设置
快速入门
克隆此存储库
使用 Docker 启动 SolrCloud:
docker-compose up -d安装依赖项:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install poetry poetry install处理并索引示例文档:
python scripts/process_markdown.py data/bitcoin-whitepaper.md --output data/processed/bitcoin_sections.json python scripts/create_unified_collection.py unified python scripts/unified_index.py data/processed/bitcoin_sections.json --collection unified运行 MCP 服务器:
poetry run python -m solr_mcp.server
有关更详细的设置和使用说明,请参阅QUICKSTART.md指南。
要求
Python 3.10 或更高版本
Docker 和 Docker Compose
SolrCloud 9.x
Ollama(用于嵌入生成)
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
贡献
欢迎贡献!请参阅CONTRIBUTING.md获取相关指南。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
一个 Python 服务器,使 AI 助手能够通过模型上下文协议对 Apache Solr 索引执行混合搜索查询,将关键字精度与基于向量的语义理解相结合。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to perform web searches using SearXNG, a privacy-respecting metasearch engine.Last updated -121MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to perform real-time web searches, retrieving up-to-date information from the internet via a Crawler API.Last updated -128517
- -securityAlicense-qualityA Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.Last updated -13MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants to perform web searches using Google Search API, returning up to 20 search results in JSON format.Last updated -2Apache 2.0