apache/solr-mcp
Solr MCP Server
104009b34db9Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Prompt Integrity is not analysed and has no number.
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety and Capability Exposure are shown as partly traced instead of a score: no finding there is not a clean result.
- Prompt Integrity: no tool description could be read from the code
- Some paths pass through more than 8 functions one inside another; the scanner stops there
- In 7 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- Supply Chain: no dependency file the scanner reads was found, so it has no number
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 15 tools, 6 prompts, 2 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
get-collection-statsNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (23: 15 tools, 6 prompts, 2 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
designSchemaPromptprompt Guides the assistant through inspecting an existing Solr schema, choosing appropriate field types, and applying additive schema changes via the Schema API.
Guides the assistant through inspecting an existing Solr schema, choosing appropriate field types, and applying additive schema changes via the Schema API.
exploreCollectionsPromptprompt Read-only walkthrough: list collections and characterise each by stats and health.
Read-only walkthrough: list collections and characterise each by stats and health.
indexDataPromptprompt Guides the assistant through verifying the target schema, picking the right indexing tool for the input format, and confirming the result.
Guides the assistant through verifying the target schema, picking the right indexing tool for the input format, and confirming the result.
searchCollectionPromptprompt Guides the assistant through inspecting the schema, translating a user question into a Solr query, running the search, and refining the result.
Guides the assistant through inspecting the schema, translating a user question into a Solr query, running the search, and refining the result.
setupCollectionPromptprompt Guided workflow: validate a name, pick configset / shards / replication factor, create the collection, and verify it.
Guided workflow: validate a name, pick configset / shards / replication factor, create the collection, and verify it.
viewSchemaPromptprompt Read-only walkthrough: fetch the schema and summarize fields, types, dynamic fields, copy fields, and the unique key.
Read-only walkthrough: fetch the schema and summarize fields, types, dynamic fields, copy fields, and the unique key.
solr-collection-schemaresource Schema definition for a Solr collection including fields, field types, and copy fields
Schema definition for a Solr collection including fields, field types, and copy fields
solr-collectionsresource List of all Solr collections available in the cluster
List of all Solr collections available in the cluster
add-field-typestool
No description.
add-fieldstool
No description.
check-healthtool Check health of a Solr collection
Check health of a Solr collection
create-aliastool
No description.
create-collectiontool
No description.
delete-aliastool Delete a Solr alias. The underlying collection(s) are not affected.
Delete a Solr alias. The underlying collection(s) are not affected.
get-collection-statstool Network
No description.
get-schematool Get schema for a Solr collection
Get schema for a Solr collection
index-csv-documentstool
No description.
index-json-documentstool
No description.
index-markdown-documentstool
No description.
index-xml-documentstool
No description.
list-aliasestool List all Solr aliases and the collections they point to
List all Solr aliases and the collections they point to
list-collectionstool List solr collections
List solr collections
searchtool Search specified Solr collection with query, optional filters, facets, sorting, and pagination.
Search specified Solr collection with query, optional filters, facets, sorting, and pagination.
The q parameter accepts Lucene query syntax. There are no separate defType/qf/mm parameters:
to use eDisMax features (multi-field search, minimum-match, boosts), embed Solr local params
in q, e.g. {!edismax qf='name author' mm=2}george martin.
Put filters in fq (filterQueries) instead of q so Solr can cache and reuse them.
Note that solr has dynamic fields where name of field in schema may end with suffixes
_s: Represents a string field, used for exact string matching.
_i: Represents an integer field.
_l: Represents a long field.
_f: Represents a float field.
_d: Represents a double field.
_dt: Represents a date field.
_b: Represents a boolean field.
_t: Often used for text fields that undergo tokenization and analysis.
One example from the books collection:
{
"id":"0553579908",
"cat":["book"],
"name":["A Clash of Kings"],
"price":[7.99],
"inStock":[true],
"author":["George R.R. Martin"],
"series_t":"A Song of Ice and Fire",
"sequence_i":2,
"genre_s":"fantasy",
"_version_":1836275819373133824,
"_root_":"0553579908"
}Text the model reads (23)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list-aliases tool
List all Solr aliases and the collections they point to
create-alias tool
delete-alias tool
Delete a Solr alias. The underlying collection(s) are not affected.
list-collections tool
List solr collections
get-collection-stats tool
check-health tool
Check health of a Solr collection
create-collection tool
index-json-documents tool
index-csv-documents tool
index-xml-documents tool
index-markdown-documents tool
get-schema tool
Get schema for a Solr collection
add-fields tool
add-field-types tool
search tool
\x09\x09\x09Search specified Solr collection with query, optional filters, facets, sorting, and pagination.
\x09\x09\x09The q parameter accepts Lucene query syntax. There are no separate defType/qf/mm parameters:
\x09\x09\x09to use eDisMax features (multi-field search, minimum-match, boosts), embed Solr local params
\x09\x09\x09in q, e.g. {!edismax qf='name author' mm=2}george martin.
\x09\x09\x09Put filters in fq (filterQueries) instead of q so Solr can cache and reuse them.
\x09\x09\x09Note that solr has dynamic fields where name of field in schema may end with suffixes
\x09\x09\x09_s: Represents a string field, used for exact string matching.
\x09\x09\x09_i: Represents an integer field.
\x09\x09\x09_l: Represents a long field.
\x09\x09\x09_f: Represents a float field.
\x09\x09\x09_d: Represents a double field.
\x09\x09\x09_dt: Represents a date field.
\x09\x09\x09_b: Represents a boolean field.
\x09\x09\x09_t: Often used for text fields that undergo tokenization and analysis.
\x09\x09\x09One example from the books collection:
\x09\x09\x09{
\x09\x09\x09 "id":"0553579908",
\x09\x09\x09 "cat":["book"],
\x09\x09\x09 "name":["A Clash of Kings"],
\x09\x09\x09 "price":[7.99],
\x09\x09\x09 "inStock":[true],
\x09\x09\x09 "author":["George R.R. Martin"],
\x09\x09\x09 "series_t":"A Song of Ice and Fire",
\x09\x09\x09 "sequence_i":2,
\x09\x09\x09 "genre_s":"fantasy",
\x09\x09\x09 "_version_":1836275819373133824,
\x09\x09\x09 "_root_":"0553579908"
\x09\x09\x09 }
\x09\x09\x09exploreCollectionsPrompt prompt
Read-only walkthrough: list collections and characterise each by stats and health.
setupCollectionPrompt prompt
Guided workflow: validate a name, pick configset / shards / replication factor, create the collection, and verify it.
indexDataPrompt prompt
Guides the assistant through verifying the target schema, picking the right indexing tool for the input format, and confirming the result.
viewSchemaPrompt prompt
Read-only walkthrough: fetch the schema and summarize fields, types, dynamic fields, copy fields, and the unique key.
designSchemaPrompt prompt
Guides the assistant through inspecting an existing Solr schema, choosing appropriate field types, and applying additive schema changes via the Schema API.
searchCollectionPrompt prompt
Guides the assistant through inspecting the schema, translating a user question into a Solr query, running the search, and refining the result.
solr-collections resource
List of all Solr collections available in the cluster
solr-collection-schema resource
Schema definition for a Solr collection including fields, field types, and copy fields
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 23 capabilities; 22 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 23 capabilities; 22 more call code the scanner could not follow, where it may happen
- Tools that call the network1 of 23 capabilities call the network; 21 more call code the scanner could not follow, where it may happen
Where the code is: 23 handlers in 5 files at commit 104009b34db9
src/main/java/org/apache/solr/mcp/server/collection/AliasService.javalist-aliases, create-alias, delete-aliassrc/main/java/org/apache/solr/mcp/server/collection/CollectionService.javasolr-collections, list-collections, get-collection-stats, check-health, create-collection, exploreCollectionsPrompt, setupCollectionPromptsrc/main/java/org/apache/solr/mcp/server/indexing/IndexingService.javaindex-json-documents, index-csv-documents, index-xml-documents, index-markdown-documents, indexDataPromptsrc/main/java/org/apache/solr/mcp/server/schema/SchemaService.javasolr-collection-schema, get-schema, add-fields, add-field-types, viewSchemaPrompt, designSchemaPromptsrc/main/java/org/apache/solr/mcp/server/search/SearchService.javasearch, searchCollectionPrompt
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityNot checked: no tool description could be read from the code
- Dependency manifestsNo manifest found
- Lockfiles checked against OSVNothing could be resolved to exact versions
- MCP SDK versionNo MCP SDK declared in a manifest
- 2 checks: undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Credential harvestingNot checked: no tool description could be read from the code
- Tools that read credentialsNot seen in the traced code of 23 capabilities; 22 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (9 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | the policy does not name a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-26 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | Apache-2.0 |
| Created | 2025-10-17 |
| Topics | java lucene mcp search solr |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.