spring-bitcoin-mcp-server
This project provides a Model Context Protocol (MCP) server for Bitcoin price information.
The Bitcoin MCP Server is designed to provide real-time Bitcoin price information using the Model Context Protocol (MCP). It facilitates communication between a client and server through standard input/output (STDIO), eliminating the need for network ports. The server is built using Maven, which packages the application into a JAR file. A test client, ClientSTDIO, is included to demonstrate how to connect and interact with the server. The client requires the server JAR file to be accessible, as it uses a subprocess mechanism to start the server. Configuration of the JAR file path can be done via system properties, environment variables, or default paths. The client can list available tools and retrieve Bitcoin prices in specified currencies.
Features
- Real-time Bitcoin price information
- Communication via standard input/output (STDIO)
- Subprocess mechanism for server startup
- Configurable JAR file path
- Test client for demonstration
Usage with Different Platforms
maven
bash
mvn clean package
java_system_property
bash
java -Dmcp.server.jar.path=/path/to/bitcoinmcp-0.0.1-SNAPSHOT.jar -cp target/test-classes za.sk.bitconmcp.ClientSTDIO
java_environment_variable
bash
export MCP_SERVER_JAR_PATH=/path/to/bitcoinmcp-0.0.1-SNAPSHOT.jar
java -cp target/test-classes za.sk.bitconmcp.ClientSTDIO
maven_exec
bash
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass="za.sk.bitconmcp.ClientSTDIO"
maven_exec_with_jar_path
bash
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass="za.sk.bitconmcp.ClientSTDIO" -Dmcp.server.jar.path=/path/to/bitcoinmcp-0.0.1-SNAPSHOT.jar
Frequently Asked Questions
What should I do if the MCP server JAR file is not found?
Ensure the project is built with mvn clean package
, the client is run from the correct directory, and the JAR file path is correctly specified.
Related MCP Servers
View all finance servers →mcp-server
by financial-datasets
This is a Model Context Protocol (MCP) server that provides access to stock market data from Financial Datasets.
evm-mcp-server
by mcpdotdirect
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across multiple EVM-compatible networks.
razorpay-mcp-server
by razorpay
The Razorpay MCP Server is a Model Context Protocol server that integrates with Razorpay APIs for advanced payment processing.
investor-agent
by ferdousbhai
The investor-agent is a Model Context Protocol server designed to provide comprehensive financial insights and analysis to Large Language Models.
mcp-cn-a-stock
by elsejj
This is an MCP (Model Content Protocol) service providing A-share data for large models.
mcp-trader
by wshobson
A Model Context Protocol (MCP) server designed for stock traders, offering a suite of tools for technical analysis and trading.
freqtrade-mcp
by kukapay
An MCP server that integrates with the Freqtrade cryptocurrency trading bot via its REST API, enabling seamless AI agent interaction for automated trading operation.