<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb" -->

---
title: Beyond local tools: Deep dive into MCP with Spring AI by...
description: A conference talk walks through building MCP (Model Context Protocol) servers using Spring AI, covering the protocol basics (tool calling, resources, prompts,...
canonical: https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Beyond local tools: Deep dive into MCP with Spring AI by James Ward / Maximilian Schellhorn | daily.dev
og:description: A conference talk walks through building MCP (Model Context Protocol) servers using Spring AI, covering the protocol basics (tool calling, resources, prompts,...
og:url: https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb
og:image: https://api.daily.dev/og/posts/9yi2TYCbb.png
og:image:alt: Beyond local tools: Deep dive into MCP with Spring AI by James Ward / Maximilian Schellhorn
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Beyond local tools: Deep dive into MCP with Spring AI by James Ward / Maximilian Schellhorn

**[Spring I/O](https://daily.dev/sources/springio)** · 51 min read · 0 upvotes · 0 comments

## Summary

A conference talk walks through building MCP (Model Context Protocol) servers using Spring AI, covering the protocol basics (tool calling, resources, prompts, elicitation, sampling, and the newer MCP apps feature). It demonstrates writing MCP tools in Java, testing them via MCP Inspector and AI coding assistants like Kiro, and shows advanced features such as structured output schemas, logging, progress updates, and elicitation for optional user input. The presenters then cover enterprise concerns: choosing between local (stdio) and remote (streamable HTTP) transports, OAuth-based authorization flows including dynamic client registration and the newer client ID metadata document approach, and scaling strategies (stateless mode vs. dedicated sandboxes per session, e.g. via AWS Agent Core runtime). It closes with techniques for context-efficient MCP usage — tool filtering, gateways, progressive disclosure via a tool search tool, and 'code mode' where an agent writes code to batch multiple tool calls instead of doing multiple round trips.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=gH9bheS0ifU>

## Questions this post answers

### How do I make an MCP server stateless in Spring AI and what do I lose by doing so?

Spring AI provides a stateless configuration option that removes the need for the initialization handshake and lets you scale horizontally with simple round-robin load balancing across multiple server instances. The trade-off is that stateful features like sampling and elicitation become unavailable, since those inherently depend on a persistent session between client and server.

_Developers weighing scalability against feature completeness for MCP servers can track these trade-offs on daily.dev._

### What is the difference between dynamic client registration and client ID metadata documents for MCP OAuth?

Dynamic client registration lets a new MCP client call a public registration endpoint to register itself with the authorization server, but this exposed endpoint risks abuse like DDoS and lacks broad enterprise support. Client ID metadata documents instead use a client ID that is itself an HTTPS URL hosting validated client information, giving the authorization server a trust boundary without a public registration endpoint; Spring authorization server is adding support for this newer approach.

_Teams designing MCP authorization flows can follow these evolving OAuth patterns on daily.dev._

### How can I reduce the context tokens consumed by MCP tool descriptions when using many MCP servers?

Techniques include tool filtering to expose only the tools an agent actually needs, a centralized gateway that controls which tools are visible to clients, progressive disclosure via a dedicated tool search tool that returns relevant tools only when needed, and 'code mode' where the agent writes code to batch multiple tool calls (like add, subtract, multiply) into one execution instead of three separate round trips.

_Developers optimizing agent context budgets across many MCP tools can follow these patterns on daily.dev._

## Similar posts on daily.dev

- [Testing Model Context Protocol \(MCP\) Tools in Spring AI](https://daily.dev/posts/testing-model-context-protocol-mcp-tools-in-spring-ai-nvrhltiro) · Baeldung · 1 upvotes · 0 comments
- [MCP in action: What makes AI agents actually useful](https://daily.dev/posts/mcp-in-action-what-makes-ai-agents-actually-useful-xzn8qnwi5) · All Things Open · 0 upvotes · 0 comments
- [MCP standardized tools. Now we need the infrastructure around them.](https://daily.dev/posts/mcp-standardized-tools-now-we-need-the-infrastructure-around-them--qv8rzplng) · Stack Overflow Blog · 0 upvotes · 0 comments
- [MCP is a fad](https://daily.dev/posts/mcp-is-a-fad-yboi44ud0) · Hacker News · 2 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#java](https://daily.dev/tags/java), [#mcp](https://daily.dev/tags/mcp), [#oauth](https://daily.dev/tags/oauth), [#spring-ai](https://daily.dev/tags/spring-ai)

[View this post on daily.dev](https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Beyond local tools: Deep dive into MCP with Spring AI by James Ward / Maximilian Schellhorn","url":"https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb"},"datePublished":"2026-09-27T07:26:28.690Z","dateModified":"2026-09-27T07:27:25.342Z","description":"A conference talk walks through building MCP (Model Context Protocol) servers using Spring AI, covering the protocol basics (tool calling, resources, prompts,...","image":"https://i.ytimg.com/vi/gH9bheS0ifU/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/gH9bheS0ifU/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,java,mcp,oauth,spring-ai","timeRequired":"PT51M","video":{"@type":"VideoObject","name":"Beyond local tools: Deep dive into MCP with Spring AI by James Ward / Maximilian Schellhorn","description":"A conference talk walks through building MCP (Model Context Protocol) servers using Spring AI, covering the protocol basics (tool calling, resources, prompts,...","thumbnailUrl":"https://i.ytimg.com/vi/gH9bheS0ifU/sddefault.jpg","uploadDate":"2026-09-27T07:26:28.690Z","duration":"PT51M","url":"https://api.daily.dev/r/9yi2TYCbb","embedUrl":"https://www.youtube.com/embed/gH9bheS0ifU"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"Beyond local tools: Deep dive into MCP with Spring AI by James Ward / Maximilian Schellhorn"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/beyond-local-tools-deep-dive-into-mcp-with-spring-ai-by-james-ward-maximilian-schellhorn-9yi2tycbb#faq","mainEntity":[{"@type":"Question","name":"How do I make an MCP server stateless in Spring AI and what do I lose by doing so?","acceptedAnswer":{"@type":"Answer","text":"Spring AI provides a stateless configuration option that removes the need for the initialization handshake and lets you scale horizontally with simple round-robin load balancing across multiple server instances. The trade-off is that stateful features like sampling and elicitation become unavailable, since those inherently depend on a persistent session between client and server. Developers weighing scalability against feature completeness for MCP servers can track these trade-offs on daily.dev."}},{"@type":"Question","name":"What is the difference between dynamic client registration and client ID metadata documents for MCP OAuth?","acceptedAnswer":{"@type":"Answer","text":"Dynamic client registration lets a new MCP client call a public registration endpoint to register itself with the authorization server, but this exposed endpoint risks abuse like DDoS and lacks broad enterprise support. Client ID metadata documents instead use a client ID that is itself an HTTPS URL hosting validated client information, giving the authorization server a trust boundary without a public registration endpoint; Spring authorization server is adding support for this newer approach. Teams designing MCP authorization flows can follow these evolving OAuth patterns on daily.dev."}},{"@type":"Question","name":"How can I reduce the context tokens consumed by MCP tool descriptions when using many MCP servers?","acceptedAnswer":{"@type":"Answer","text":"Techniques include tool filtering to expose only the tools an agent actually needs, a centralized gateway that controls which tools are visible to clients, progressive disclosure via a dedicated tool search tool that returns relevant tools only when needed, and 'code mode' where the agent writes code to batch multiple tool calls (like add, subtract, multiply) into one execution instead of three separate round trips. Developers optimizing agent context budgets across many MCP tools can follow these patterns on daily.dev."}}]}
```

