freshcrate
Home > MCP Servers > langchain4j

langchain4j

LangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes impleme

Description

LangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes implementing RAG, tool calling (including support for MCP), and agents easy. LangChain4j integrates seamlessly with various enterprise Java frameworks.

README

LangChain for Java: Supercharge your Java application with the power of LLMs

Build StatusNightly BuildCODACYDiscordBlueSkyXMaven Version

Introduction

Welcome!

The goal of LangChain4j is to simplify integrating LLMs into Java applications.

Here's how:

  1. Unified APIs: LLM providers (like OpenAI or Google Vertex AI) and embedding (vector) stores (such as Pinecone or Milvus) use proprietary APIs. LangChain4j offers a unified API to avoid the need for learning and implementing specific APIs for each of them. To experiment with different LLMs or embedding stores, you can easily switch between them without the need to rewrite your code. LangChain4j currently supports 20+ popular LLM providers and 30+ embedding stores.
  2. Comprehensive Toolbox: Since early 2023, the community has been building numerous LLM-powered applications, identifying common abstractions, patterns, and techniques. LangChain4j has refined these into practical code. Our toolbox includes tools ranging from low-level prompt templating, chat memory management, and function calling to high-level patterns like Agents and RAG. For each abstraction, we provide an interface along with multiple ready-to-use implementations based on common techniques. Whether you're building a chatbot or developing a RAG with a complete pipeline from data ingestion to retrieval, LangChain4j offers a wide variety of options.
  3. Numerous Examples: These examples showcase how to begin creating various LLM-powered applications, providing inspiration and enabling you to start building quickly.

LangChain4j began development in early 2023 amid the ChatGPT hype. We noticed a lack of Java counterparts to the numerous Python and JavaScript LLM libraries and frameworks, and we had to fix that! Although "LangChain" is in our name, the project is a fusion of ideas and concepts from LangChain, Haystack, LlamaIndex, and the broader community, spiced up with a touch of our own innovation.

We actively monitor community developments, aiming to quickly incorporate new techniques and integrations, ensuring you stay up-to-date. The library is under active development. While some features are still being worked on, the core functionality is in place, allowing you to start building LLM-powered apps now!

Documentation

Documentation can be found here.

The documentation chatbot (experimental) can be found here.

Getting Started

Getting started guide can be found here.

Code Examples

Please see examples of how LangChain4j can be used in langchain4j-examples repo:

Useful Materials

Useful materials can be found here.

Get Help

Please use Discord or GitHub discussions to get help.

Request Features

Please let us know what features you need by opening an issue.

Contribute

Contribution guidelines can be found here.

Release History

VersionChangesUrgencyDate
1.13.0## Notable Changes * Agentic: Make the execution state of an agentic system persistable and recoverable by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4827 * Agentic: Introduce optional agents by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4850 * Skills: Support skill-scoped tools by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4732 * Skills: Introduce `ClassPathSkillLoader` by @jmartisk in https://github.com/langchain4j/langchain4j/puHigh4/9/2026
1.12.2## What's Changed * docu: update versions to 1.12.1 and 1.12.1-beta21 by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4665 * Update versions to 1.13.0-SNAPSHOT and 1.13.0-beta22-SNAPSHOT by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/4666 * Propagate default chat model when declaratively configure a superviso… by @mariofusco in https://github.com/langchain4j/langchain4j/pull/4673 **Full Changelog**: https://github.com/langchain4j/langchain4j/compareMedium3/13/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

AstrBotAgentic IM Chatbot infrastructure that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨v4.23.2
mftool-mcpMCP Server for publicly available real-time Indian Mutual Funds data0.2.0
The-Dead-Internet🌐 Simulate a complete modern web ecosystem for autonomous AI agents to explore, interact, and be observed within a robust research platform.main@2026-04-21
claude-blockerπŸ›‘οΈ Block distracting websites when Claude Code is in use, ensuring focused work sessions and minimizing interruptions.main@2026-04-21
Deepagent-research-context-engineeringπŸ” Accelerate research using a Multi Agent System for efficient context engineering with DeepAgent and LangChain's library.main@2026-04-21