maven-indexer

maven-indexer is a skill for Claude Code, Codex from tangcent/maven-indexer-mcp. It costs 130 tokens per session (1,582 once invoked), scanned A, original, ISC.

A local index and search tool for Java and Kotlin libraries already downloaded into Maven and Gradle caches. It can show classes, method signatures, source, implementations, callers, and dependencies, including private libraries.

In plain words
What is it for?
Use it to look up an imported class, understand a method's implementation, find callers, or inspect dependency relationships in cached libraries.
Why use it?
It lets you inspect library code when the dependency is not visible in the workspace or cannot be found on the public internet. Results match the exact library versions available on the machine.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up an imported class, understand a method's implementation, find callers, or inspect dependency relationships in cached libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tangcent/maven-indexer-mcp/maven-indexer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tangcent/maven-indexer-mcp --skill maven-indexer
Clone the repo
git clone --depth 1 https://github.com/tangcent/maven-indexer-mcp

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for maven-indexer

README.md
[![agentmods](https://agentmods.dev/badge/skills/tangcent/maven-indexer-mcp/maven-indexer/github.svg)](https://agentmods.dev/skills/tangcent/maven-indexer-mcp/maven-indexer)
Your own site
<a href="https://agentmods.dev/skills/tangcent/maven-indexer-mcp/maven-indexer"><img src="https://agentmods.dev/badge/skills/tangcent/maven-indexer-mcp/maven-indexer/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.

agentmods 80×15 button for maven-indexer

Your own site · 80×15
<a href="https://agentmods.dev/skills/tangcent/maven-indexer-mcp/maven-indexer"><img src="https://agentmods.dev/badge/skills/tangcent/maven-indexer-mcp/maven-indexer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00130 $0.01582
Opus 5.5 $0.00052 $0.00633
Sonnet 5.5 $0.00026 $0.00316
Haiku 4.5 $0.00013 $0.00158

Measured 12d ago against content hash c42e09573518, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

maven-indexer 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 12d 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.

skills/maven-indexer/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

maven-indexer

maven-indexer-cli indexes the JARs already downloaded to the local Maven repository (~/.m2/repository) and Gradle cache (~/.gradle/caches/modules-2/files-2.1) into a SQLite database and answers questions about them. It sees exactly the versions this machine has, including private artifacts that are not on the public internet.

Before the first query

  1. Check the CLI is available: maven-indexer-cli --version. If it is missing, install it with npm install -g maven-indexer-cli (Node.js 18+), or prefix every command with npx -y maven-indexer-cli.
  2. Check the index: maven-indexer-cli stats. If Artifact Count is 0 or Last Indexed At: never, build it once with maven-indexer-cli refresh-index (can take a few minutes on a large repository; run it in the background if your tools allow).
  3. Before later queries, run maven-indexer-cli sync --quiet to pick up JARs downloaded since the last run. It is sub-second when nothing changed.

If a class you expect is missing, the dependency may not be downloaded yet: run the project's build (mvn dependency:resolve, ./gradlew dependencies, or a normal compile), then sync again.

Always pass --for-llm

Put --for-llm (and optionally --max-lines <n>) before the subcommand. It trims decorative output and caps the line count so results fit in context:

maven-indexer-cli --for-llm explore com.example.client.OrderClient

Use --json instead when you need to parse the output in a script.

Start with explore

explore answers most questions in one call: it resolves each identifier and returns the class signatures, implementations, callers and callees together.

# One or more identifiers: simple or fully-qualified class names, Class.method, g:a[:v] coordinates
maven-indexer-cli --for-llm explore OrderClient
maven-indexer-cli --for-llm explore com.example.client.OrderClient.submit

# Choose sections explicitly
maven-indexer-cli --for-llm explore com.example.client.OrderClient --include source
maven-indexer-cli --for-llm explore com.example.spi.Codec --include implementations
maven-indexer-cli --for-llm explore com.example:order-client --include dependencies,dependents

# Pin a version, or resolve versions against a specific project's dependency tree
maven-indexer-cli --for-llm explore OrderClient --coordinate com.example:order-client:2.3.1
maven-indexer-cli --for-llm explore OrderClient --project-path /abs/path/to/project

Read the full file on GitHub · 111 lines

Changes

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.

  1. 12d ago First seen · 111 lines · 130 tokens per session scan A c42e09573518

Subscribe to this mod's changes

maven-indexer is a skill published in the GitHub repository tangcent/maven-indexer-mcp (23 stars, last pushed 2d ago), licensed ISC. It adds 130 tokens to every session and 1,582 once invoked, about $0.0005 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-10-25.

Related

maven-indexer compared with skills from other repositories

maven-indexer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maven-indexertangcent/maven-indexer-mcpSkill232d agoISCA130Claude Code, Codex
migrate-intellij-utilflutter/flutter-intellijSkill2.0kyesterdayBSD-3-ClauseA31Claude Code, Codex
authoring-java-sdk-tasksastronomer/agentsSkill4584d agoApache-2.0A152Claude Code
null-safetyrrezartprebreza/spring-boot-skillsSkill3412d agoMITA41Claude Code, Codex
kmp-lspHessesian/kmp-lspSkill2072d agoMITA114Claude Code, Codex
jackson-3-migrationnavikt/copilotSkill60yesterdayMITA53Claude Code, Codex
java-to-kotlinnavikt/copilotSkill60yesterdayMITA35Claude Code, Codex