langchain4j-mcp-server-patterns

Solid

Provides LangChain4j patterns for implementing MCP (Model Context Protocol) servers, creating Java AI tools, exposing tool calling capabilities, and integrating MCP clients with AI services. Use when building a Java MCP server, implementing tool calling in Java, connecting LangChain4j to external MCP servers, or securing tool exposure for agent workflows.

AI & Automation 263 stars 31 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
81
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain4j MCP Server Implementation Patterns ## Overview Use this skill to design and implement Model Context Protocol (MCP) integrations with LangChain4j. The main concerns are: - defining a clean tool, resource, and prompt surface - choosing the right transport and bootstrap model - filtering unsafe capabilities before exposing them to agents or applications Keep `SKILL.md` focused on the implementation flow. Use the bundled references for expanded examples and API-level detail. ## When to Use Use this skill when: - building a Java MCP server that exposes tools, resources, or prompts - integrating LangChain4j with one or more external MCP servers - wiring MCP support into a Spring Boot application - filtering available tools by tenant, user role, or runtime context - adding observability, resilience, and safe failure handling around MCP interactions - reviewing an MCP integration for prompt-injection and side-effect risks Typical trigger phrases include `langchain4j mcp`, `java mcp server`, `mcp tool provider`, `spring boot mcp`, and `connect langchain4j to mcp`. ## Instructions ### 1. Design the MCP surface before writing code Decide what the server should expose: - tools for actions with clear inputs and side effects - resources for read-only or structured data access - prompts only when a reusable template adds real value Keep names stable, descriptions concrete, and schemas small enough for a client or model to understand quickly. ### 2. Implement provid...

Details

Author
giuseppe-trisciuoglio
Repository
giuseppe-trisciuoglio/developer-kit
Created
7 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

spring-ai-mcp-server-patterns

Provides Spring Boot MCP server patterns that create Model Context Protocol servers with Spring AI by defining tool handlers, exposing resources, configuring prompt templates, and setting up transports for AI function calling and tool calling. Use when building MCP servers to extend AI capabilities with Spring's official AI framework, implementing AI tools, custom function calling, or MCP client integration.

263 Updated 1 weeks ago
giuseppe-trisciuoglio
AI & Automation Solid

mcp-server-patterns

Build MCP servers with Node/TypeScript SDK — tools, resources, prompts, Zod validation, stdio vs Streamable HTTP. Use Context7 or official MCP docs for latest API.

148,923 Updated 1 months ago
affaan-m
AI & Automation Listed

create-mcp-skill

Create a new skill that uses an MCP server, following best practices from the MCP CLI guide. Use when user wants to create a skill for a new MCP server or integrate MCP functionality into a skill.

335 Updated today
aiskillstore
AI & Automation Listed

mcp-server

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

335 Updated today
aiskillstore
DevOps & Infrastructure Listed

creating-mcp-servers

Creates production-ready MCP servers using FastMCP v2. Use when building MCP servers, optimizing tool descriptions for context efficiency, implementing progressive disclosure for multiple capabilities, or packaging servers for distribution.

124 Updated 3 days ago
oaustegard