This repository showcases how to easily transform an existing Spring Boot REST API for Finance Wallet Management into an AI-available tool using Spring AI's Model Context Protocol (MCP) server integration.
MCPpedia last refreshed this data
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"spring-ai-mcp-wallet-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Article of the project: https://gokhana.medium.com/from-rest-api-to-mcp-server-convert-your-spring-apis-into-ai-tools-with-spring-ai-07b8f36b0212
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Let AI agents create, discover, and track tokens across chains via Printr.
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MaverickMCP - Personal Stock Analysis MCP Server
Brazilian public procurement (PNCP) and Federal Revenue CNPJ data — 16 tools, 4 prompts.
MCP Security Weekly
Get CVE alerts and security updates for Spring Ai Mcp Wallet Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Article of the project: https://gokhana.medium.com/from-rest-api-to-mcp-server-convert-your-spring-apis-into-ai-tools-with-spring-ai-07b8f36b0212
This project is a simple wallet management backend that exposes REST APIs and integrates with Spring AI's MCP (Model Context Protocol) server for AI-powered tool access.
@Tool for AI tool exposure<properties>
<java.version>17</java.version>
<spring-ai.version>1.0.0</spring-ai.version>
</properties>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server</artifactId>
</dependency>
| Field | Type | Description |
|---|---|---|
| id | Long | Wallet ID |
| name | String | Wallet name |
| balance | BigDecimal | Current balance |
GET /api/wallets - Get all walletsGET /api/wallets/{id} - Get wallet by IDPOST /api/wallets - Create a new walletPUT /api/wallets/{id} - Update a walletDELETE /api/wallets/{id} - Delete a walletPOST /api/wallets/{id}/expense?amount={amount} - Add an expensePOST /api/wallets/{id}/income?amount={amount} - Add incomeThe application uses Spring AI Tool annotations to expose service methods as MCP tools.
Example:
@Tool(name = "create-wallet", description = "Creates a new wallet with the given details")
public Wallet createWallet(Wallet wallet) { ... }
Exposed Tools:
Add the following to your src/main/resources/application.properties:
spring.main.web-application-type=none
spring.ai.mcp.server.name=wallet-mcp
spring.ai.mcp.server.version=0.0.1
server.port=8091
Register the tool callback in your configuration:
@Bean
public List<ToolCallback> walletTools(WalletService walletService) {
return List.of(ToolCallbacks.from(walletService));
}
jdbc:h2:mem:walletdbsaGlobalExceptionHandlermvn clean packagejava -jar target/finance-wallet-0.0.1-SNAPSHOT.jar
Or use .cursor/mcp.json:
{
"mcpServers": {
"finance-wallet-mcp": {
"command": "java",
"args": [
"-jar",
"/Users/gokhanayrancioglu/finance-wallet/target/finance-wallet-0.0.1-SNAPSHOT.jar"
]
}
}
}