search_artifacts
Search Maven artifacts by keyword or coordinate to find JVM dependencies across Maven Central, Nexus, or Artifactory repositories.
Instructions
Search Maven artifacts by keyword. Uses Maven Central Solr by default; in closed/offline mode (or with repositoryType) routes to Nexus 3 REST or Artifactory AQL/GAVC against MAVEN_MCP_REPOSITORY_BASE / mirrors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results. Default 10, clamped to [1, 100]. | |
| query | Yes | Search query (keyword, or groupId:artifactId for coordinate search) | |
| projectPath | No | Project root used to resolve declared repositories / mirrors. Defaults to the current working directory. | |
| repositoryType | No | Search backend. auto (default) uses Solr in public mode and detects Nexus/Artifactory in closed mode. Override with nexus, artifactory, or central. Also settable via MAVEN_MCP_REPOSITORY_TYPE. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| searchBackend | No |