Sponsored by Deepsite.site

Spring AI MCP Server

Created By
haeseoky8 months ago
스프링부트와 AI를 활용한 엑셀, PPT 생성 서버
Content

Spring AI MCP Server

스프링부트와 AI를 활용한 엑셀, PPT 생성 서버입니다.

주요 기능

  • AI를 활용한 엑셀 문서 자동 생성
  • AI를 활용한 PPT 프레젠테이션 자동 생성
  • RESTful API를 통한 비동기 문서 생성 요청 처리

기술 스택

  • Java 17
  • Spring Boot 3.2.3
  • Spring AI 0.8.0 (OpenAI 활용)
  • Apache POI 5.2.5 (엑셀, PPT 파일 생성)

요구 사항

  • Java 17 이상
  • OpenAI API 키

실행 방법

  1. 환경 변수 설정: OPENAI_API_KEY=your_api_key
  2. 애플리케이션 빌드:
    ./gradlew clean build
    
  3. 애플리케이션 실행:
    java -jar build/libs/spring-ai-mcp-server-0.0.1-SNAPSHOT.jar
    

API 사용 예시

1. 엑셀 문서 생성 요청

curl -X POST http://localhost:8080/api/documents \
  -H "Content-Type: application/json" \
  -d '{
    "title": "2024년 분기별 매출 보고서",
    "content": "2024년 1분기에서 3분기까지의 매출 데이터를 포함한 보고서를 생성합니다. 제품 카테고리별 매출과 총합을 표시하고, 분기별 증감률도 표시해주세요.",
    "documentType": "EXCEL",
    "sections": ["매출 개요", "제품별 실적", "지역별 실적"]
  }'

2. PowerPoint 프레젠테이션 생성 요청

curl -X POST http://localhost:8080/api/documents \
  -H "Content-Type: application/json" \
  -d '{
    "title": "AI 기술 동향 2025",
    "content": "2025년 현재의 AI 기술 동향을 소개하는 프레젠테이션입니다. 생성형 AI 발전, 대규모 언어 모델, AI 윤리 및 규제, 산업별 AI 응용 사례 등을 다룹니다.",
    "documentType": "POWERPOINT",
    "sections": ["서론", "생성형 AI 동향", "대규모 언어 모델 발전", "산업별 AI 응용", "윤리 및 규제", "결론"]
  }'

3. 문서 생성 상태 확인

curl -X GET http://localhost:8080/api/documents/{documentId}

4. 생성된 문서 다운로드

  • 엑셀 파일:

    curl -X GET http://localhost:8080/api/documents/excel/download/{fileName}
    
  • PowerPoint 파일:

    curl -X GET http://localhost:8080/api/documents/ppt/download/{fileName}
    

설정 옵션

application.yml에서 다양한 설정을 조정할 수 있습니다:

app:
  document:
    temp-dir: ${java.io.tmpdir}/spring-ai-mcp-server  # 임시 파일 저장 경로

향후 개발 계획

  • Markdown 문서 생성 기능 추가
  • Confluence 페이지 자동 생성 기능 추가
  • 다양한 문서 템플릿 지원
  • 이미지 및 차트 자동 생성 기능

라이센스

MIT License

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.