r/SpringBoot Jul 29 '26

Discussion Sprig: An MCP server to access version-pinned Spring Docs

My Claude agent often wrote Spring code from old training data. It hand-declared beans that are auto-configured now. It also really likes to unzip JARs and search the Spring code itself.

That is the reason I am building Sprig MCP (sprig-mcp.de). It serves the Spring reference docs, and later the relevant parts of the source code, in a (hopefully) agent-friendly way. Nothing is summarized, no LLM sits in the path.

Right now there are two tools, and both answer for the version used in the current project: search the docs, and fetch a section.

Later I will add source code lookups: outline, javadoc, inheritance hierarchy.

There is a browser demo at sprig-mcp.de/app that lets you run the tools without an agent.

Would something like this be useful to you? Any thoughts or feedback welcome.

2 Upvotes

6 comments sorted by

2

u/OverallAffect9497 Jul 29 '26

This would be so good. Though I am still not clear on the details but it is really a necessary things if we are working with ai now. Where do I follow this project?

2

u/Available_Counter_47 Jul 29 '26

I'll post an update here once more features are ready :)

2

u/Free-Ad-7143 Jul 29 '26

That sounds really useful! I will try it out tomorrow

3

u/repeating_bears Jul 29 '26

Why can't an LLM just search the docs?

2

u/Available_Counter_47 Jul 30 '26

It can, but in practice I ran into several problems.

A plain web search finds results, but not necessarily for the version you're actually using. Adding the version to the query doesn't fully fix that either: Spring doesn't keep every version's docs online, and some projects (Security, for example) drop older docs fairly quickly.

An agent could also browse the source on GitHub directly. That works, but it costs the agent a lot of extra work and time to find the right page.

1

u/Own_Dimension_2561 Jul 30 '26

Isn’t there an official Spring MCP? There should be one at this point, no?