spring-bitcoin-mcp-server

spring-bitcoin-mcp-server

3.3

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 →