MCP.so
登录

Cars MCP Server

@amarpreetbhatia

基本信息

分类

其他

传输方式

stdio

作者

amarpreetbhatia

关于 Cars MCP Server

Basic MCP server example with Spring AI

Cars MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Cars MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Cars MCP Server?

The Cars MCP Server is an MCP (Model Context Protocol) server built using Spring AI. It demonstrates the use of Spring AI’s ToolCallback API to expose tools that interact with a static list of cars representing Amarpreet’s wishlist.

How to use Cars MCP Server?

Build the project with mvn clean install, then run java -jar target/carsmcpserver-0.0.1-SNAPSHOT.jar. The server registers three tools (get_cars, get_car_by_name, get_car_by_years) that can be invoked programmatically or through an AI-driven interface. No web UI is provided—it is a non‑web MCP server.

Key features of Cars MCP Server

  • Built with Spring AI and the ToolCallback API
  • Exposes three car query tools (get_cars, get_car_by_name, get_car_by_years)
  • Manages a hardcoded wishlist of four cars
  • Initialized via @PostConstruct at application startup
  • Configured as a non‑web MCP server via application.properties

Use cases of Cars MCP Server

  • Query the complete wishlist of cars using the get_cars tool
  • Find a specific car by its model name with get_car_by_name
  • Retrieve a car by its build year using get_car_by_years
  • Serve as a reference implementation for Spring AI MCP tool registration

常见问题

1

What tools does the server provide?

Three tools: `get_cars` (returns all cars), `get_car_by_name` (finds by model name), and `get_car_by_years` (finds by build year).

2

How do I run the server?

Build with `mvn clean install`, then run `java -jar target/carsmcpserver-0.0.1-SNAPSHOT.jar`. The server starts without a web interface.

3

What cars are in the initial wishlist?

The initial list contains: BMW Neue Klasse (2025), Ferrari EV (2025), Mercedes AMG 4dr EV (2025), and Porsche 718 Boxster (2025).

4

Is this a web application?

No. The application is configured as a non‑web MCP server (`spring.main.web-application-type=none`), so it does not expose an HTTP endpoint.

评论

其他 分类下的更多 MCP 服务器