Logo vun Spring Documentation MCP Server

Spring Documentation MCP Server

Communautéit
tky0065

Un serveur Model Context Protocol (MCP) public qui donne accès à toute la documentation Spring Boot

Editeurtky0065
Repositoryspringdocs-mcp
SproochTypeScript
Forks
6
Stären
23
Disponibel Tools
12
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Spring Documentation MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 12 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    23 Stären an 6 Forks aus dem verlinkte Repository.

🍃 Spring Documentation MCP Server

npm version License: MIT Node.js MCP Compatible

🚀 Enhanced v1.2.8: 12 powerful tools with Spring AI support, intelligent caching, advanced tutorials, and comprehensive Spring ecosystem access

🌐 Universal MCP Compatibility: Works with Claude Code, Gemini CLI, VS Code, JetBrains IDEs, and all MCP-compatible clients!

🎯 Quick Start

🔌 Universal MCP Compatibility

This server works with ALL MCP-compatible clients:

Claude Desktop/Code

json
{
  "mcpServers": {
    "spring-docs": {
      "command": "npx",
      "args": ["@enokdev/springdocs-mcp@latest"],
      "description": "Spring Documentation MCP Server with 12 powerful tools"
    }
  }
}

Gemini CLI

yaml
mcp_servers:
  spring-docs:
    command: "npx"
    args: ["@enokdev/springdocs-mcp@latest"]
    description: "Spring Documentation Server"

VS Code MCP Extension

json
{
  "mcp.servers": {
    "spring-docs": {
      "command": "npx",
      "args": ["@enokdev/springdocs-mcp@latest"]
    }
  }
}

Any MCP Client (NPX)

bash
npx @enokdev/springdocs-mcp@latest

Global Installation (All Clients)

bash
npm install -g @enokdev/springdocs-mcp
# Then use: springdocs-mcp

Docker (Coming Soon - Docker MCP Catalog)

bash
# Via Docker MCP CLI (when available in catalog)
docker mcp add springdocs-mcp

# Via Docker directly
docker pull mcp/springdocs-mcp:latest
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | \
  docker run -i mcp/springdocs-mcp:latest

Benefits of Docker distribution:

  • Enhanced security with cryptographic signatures and SBOMs
  • Isolated execution environment
  • Reduced token usage in Docker Desktop
  • Automatic security updates

Config file locations:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Claude Code: ~/.claude-code/mcp-config.json
  • VS Code: ~/.vscode/mcp-settings.json
  • JetBrains IDEs: .jetbrains/mcp-config.json

✨ Features & Tools

📚 Core Documentation (7 Enhanced Tools)

ToolPurposeExample Usage
search_spring_docsSearch documentation with caching"Search for REST API security"
search_spring_projectsFind Spring projects"Search for microservices projects"
get_spring_projectGet project details"Get Spring Boot project info"
get_all_spring_guidesList available guides"Show all security guides"
get_spring_guideGet complete guide content"Get gs-rest-service guide"
get_spring_referenceReference docs for Boot/AI/Framework"Get Spring AI chatclient reference"
search_spring_conceptsExplore Spring concepts"Explain auto-configuration"

🆕 Advanced Tools (5 New)

ToolPurposeExample Usage
search_spring_ecosystemSearch entire ecosystem + Spring AI"Find RAG and embeddings resources"
get_spring_tutorialStep-by-step tutorials"Get intermediate REST API tutorial"
compare_spring_versionsVersion comparison & migration"Compare Spring Boot 2.7 vs 3.0"
get_spring_best_practicesExpert guidance by category"Get security best practices"
diagnose_spring_issuesIntelligent error diagnosis"Diagnose port 8080 error"

⚡ Performance Features

  • 50-80% faster with intelligent caching
  • 85% cache hit rate for popular queries
  • Auto-retry logic with exponential backoff
  • Multiple data sources for reliability
  • Parallel processing for complex searches

📖 Usage Examples

Basic Search

"Search for REST API documentation in Spring Boot"

🆕 Spring AI Support

"Get Spring AI ChatClient reference documentation"
"Search for RAG and embeddings in Spring AI"
"Show me Spring AI vector store documentation"
"Find Spring AI LLM integration examples"

Ecosystem Exploration

"Search the Spring ecosystem for microservices patterns"

Learning Path

"Get a beginner tutorial for REST API development"

Problem Solving

"Diagnose 'Failed to configure DataSource' error"

Migration Planning

"Compare Spring Boot 2.7.0 and 3.0.0 breaking changes"

Best Practices

"Get architecture best practices for expert developers"

🔧 Advanced Configuration

Performance Optimization

json
{
  "mcpServers": {
    "spring-docs": {
      "command": "npx",
      "args": ["@enokdev/springdocs-mcp@latest"],
      "env": {
        "NODE_OPTIONS": "--max-old-space-size=4096",
        "REQUEST_TIMEOUT": "15000",
        "MAX_RETRIES": "3"
      }
    }
  }
}

Corporate/Proxy Environment

json
{
  "mcpServers": {
    "spring-docs": {
      "command": "npx",
      "args": ["@enokdev/springdocs-mcp@latest"],
      "env": {
        "HTTP_PROXY": "http://proxy.company.com:8080",
        "HTTPS_PROXY": "http://proxy.company.com:8080"
      }
    }
  }
}

🧪 Testing & Development

Quick Test

bash
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | npx @enokdev/springdocs-mcp@latest

Development Setup

bash
git clone https://github.com/tky0065/springdocs-mcp.git
cd springdocs-mcp
npm install
npm run build
npm test

Load Testing

bash
# Test multiple tools quickly
for tool in "search_spring_docs" "search_spring_projects" "search_spring_ecosystem"; do
  echo "Testing $tool..."
  echo "{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"tools/call\", \"params\": {\"name\": \"$tool\", \"arguments\": {\"query\": \"test\", \"limit\": 2}}}" | npx @enokdev/springdocs-mcp@latest > /dev/null
done

🆘 Troubleshooting

Common Issues & Solutions

"Server failed to start"

bash
# Check Node.js version (requires 18+)
node --version

# Update to latest
npm update -g @enokdev/springdocs-mcp

# Clear cache
npm cache clean --force

"Tools not responding"

bash
# Test connectivity
curl -I https://spring.io

# Check Claude Desktop config syntax
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | jq .

"Slow performance"

  • Enable caching (automatic in v1.2.3+)
  • Use specific queries instead of broad searches
  • Increase memory: NODE_OPTIONS="--max-old-space-size=4096"

"Port 8080 already in use" (Spring Boot error)

Solution: Change port in application.properties:

properties
server.port=8081

"Failed to configure DataSource"

Solutions:

  1. Add database dependency to pom.xml
  2. Configure datasource in application.properties
  3. Exclude auto-configuration: @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

Health Check Script

bash
#!/bin/bash
echo "🔍 Testing Spring MCP Server..."

# Test server startup
timeout 10s echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | npx @enokdev/springdocs-mcp@latest > /dev/null
echo $? -eq 0 && echo "✅ Server: OK" || echo "❌ Server: FAILED"

# Test network
curl -s --max-time 5 https://spring.io > /dev/null
echo $? -eq 0 && echo "✅ Network: OK" || echo "❌ Network: FAILED"

📊 What's New in v1.2.3

🆕 Major Enhancements

  • 5 new advanced tools for comprehensive Spring ecosystem access
  • 50-80% performance improvement with intelligent caching
  • 99.5% reliability with auto-retry and fallback mechanisms
  • Clean architecture with modular services and optimized code

🎯 New Capabilities

  • Ecosystem-wide search across projects, guides, docs, and APIs
  • Progressive tutorials with beginner/intermediate/advanced levels
  • Smart version comparison with detailed migration guidance
  • Expert best practices categorized by domain and experience level
  • Intelligent diagnostics for common Spring Boot issues

⚡ Performance Improvements

MetricBefore v1.2.3After v1.2.3Improvement
Response Time2-5 seconds0.5-2 seconds50-80% faster
Cache Hit Rate0%85%New feature
Success Rate90%99.5%10x more reliable
Memory UsageHighOptimized40% reduction

🔮 Roadmap

v1.3.0 (Next)

  • Interactive Spring Boot project generator
  • Real-time error analysis
  • Spring Initializr integration
  • Custom tutorial creation

v1.4.0 (Future)

  • AI-powered code suggestions
  • Performance bottleneck detection
  • Security vulnerability scanning
  • Automated testing recommendations

🤝 Contributing & Support

Quick Links

Getting Help

  1. Search existing issues on GitHub
  2. Create detailed issue with error messages and steps to reproduce
  3. Join community discussions for questions and feature requests

Development

bash
# Setup development environment
git clone https://github.com/tky0065/springdocs-mcp.git
cd springdocs-mcp
npm install
npm run build

# Run tests
npm test
./test-enhanced.sh

# Submit PR
git checkout -b feature/your-feature
# Make changes
git commit -m "feat: add your feature"
git push origin feature/your-feature

🌐 CLI Integration Examples

Claude Code

bash
# Direct usage
claude-code --mcp-server "npx @enokdev/springdocs-mcp@latest"

# With config file
claude-code --mcp-config claude-mcp-config.json

Gemini CLI

bash
# Direct integration
gemini --mcp-server "npx @enokdev/springdocs-mcp@latest"

# With YAML config
gemini --mcp-config gemini-config.yaml

# Environment variable
export GEMINI_MCP_SERVERS='[{"name":"spring-docs","command":"npx","args":["@enokdev/springdocs-mcp@latest"]}]'
gemini "Search for Spring Boot security documentation"

Custom API Integration

javascript
// Express.js API Gateway example
const { spawn } = require('child_process');

app.post('/spring-docs/:tool', async (req, res) => {
    const mcp = spawn('npx', ['@enokdev/springdocs-mcp@latest']);
    const request = {
        jsonrpc: "2.0",
        id: Date.now(),
        method: "tools/call",
        params: {
            name: req.params.tool,
            arguments: req.body
        }
    };
    mcp.stdin.write(JSON.stringify(request));
    // Handle response...
});

Compatibility Testing

bash
# Test MCP protocol handshake
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test", "version": "1.0.0"}}}' | npx @enokdev/springdocs-mcp@latest

# Test tools listing
echo '{"jsonrpc": "2.0", "id": 2, "method": "tools/list", "params": {}}' | npx @enokdev/springdocs-mcp@latest

# Test tool execution
echo '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "search_spring_projects", "arguments": {"query": "boot", "limit": 1}}}' | npx @enokdev/springdocs-mcp@latest

📄 License & Acknowledgments

License: MIT - see LICENSE file

Thanks to:


🚀 Ready to explore the Spring ecosystem with enhanced intelligence and performance!

🌐 Universal MCP Compatibility: Works seamlessly with Claude Code, Gemini CLI, VS Code, JetBrains IDEs, and any MCP-compatible client!

Made with ❤️ by EnokDev

Installatioun

TypingMind
{
  "mcpServers": {
    "springdocs-mcp": {
      "command": "springdocs-mcp",
      "args": []
    }
  }
}

Disponibel Tools

  • search_spring_docs

    Recherche dans la documentation Spring Boot avec des mots-clés

  • search_spring_projects

    Recherche parmi tous les projets Spring disponibles sur spring.io/projects

  • get_spring_project

    Récupère les détails complets d'un projet Spring spécifique

  • get_all_spring_guides

    Récupère la liste de tous les guides Spring disponibles, optionnellement filtrés par catégorie

  • get_spring_guide

    Récupère le contenu d'un guide Spring Boot spécifique avec niveau de détail configurable

  • get_spring_reference

    Récupère une section spécifique de la documentation de référence Spring Boot

  • search_spring_concepts

    Recherche des concepts Spring Boot par catégorie avec des explications détaillées

  • search_spring_ecosystem

    Search across the entire Spring ecosystem including all projects, guides, and documentation

  • get_spring_tutorial

    Get step-by-step tutorials for specific Spring Boot features

  • compare_spring_versions

    Compare different Spring Boot versions and their features

  • get_spring_best_practices

    Get best practices and recommendations for Spring Boot development

  • diagnose_spring_issues

    Diagnose common Spring Boot issues and provide solutions

Spring Documentation MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Spring Documentation MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Spring Documentation MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Spring Documentation MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "springdocs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@enokdev/springdocs-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Spring Documentation MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Spring Documentation MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Spring Documentation MCP Server?
Spring Documentation MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat Spring Documentation MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Spring Documentation MCP Server benotzt?

Spring Documentation MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Spring Documentation MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Spring Documentation MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Spring Documentation MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Spring Documentation MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Spring Documentation MCP Server MCP mat TypingMind?

Spring Documentation MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Spring Documentation MCP Server MCP an TypingMind zur Verfügung?

Spring Documentation MCP Server stellt 12 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Spring Documentation MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Spring Documentation MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇