Crypto Stocks MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP server that tracks real-time data for major crypto-related stocks to help AI agents analyze blockchain investment opportunities.
Features
- **List Crypto Stocks**: Retrieve a list of crypto-related stocks (e.g., Coinbase, MicroStrategy) in a table format.
- **Real-Time Prices**: Fetch the latest price for a specific stock, including ticker, company name, price, and timestamp.
- **Historical Data**: Access historical stock prices and trading volumes for a specified number of days.
- **Query Prompts**: Generate natural language prompts for querying stock information.
Installation
Prerequisites
- Python 3.10 or higher
- uv (recommended) or pip for dependency management
Setup
1. **Clone the Repository**:
2. **Install Dependencies**:
Using uv (recommended):
3. **Install to Claude Desktop**:
Install the server as a Claude Desktop application:
Configuration file as a reference:
Replace /path/to/crypto-stocks-mcp with your actual installation path.
Usage
Example Interactions
Using an MCP-compatible client (e.g., Claude Desktop or MCP Inspector):
- **List All Stocks**:
Prompt:
> Show me all crypto-related stocks.
Result:
- **Get Real-Time Price**:
Prompt:
> What's the latest price for Coinbase?
Result:
- **Fetch Historical Data**:
Prompt:
> Show me the historical prices for MicroStrategy over the past 30 days.
Result:
- **Use Query Prompt**:
Call the stock_query prompt with COIN:
License
This project is licensed under the MIT License. See the LICENSE file for details.