Spring AI MCP Client

v1.0.0Coding Agentsstable

mcp client application that utilizes spring ai. it integrates with mcp protocol-supported servers to enable ai-powered chat interactions.

aianthropic-claudemcpmcp-clientspring-ai
Share:
45
Stars
0
Downloads
0
Weekly
0/5

What is Spring AI MCP Client?

Spring AI MCP Client is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp client application that utilizes spring ai. it integrates with mcp protocol-supported servers to enable ai-powered chat interactions.

mcp client application that utilizes spring ai. it integrates with mcp protocol-supported servers to enable ai-powered chat interactions.

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

Features

  • mcp client application that utilizes spring ai. it integrate

Use Cases

AI-powered chat with Spring AI integration
MCP protocol client for AI applications
ogulcanarbc

Maintainer

LicenseMIT
Languagejava
Versionv1.0.0
UpdatedMar 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx spring-ai-mcp-client

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 MCP Client

Spring AI MCP Client is a Java Spring Boot application that acts as an MCP client, connecting to any MCP protocol-compatible server and exposing AI-powered chat interactions over a REST endpoint. It integrates the Spring AI framework with Anthropic's Claude models to translate natural language requests into MCP tool calls, making it easy to embed MCP-driven AI capabilities into existing Java microservice architectures. Java developers use it as a reference implementation and starting point for building enterprise MCP client applications.

Prerequisites

  • Java 17 or higher
  • Maven (or Gradle) build tool
  • An Anthropic API key from console.anthropic.com
  • At least one MCP-compatible server to connect to
  • Basic familiarity with Spring Boot
1

Clone the repository

Clone the spring-ai-mcp-client repository to your local machine.

git clone https://github.com/ogulcanarbc/spring-ai-mcp-client.git
cd spring-ai-mcp-client
2

Set your Anthropic API key

Configure your Anthropic API key in the application properties or as an environment variable. This key is required for Claude model access.

# Set as environment variable
export ANTHROPIC_API_KEY=your_anthropic_api_key_here

# Or add to src/main/resources/application.properties:
# spring.ai.anthropic.api-key=${ANTHROPIC_API_KEY}
3

Configure the MCP client settings

Edit application.properties to set the MCP server name and connection timeout. These Spring AI properties control how the client discovers and communicates with MCP servers.

# src/main/resources/application.properties
spring.ai.mcp.client.enabled=true
spring.ai.mcp.client.name=my-mcp-server
spring.ai.mcp.client.request-timeout=30s
server.port=8081
4

Build the project

Build the Spring Boot application using Maven.

mvn clean install
5

Run the application

Start the Spring Boot application. It will launch on port 8081 by default.

mvn spring-boot:run
6

Send a chat request

Make a GET request to the /ai endpoint with your message. The application routes the request through Claude and available MCP tools, returning an AI-generated response.

curl -X GET "http://localhost:8081/ai?message=Hello" \
  -H "Accept: application/json"

Spring AI MCP Client Examples

Client configuration

Application properties configuration for Spring AI MCP Client with Anthropic Claude.

{
  "spring.ai.anthropic.api-key": "${ANTHROPIC_API_KEY}",
  "spring.ai.mcp.client.enabled": "true",
  "spring.ai.mcp.client.name": "my-mcp-server",
  "spring.ai.mcp.client.request-timeout": "30s",
  "server.port": "8081"
}

Prompts to try

Example HTTP requests to the Spring AI MCP Client REST endpoint.

- curl "http://localhost:8081/ai?message=Hello, what can you do?"
- curl "http://localhost:8081/ai?message=List all available tools"
- curl "http://localhost:8081/ai?message=Use the filesystem tool to list files in /tmp"
- curl "http://localhost:8081/ai?message=Summarize the content at https://example.com"
- curl "http://localhost:8081/ai?message=What MCP servers are you connected to?"

Troubleshooting Spring AI MCP Client

Application fails to start with 'No API key found' error

Set the ANTHROPIC_API_KEY environment variable before running: `export ANTHROPIC_API_KEY=your_key` and retry `mvn spring-boot:run`. Alternatively, add `spring.ai.anthropic.api-key=your_key` directly to application.properties.

MCP client cannot connect to the configured server

Verify the MCP server is running and reachable. Check `spring.ai.mcp.client.name` in application.properties matches the server's registered name. Increase `spring.ai.mcp.client.request-timeout` if the server is slow to respond.

Build fails with Java version incompatibility

Spring AI requires Java 17 or higher. Run `java -version` to check your installed version, and update via your system's package manager or https://adoptium.net if needed.

Frequently Asked Questions about Spring AI MCP Client

What is Spring AI MCP Client?

Spring AI MCP Client is a Model Context Protocol (MCP) server that mcp client application that utilizes spring ai. it integrates with mcp protocol-supported servers to enable ai-powered chat interactions. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Spring AI MCP Client?

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

Which AI clients work with Spring AI MCP Client?

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

Is Spring AI MCP Client free to use?

Yes, Spring AI MCP Client is open source and available under the MIT 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-mcp-client": { "command": "npx", "args": ["-y", "spring-ai-mcp-client"] } } }

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

Read the full setup guide →

Ready to use Spring AI MCP Client?

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