Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
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.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: AI & machine learning.
.prompts, the home to all your AI prompts, everywhere you need them.
Same catalog task: AI & machine learning.
Real MCP server (stdio + @modelcontextprotocol/sdk) that exposes x402-paywalled HTTP endpoints as MCP tools. Drop into Claude Desktop, Cursor, or any MCP client.
Same catalog task: AI & machine learning.
Standalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
Fetched from the repository for this visit.
LangChain4j is an open-source Java library for building applications and agents powered by large language models (LLMs).
Add the dependencies (Java 17 or newer):
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j</artifactId>
<version>1.24.1</version>
</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-open-ai</artifactId>
<version>1.24.1</version>
</dependency>
Describe what you need as a Java interface, give the model a tool, and let LangChain4j do the rest:
interface Assistant {
@SystemMessage("You are a friendly support agent of an online shop.")
String chat(String userMessage);
}
class OrderTools {
@Tool("Returns the delivery status of an order")
String getOrderStatus(String orderId) {
return "Order " + orderId + ": shipped, arrives tomorrow";
}
}
ChatModel model = OpenAiChatModel.builder()
.apiKey(System.getenv("OPENAI_API_KEY"))
.modelName("gpt-6-luna")
.reasoningEffort("none") // tools with this model need it, see Get Started
.build();
Assistant assistant = AiServices.builder(Assistant.class)
.chatModel(model)
.tools(new OrderTools())
.build();
String answer = assistant.chat("Where is my order 12345?");
// Your order 12345 has shipped and is expected to arrive tomorrow.
LangChain4j implements the Assistant interface for you. It sends the message to the model, runs getOrderStatus
when the model asks for it, and returns the model's final answer. To use another provider, such as a local model with
Ollama, you add its dependency and change how model is created. The model and its integration need to support the
features you use, such as tool calling: see the comparison table.
Continue with the Get Started guide, which also shows the complete program, and the AI Services tutorial. Using Quarkus, Spring Boot, Helidon or Micronaut? See Frameworks.
Many integrations are maintained by the community in the langchain4j-community repository.
Projects maintained by a foundation or a well-known company that use LangChain4j in a released version:
langchain4j-bom to keep the versions of the LangChain4j modules in line, including the Spring Boot
starters. Community integrations have their own langchain4j-community-bom. The
Get Started guide shows how. With Quarkus, use the LangChain4j version
that the Quarkus platform brings.-beta version (for example 1.24.1-beta34) and APIs marked @Experimental can still change in a
future release..md to the address
of any documentation page.Despite the name, LangChain4j is not a Java port of LangChain (Python). It is designed from the ground up for Java: type safety, POJOs, annotations, interfaces, dependency injection and fluent APIs. Its API, internals and release cycle are independent of the Python project.
Ask on Discord or in GitHub Discussions. To request a feature or report a bug, open an issue. To report a security vulnerability, follow SECURITY.md and do not open a public issue.
See the contribution guidelines.
LangChain4j is released under the Apache License 2.0.
Loading reviews...
GitHub checked 448h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.