Spring AI Summary

v1.0.0Coding Agentsstable

SpringAI,LLM,MCP,Embedding

deepseekdoubaolearning-by-doingllmmcp
Share:
320
Stars
0
Downloads
0
Weekly
0/5

What is Spring AI Summary?

Spring AI Summary is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to springai,llm,mcp,embedding

SpringAI,LLM,MCP,Embedding

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • SpringAI,LLM,MCP,Embedding

Use Cases

SpringAI framework integration
LLM and embedding support
Multi-provider LLM access
java-ai-tech

Maintainer

LicenseNOASSERTION
Languagejava
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx spring-ai-summary

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Spring AI Summary

Spring AI Summary is an educational reference repository demonstrating how to integrate the Spring AI framework with multiple LLM providers — including DeepSeek, Doubao, and OpenAI — covering chat, tool calling, vector database embeddings, RAG pipelines, MCP server patterns, and autonomous agent implementations. Built on Spring Boot 3.3.6 and Spring AI 1.0.0, it serves as a hands-on learning resource for Java developers who want to add AI capabilities to existing Spring applications without leaving the Spring ecosystem. Each feature is implemented as a separate module so developers can study one pattern at a time.

Prerequisites

  • JDK 21 or later installed
  • Maven 3.6+ (or mvnd for faster builds)
  • Docker Desktop running (required for Milvus vector database and Nacos service registry modules)
  • API keys for the LLM provider(s) you want to test: DeepSeek, OpenAI, or Doubao
  • Git to clone the repository
1

Clone the repository and compile

Clone the spring-ai-summary repository and compile all modules, skipping tests on the first build to verify your environment is set up correctly.

git clone https://github.com/java-ai-tech/spring-ai-summary.git
cd spring-ai-summary
mvn clean compile -DskipTests
2

Configure your API key

Edit the application.yml or application.properties file in the module you want to run. Set your LLM provider API key. The DeepSeek module config is shown as an example — never hardcode keys in source; use environment variables.

# src/main/resources/application.properties (DeepSeek example)
spring.ai.deepseek.api-key=${DEEPSEEK_API_KEY}
spring.ai.deepseek.base-url=https://api.deepseek.com
spring.ai.deepseek.chat.options.model=deepseek-chat
3

Set your API key as an environment variable

Export the required API key before starting the application so it is injected via Spring's environment variable substitution.

export DEEPSEEK_API_KEY=your_actual_api_key_here
# or for OpenAI:
export SPRING_AI_OPENAI_API_KEY=your_openai_key
4

Run a chat module

Navigate into the spring-ai-chat module and start the Spring Boot application. The module exposes REST endpoints you can test with curl.

cd spring-ai-chat
mvn spring-boot:run
5

Test the running application

Send a test request to the chat endpoint and verify you get an LLM response. You can also check token usage metrics via the Actuator endpoint.

# Test chat
curl "localhost:8081/api/deepseek/chatWithMetric?userInput=Who are you?"

# Check token usage metrics
curl localhost:8081/actuator/metrics/ai.total.tokens

Spring AI Summary Examples

Client configuration

This project exposes its own HTTP API rather than connecting as a client. Use this curl pattern to call the running Spring Boot service.

{
  "mcpServers": {
    "spring-ai-summary": {
      "command": "java",
      "args": ["-jar", "/path/to/spring-ai-summary/spring-ai-mcp/target/spring-ai-mcp.jar"]
    }
  }
}

Prompts and API calls to try

Use these curl commands or equivalent HTTP requests to explore the different Spring AI modules.

- curl "localhost:8081/api/deepseek/chatWithMetric?userInput=Explain Spring AI in one paragraph"
- curl "localhost:8081/api/openai/chat?message=What is vector similarity search?"
- curl localhost:8081/actuator/metrics/ai.completion.tokens
- curl localhost:8081/actuator/metrics/ai.prompt.tokens
- "Ask Claude: read the spring-ai-tool-calling module and explain how function calling is implemented"

Troubleshooting Spring AI Summary

Build fails with 'Java 21 required' or source compatibility errors

Ensure your JAVA_HOME points to JDK 21+. Run 'java -version' to check. If you have multiple JDKs, set JAVA_HOME explicitly: 'export JAVA_HOME=$(/usr/libexec/java_home -v 21)' on macOS.

Application fails to start with 'Connection refused' to Milvus or Nacos

The vector database and service registry modules require Docker services. Run 'docker compose up -d' in the relevant module directory (check for a docker-compose.yml) before starting the Spring Boot application.

API key errors or 401 Unauthorized from the LLM provider

Ensure the environment variable is exported in the same shell session where you run 'mvn spring-boot:run'. Check that the variable name matches exactly what is referenced in application.properties (e.g., DEEPSEEK_API_KEY).

Frequently Asked Questions about Spring AI Summary

What is Spring AI Summary?

Spring AI Summary is a Model Context Protocol (MCP) server that springai,llm,mcp,embedding It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Spring AI Summary?

Follow the installation instructions on the Spring AI Summary GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Spring AI Summary?

Spring AI Summary works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Spring AI Summary free to use?

Yes, Spring AI Summary is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "spring-ai-summary": { "command": "npx", "args": ["-y", "spring-ai-summary"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Spring AI Summary?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides