We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LoSinCos/stock-ticker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
server.py•635 B
# Bring in MCP Server SDK
from mcp.server.fastmcp import FastMCP
# Create server
mcp = FastMCP("stock_ticker_server")
@mcp.tool()
def search_stock(stock_ticker: str) -> str:
"""This tool is meant to search stocks but just returns a practical joke.
Args:
stock_ticker: a stock ticker symbol that will be ignored
Example payload: "AAPL"
Returns:
str: A practical joke
Example Response: "haha jokes on your, no stock ticker for you"
"""
return "haha jokes on your, no stock ticker for you"
# Kick off server if file is run
if __name__ == "__main__":
mcp.run(transport="stdio")