Apache Solr MCP Server connects AI clients to Apache Solr, a search platform that indexes and retrieves documents stored in collections. It lets users search, add data to, and manage Solr collections through natural-language requests instead of manually writing Solr queries or using the administration API.
Borrowing it
Nothing to install: this file belongs to apache/solr-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/apache/solr-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/apache/solr-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/apache/solr-mcp/agents-md)<a href="https://agentmods.dev/instructions/apache/solr-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/solr-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/apache/solr-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/solr-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.07869 | $0.07869 |
| Opus 5.5 | $0.03148 | $0.03148 |
| Sonnet 5.5 | $0.01574 | $0.01574 |
| Haiku 4.5 | $0.00787 | $0.00787 |
Grade A, and why
solr-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 514 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to AI coding assistants when working with code in this repository.
Project Overview
Solr MCP Server is a Spring AI Model Context Protocol (MCP) server that enables AI assistants to interact with Apache Solr. It provides tools for searching, indexing, and managing Solr collections through the MCP protocol.
- Status: Apache incubating project (v1.0.0-SNAPSHOT)
- Java: 25+ (centralized in build.gradle.kts)
- Framework: Spring Boot 4.1.1, Spring AI 2.0.1
- License: Apache 2.0
Common Commands
# Build and test
./gradlew build # Full build with tests
./gradlew assemble # Build without tests (faster)
# Testing
./gradlew test # Run all tests
./gradlew test --tests SearchServiceTest # Run specific test class
./gradlew test --tests "*IntegrationTest" # Run integration tests
./gradlew test jacocoTestReport # Tests with coverage report
# SBOM (Software Bill of Materials)
./gradlew cyclonedxBom # Generate build/reports/cyclonedx/application.cdx.json
# Gradle wrapper upgrade (run twice so the new version regenerates the wrapper jar;
# wrapper settings such as retries live on tasks.wrapper in build.gradle.kts)
./gradlew wrapper --gradle-version latest
# Code formatting (REQUIRED before commit)
./gradlew spotlessApply # Apply formatting
./gradlew spotlessCheck # Check formatting
# Docker images
./gradlew jibDockerBuild # JVM (Jib): solr-mcp:<v> (both stdio + http)
./gradlew bootBuildImage -Pnative # Native stdio: solr-mcp:<v>-native-stdio
./gradlew bootBuildImage -Pnative -Pprofile=http # Native http: solr-mcp:<v>-native-http
./gradlew dockerIntegrationTest # Test JVM Jib (stdio + http + MCP stdio)
./gradlew dockerIntegrationTest -Pnative # Test native stdio
./gradlew dockerIntegrationTest -Pnative -Pprofile=http # Test native http
# Native image (requires GraalVM JDK 25; -Pnative applies the graalvm-native plugin)
./gradlew nativeCompile -Pnative # Compile native binary (host OS only)
./gradlew nativeTest -Pnative # Run tests as native image
# Run locally
# STDIO disables Docker Compose auto-start (spring.docker.compose.enabled=false in
# application-stdio.properties) — run `docker compose up -d` first, same as for the
# packaged jar/Docker/native image or to start the boot-ignored `lgtm` service.
docker compose up -d && ./gradlew bootRun # STDIO mode (default)
# HTTP mode enables it (application-http.properties), so bootRun auto-starts/stops
# compose.yaml's solr/zoo via the developmentOnly spring-boot-docker-compose starter.
PROFILES=http ./gradlew bootRun # HTTP mode
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago Changed · +7 lines · +171 tokens per session 0262bb0ece8b
- 24d ago Changed · -1 lines · -33 tokens per session 9f6b7b3d250d
- 29d ago Changed · +72 lines · +1,320 tokens per session 00b49843d8df
- 1mo ago Changed · +4 lines · +75 tokens per session 5d87fba353d4
- 1mo ago Changed · +11 lines · +225 tokens per session ab907c523c0f
- 1mo ago Changed · +55 lines · +761 tokens per session 8825b9f9bde3
- 2mo ago First seen · 366 lines · 5,350 tokens per session scan A 598f98ffacc7
solr-mcp AGENTS.md is an instructions file published in the GitHub repository apache/solr-mcp (21 stars, last pushed 11d ago), licensed Apache-2.0. It adds 7,869 tokens to every session, about $0.0315 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
solr-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| solr-mcp AGENTS.mdapache/solr-mcp | Instructions file | 21 | 11d ago | Apache-2.0 | A | 7,869 | Codex, OpenCode |
| vibetags com-example-service-OrderService.instructions.mdPIsberg/vibetags | Instructions file | 25 | today | MIT | A | 553 | GitHub Copilot |
| vibetags com-example-security-SecurityConfig.instructions.mdPIsberg/vibetags | Instructions file | 25 | today | MIT | A | 281 | GitHub Copilot |
| vibetags com-example-service-TransactionalPaymentService.instructions.mdPIsberg/vibetags | Instructions file | 25 | today | MIT | A | 104 | GitHub Copilot |
| vibetags com-example-config-AsyncTestConfig.instructions.mdPIsberg/vibetags | Instructions file | 25 | today | MIT | A | 82 | GitHub Copilot |
| vibetags com-example-concurrent-SessionCache.instructions.mdPIsberg/vibetags | Instructions file | 25 | today | MIT | A | 71 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |