
Spring Ai Mcp Server Patterns
Spring Boot MCP server patterns for building Model Context Protocol tools, resources, and transports with Spring AI.
- CCM score
- 51 of 100
- skills.sh installs
- 4K
- GitHub stars
- 372
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers
@Toolhandlers,@PromptTemplateresources, and stdio, HTTP, and SSE transport setup for AI function calling - Includes annotation and transport reference tables, Maven and Gradle dependencies, and weather and secure database tool examples
- Enforces security through a
ToolFilterbean,@PreAuthorizerole checks, parameterized SQL, and audit logging of data-modifying tools - Designed for Java teams building Spring AI MCP servers or integrating MCP clients into Spring Boot applications
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill spring-ai-mcp-server-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Spring AI MCP Server Implementation Patterns
Implements MCP servers with Spring AI for AI function calling, tool handlers, and MCP transport configuration.
Overview
Production-ready MCP server patterns: @Tool functions, @PromptTemplate resources, and stdio/HTTP/SSE transports with Spring AI security.
When to Use
MCP servers, Spring AI function calling, AI tools, tool calling, custom tool handlers, Spring Boot MCP, resource endpoints, or MCP transport configuration.
Quick Reference
Core Annotations
| Annotation | Target | Purpose |
|---|---|---|
@EnableMcpServer | Class | Enable MCP server auto-configuration |
@Tool(description) | Method | Declare AI-callable tool |
@ToolParam(value) | Parameter | Document tool parameter for AI |
@PromptTemplate(name) | Method | Declare reusable prompt template |
@PromptParam(value) | Parameter | Document prompt parameter |
Transport Types
| Transport | Use Case | Config |
|---|---|---|
stdio | Local process / Claude Desktop | Default |
http | Remote HTTP clients | port, path |
sse | Real-time streaming clients | port, path |
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Categories
- Java & JVM, AI Agents & LLM Apps
- First seen
- May 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 95- Unit Test Wiremock Rest Api4K
- Nextjs Authentication4K
- Spring Boot Actuator4K
- Spring Boot Dependency Injection4K
- Unit Test Parameterized4K
- Unit Test Controller Layer4K
- Unit Test Json Serialization4K
- Spring Boot Saga Pattern3.9K
- Nextjs Data Fetching3.9K
- Spring Data Neo4j3.9K
- Unit Test Security Authorization3.9K
- Nx Monorepo3.9K
- Langchain4j Spring Boot Integration3.9K
- Langchain4j Tool Function Calling Patterns3.9K
- Langchain4j Rag Implementation Patterns3.9K
- Unit Test Scheduled Async3.9K
- Rag3.9K
- Unit Test Utility Methods3.9K
- Qdrant3.9K
- Unit Test Exception Handler3.9K
- Unit Test Mapper Converter3.9K
- Langchain4j Ai Services Patterns3.9K
- Unit Test Caching3.9K
- Unit Test Config Properties3.9K
Similar to Spring Ai Mcp Server Patterns
More Java & JVM
langchain4j-mcp-server-patternsgiuseppe-trisciuoglio/developer-kit3.9K installsJava patterns for building MCP servers and wiring LangChain4j tools with trust-based filtering and fail-closed defaults.
langchain4j-spring-boot-integrationgiuseppe-trisciuoglio/developer-kit3.9K installsSpring Boot integration for LangChain4j that wires AI model beans, chat memory, and RAG pipelines through auto-configuration.
java-mcp-server-generatorgithub/awesome-copilot8.8K installsGenerate a complete Java MCP server project using the official SDK with optional Spring Boot integration.
mcp-patternsyonatangross/orchestkit191 installsRouting guide for building, securing, and debugging Model Context Protocol servers and clients on the 2025-11-25 spec.
mcp-builderjnmetacode/superpowers-zh965 installsMethodology for building production-ready MCP servers, covering tool design, error handling, testing, and deployment.
mcp-developerjeffallan/claude-skills4.5K installsSenior-level MCP server and client builder that wires AI systems to external tools and data sources.