amarpreetbhatia/carsmcpserver
If you are the rightful owner of carsmcpserver and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Cars MCP Server is a Model Context Protocol server built using Spring AI, demonstrating the use of the ToolCallback API to interact with a list of cars.
The Cars MCP Server is a Spring AI-based application that utilizes the ToolCallback API to manage and interact with a list of cars, representing Amarpreet's wishlist. The server is structured to expose methods from the CarService class as tools, allowing for programmatic or AI-driven interaction. The application is initialized with a predefined list of cars and provides methods to retrieve cars by model name or build year. The project is organized with a clear structure, including main application files, configuration properties, and test cases to ensure proper functionality.
Features
- ToolCallback API: Exposes CarService methods as tools for interaction.
- Car Management: Provides methods to retrieve cars by name or year.
- Spring Boot Integration: Utilizes Spring Boot for application setup and configuration.
- Predefined Car List: Initializes with a list of cars during startup.
- Maven Build: Supports building and running the application using Maven.
Tools
get_cars
Get Amarpreet’s car wishlist
get_car_by_name
Search for cars by model name
get_car_by_years
Search for cars by year of production