
danvega/dv-courses-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
This repository contains a Spring Boot application that implements the Model Control Protocol (MCP) server for providing course information.
개요
This repository contains a Spring Boot application that implements the Model Control Protocol (MCP) server for providing course information. The application creates a lightweight server that can expose course data through the Spring AI MCP framework, allowing AI models to interact with your custom data services using standardized tooling. The server exposes two main tools: - A tool to retrieve all available courses - A tool to search for specific courses by title This implementation serves as an excellent starting point for creating your own Model Control Protocol servers or for integrating external data sources with AI models through Spring AI. - Java 24 - Maven 3.8+ - Spring Boot 3.4.4 - Spring AI 1.0.
README
원문 README의 일부입니다. 원문 보기.
Spring AI MCP Server for Course Information
Overview
This repository contains a Spring Boot application that implements the Model Control Protocol (MCP) server for providing course information. The application creates a lightweight server that can expose course data through the Spring AI MCP framework, allowing AI models to interact with your custom data services using standardized tooling.
The server exposes two main tools:
- A tool to retrieve all available courses
- A tool to search for specific courses by title
This implementation serves as an excellent starting point for creating your own Model Control Protocol servers or for integrating external data sources with AI models through Spring AI.
Project Requirements
- Java 24
- Maven 3.8+
- Spring Boot 3.4.4
- Spring AI 1.0.0-M6
Dependencies
The project relies on the following key dependencies:
-
Spring AI MCP Server: Provides the foundation for creating MCP-compatible servers
org.springframework.ai spring-ai-mcp-server-spring-boot-starter -
Spring Boot Test: For testing the application
org.springframework.boot spring-boot-starter-test test
Getting Started
Prerequisites
Before running the application, make sure you have:
- Java 24 installed on your system
- Maven installed for dependency management
- Basic understanding of Spring Boot applications
Setting Up the Project
-
Review the project structure to understand the components:
Course.java: A simple record representing course dataCourseService.java: Service with MCP tool annotationsCoursesApplication.java: Main application class with tool registrationapplication.properties: Configuration for the MCP server
-
The application is configured to run as a non-web application using STDIO transport for MCP communication:
spring.main.web-application-type=none spring.ai.mcp.server.name=dan-vega-mcp spring.ai.mcp.server.version=0.0.1 # These settings are critical for STDIO transport spring.main.banner-mode=off logging.pattern.console=
How to Run the Application
Running the application is straightforward with Maven:
mvn spring-boot:run
The application will start as a Model Control Protocol server accessible via standard input/output. It doesn’t open any network ports or provide a web interface, as indicated by the spring.main.web-application-type=none configuration.
When running, the server registers two tools with the MCP:
dv_get_courses: Returns all available coursesdv_get_course: Returns a specific course by title
Understanding the Code
Defining Data Models
The application uses a simple record to represent course data:
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →