Solr MCP

by allenday

Integrations

  • Provides access to Apache Solr indexes, allowing hybrid search capabilities that combine keyword search precision with vector search semantic understanding across document collections.

  • Uses Ollama with nomic-embed-text to generate vector embeddings for documents, enabling semantic search capabilities in Solr collections.

Solr MCP

A Python package for accessing Apache Solr indexes via Model Context Protocol (MCP). This integration allows AI assistants like Claude to perform powerful search queries against your Solr indexes, combining both keyword and vector search capabilities.

Features

  • 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

Quick Start

  1. Clone this repository
  2. Start SolrCloud with Docker:
    docker-compose up -d
  3. Install dependencies:
    python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install poetry poetry install
  4. Process and index the sample document:
    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
  5. Run the MCP server:
    poetry run python -m solr_mcp.server

For more detailed setup and usage instructions, see the QUICKSTART.md guide.

Requirements

  • Python 3.10 or higher
  • Docker and Docker Compose
  • SolrCloud 9.x
  • Ollama (for embedding generation)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Python server that enables AI assistants to perform hybrid search queries against Apache Solr indexes through the Model Context Protocol, combining keyword precision with vector-based semantic understanding.

  1. Features
    1. Quick Start
      1. Requirements
        1. License
          1. Contributing

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              This server enables AI systems to integrate with Tavily's search and data extraction tools, providing real-time web information access and domain-specific searches.
              Last updated -
              2
              5,133
              334
              JavaScript
              MIT License
              • Apple
              • Linux
            • A
              security
              F
              license
              A
              quality
              This server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.
              Last updated -
              1
              2
              TypeScript
            • A
              security
              A
              license
              A
              quality
              Enables AI assistants to interact with Meilisearch via the Model Context Protocol, allowing comprehensive index, document, and search management through a standardized interface.
              Last updated -
              68
              4
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to perform web searches using SearXNG, a privacy-respecting metasearch engine.
              Last updated -
              5
              JavaScript
              MIT License
              • Linux
              • Apple

            View all related MCP servers

            ID: gvkc9n0gmr