Skip to main content
Glama
kukapay

crypto-stocks-mcp

get_stock_list

Retrieve a formatted list of crypto-related stocks with ticker symbols and company names for investment analysis.

Instructions

Return a list of available crypto-related stocks in a table format.

Returns: str: An ASCII table string containing the ticker and name of crypto-related stocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:31-47 (handler)
    The main handler function for the 'get_stock_list' tool. It is registered via the @mcp.tool() decorator and generates a tabulated list of available crypto-related stocks using the CRYPTO_STOCKS dictionary and the tabulate library.
    @mcp.tool() def get_stock_list() -> str: """Return a list of available crypto-related stocks in a table format. Returns: str: An ASCII table string containing the ticker and name of crypto-related stocks. """ table_data = [ [ticker, name] for ticker, name in CRYPTO_STOCKS.items() ] return tabulate( table_data, headers=["Ticker", "Name"], tablefmt="grid", stralign="left" )
  • main.py:10-27 (helper)
    Constant dictionary defining the list of crypto-related stock tickers and their full names, used by the get_stock_list handler.
    CRYPTO_STOCKS = { "BMNR": "BitMine Immersion Technologies, Inc.", "CRCL": "Circle Internet Group Inc.", "SBET": "SharpLink Gaming Inc.", "SRM": "Tron Inc.", "DFDV": "DeFi Development Corp.", "MSTR": "MicroStrategy Incorporated", "COIN": "Coinbase Global Inc.", "MARA": "Marathon Digital Holdings", "RIOT": "Riot Platforms Inc.", "HIVE": "HIVE Digital Technologies", "CORZ": "Core Scientific Inc.", "IREN": "Iris Energy Limited", "CLSK": "CleanSpark Inc.", "HUT": "Hut 8 Corp", "CIFR": "Cipher Mining Inc.", "BITF": "Bitfarms Ltd" }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/crypto-stocks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server