Ross ROSS = Recommend OSS · open-source software intelligence for agents

LangChain4j

LangChain4j is an idiomatic, open-source Java library for building LLM-powered applications on the JVM. It offers a unified API over popular LLM providers and vector stores, and makes implementing tool calling (including MCP support), agents and RAG easy. It integrates seamlessly with enterprise Java frameworks like Quarkus and Spring Boot. observed · 2026-08-28

github.com/langchain4j/langchain4j · homepage · Java · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

95/100

  • Activity 99
  • Release rhythm 98
  • Longevity 83
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 10
  • age_days: 1170
  • days_rel: 19
  • days_push: 7
  • n_releases_24m: 48

Full methodology

Adoption not part of the score

12959 stars · 2502 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

LangChain4j is an open-source Java library for building LLM-powered applications on the JVM, providing a unified API over 20+ LLM providers and 40+ embedding/vector stores. It includes a toolbox spanning prompt templating, chat memory, tool calling (with MCP support), agents, and RAG pipelines, with integrations for Spring Boot, Quarkus, and Helidon.

Use cases

  • build a chatbot in Java with OpenAI or Anthropic
  • implement RAG over documents in a Spring Boot app
  • call LLMs from Java with a unified API
  • let LLMs call Java methods via tool calling
  • build AI agents on the JVM
  • swap between vector stores like Pinecone and Milvus without rewriting code
  • add MCP tool support to a Java application
  • integrate embeddings and retrieval into Quarkus services

When to choose

  • you are building LLM applications in Java, Kotlin, or another JVM language
  • you want provider-agnostic APIs to switch between LLMs and vector stores
  • you need agents, RAG, or tool calling with Spring Boot or Quarkus integration
  • you want MCP support and enterprise Java framework compatibility

When to avoid

  • your stack is Python, JavaScript, or another non-JVM language
  • you need a ready-made end-user application rather than a library
  • you want the original LangChain Python ecosystem and its tooling

Facets

library · maturity active

llm-inference rag agent-framework mcp prompt-engineering chatbot sdk nlp large-language-models chatbots developer-tools machine-learning jvm cross-platform langchain java llm-integrations vector-stores tool-calling spring-boot quarkus embeddings ai-agents retrieval-augmented-generation spring

5 sources

Member repositories

RepositoryRoleHealth v2
langchain4j/langchain4jmain95
langchain4j/langchain4j-examplesexamples72

For agents

markdown · JSON · MCP: product_card(name="langchain4j/langchain4j")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem