giuseppe-trisciuoglio avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers @Tool handlers, @PromptTemplate resources, 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 ToolFilter bean, @PreAuthorize role 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 -y

Installs 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

AnnotationTargetPurpose
@EnableMcpServerClassEnable MCP server auto-configuration
@Tool(description)MethodDeclare AI-callable tool
@ToolParam(value)ParameterDocument tool parameter for AI
@PromptTemplate(name)MethodDeclare reusable prompt template
@PromptParam(value)ParameterDocument prompt parameter

Transport Types

TransportUse CaseConfig
stdioLocal process / Claude DesktopDefault
httpRemote HTTP clientsport, path
sseReal-time streaming clientsport, 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

Similar to Spring Ai Mcp Server Patterns

More Java & JVM