MCP server for Apache Solr integration
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"solr-search-mcp": {
"env": {
"PROFILES": "stdio",
"SOLR_URL": "http://localhost:8983/solr/"
},
"args": [
"-jar",
"/absolute/path/to/solr-mcp-server/build/libs/solr-mcp-server-0.0.1-SNAPSHOT.jar"
],
"command": "java"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Spring AI Model Context Protocol (MCP) server that provides tools for interacting with Apache Solr. This server enables AI assistants like Claude to search, index, and manage Solr collections through the MCP protocol.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search / data
Web and local search using Brave Search API
Query and manage PostgreSQL databases directly from AI assistants
Production ready MCP server with real-time search, extract, map & crawl.
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP Security Weekly
Get CVE alerts and security updates for Solr Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Spring AI Model Context Protocol (MCP) server that provides tools for interacting with Apache Solr. This server enables AI assistants like Claude to search, index, and manage Solr collections through the MCP protocol.
This project provides a set of tools that allow AI assistants to interact with Apache Solr, a powerful open-source search platform. By implementing the Spring AI MCP protocol, these tools can be used by any MCP-compatible client, including Claude Desktop. The project uses SolrJ, the official Java client for Solr, to communicate with Solr instances.
The server provides the following capabilities:
The server supports two transport modes:
git clone https://github.com/yourusername/solr-mcp-server.git
cd solr-mcp-server
docker-compose up -d
This will start a Solr instance in SolrCloud mode with ZooKeeper and create two sample collections:
books - A collection with sample book datafilms - A collection with sample film dataThis project uses Gradle with version catalogs for dependency management. All dependencies and their versions are
centrally managed in gradle/libs.versions.toml.
# Build the project and run tests
./gradlew build
# Build without tests (faster)
./gradlew assemble
# Clean and rebuild
./gradlew clean build
The build produces two JAR files in build/libs/:
solr-mcp-server-0.0.1-SNAPSHOT.jar - Executable JAR with all dependencies (fat JAR)solr-mcp-server-0.0.1-SNAPSHOT-plain.jar - Plain JAR without dependenciesThe codebase follows a clean, modular architecture organized by functionality:
src/main/java/org/apache/solr/mcp/server/
├── Main.java # Application entry point
├── config/ # Configuration classes
│ ├── SolrConfig.java # Solr client bean configuration
│ └── SolrConfigurationProperties.java # Solr connection properties
├── search/ # Search functionality
│ ├── SearchService.java # MCP tool for searching Solr
│ └── SearchResponse.java # Search result DTOs
├── indexing/ # Document indexing functionality
│ ├── IndexingService.java # MCP tool for indexing documents
│ └── documentcreator/ # Document format parsers
│ ├── IndexingDocumentCreator.java # Interface for document creators
│ ├── JsonDocumentCreator.java # JSON document parser
│ ├── CsvDocumentCreator.java # CSV document parser
│ ├── XmlDocumentCreator.java # XML document parser
│ ├── SolrDocumentCreator.java # Factory for document creators
│ ├── FieldNameSanitizer.java # Field name sanitization utility
│ └── DocumentProcessingException.java # Indexing exceptions
└── metadata/ # Collection management functionality
├── CollectionService.java # MCP tools for collection operations
├── SchemaService.java # MCP tool for schema retrieval
├── CollectionUtils.java # Colle
... [View full README on GitHub](https://github.com/adityamparikh/solr-mcp-server#readme)