LABSCO SUMMARY
A small, honest price feed — and a readable Spring AI example.
As a tool it does one thing: current prices, from a public source, with no key to arrange. Its second use is as a reference implementation, since a Spring AI MCP server is a short and legible piece of code to extend when you want the same shape pointed at a different API.
What it is
A Spring Boot application that implements the MCP server protocol with Spring AI and fetches live cryptocurrency prices from the CoinGecko API, exposing them as structured data to agents and automation tools.
What you get
- Up-to-date prices for cryptocurrencies, pulled from CoinGecko at the moment of the call
- An MCP-compliant interface, so any MCP client can consume it without custom glue
- A Spring Boot codebase, which is the practical entry point if you want to add coins or swap in another data source
- A single self-contained jar the client launches directly
Requirements
Java 17 or later and Maven. Run mvn clean package to build the jar, then configure your client to launch it with java -jar and the absolute path to the built artifact.
Setup effort
Follow the published steps — mvn clean package
USE CASES
01
Checking a price mid-conversation
Ask for the current price of a coin and get it from CoinGecko rather than from memory.
02
Feeding prices into an automation
Let an agent read the price as structured data as part of a longer workflow.
03
Building your own Spring AI server
Start from this project and point the fetch layer at whichever API you need.
BEFORE YOU INSTALL
What to know first
Requires
Java 17 or later
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
TERMINAL
git clone https://github.com/leosrdev/crypto-mcp-server
cd crypto-mcp-server
mvn clean packagePoint your client at the built jar with the block below (<YOUR_PATH_TO_CRYPTO_MCP_SERVER> is the full path of the crypto-mcp-server folder you cloned); java there is Java 17 or later on your PATH
MCP Clients
Any MCP client
ANY MCP CLIENT · JSON
{
"mcpServers": {
"crypto-price": {
"command": "java",
"args": [
"-jar",
"<YOUR_PATH_TO_CRYPTO_MCP_SERVER>/target/crypto-0.0.1-SNAPSHOT.jar"
]
}
}
}