Skip to main content
Glama

Agentic AI System with MCP Integration

fundamentals_mcp.py925 B
from mcp.server.fastmcp import FastMCP from services.fundamentals import get_company_overview, get_etf_profile # Initialize FastMCP server for fundamentals mcp = FastMCP("fundamentals") @mcp.tool() async def get_company_info_mcp(symbol: str) -> str: """Get company overview and fundamental data.""" data = get_company_overview(symbol) if data: return f"Company info for {symbol}: {data}" else: return f"Could not retrieve company information for {symbol}." @mcp.tool() async def get_etf_details_mcp(symbol: str) -> str: """Get ETF profile and holdings.""" data = get_etf_profile(symbol) if data: return f"ETF details for {symbol}: {data}" else: return f"Could not retrieve ETF details for {symbol}." if __name__ == "__main__": print("Starting fundamentals MCP server...") mcp.run(transport='stdio') print("Fundamentals MCP server is running...")

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/pratyush-usc-mba/Designing-an-Agentic-AI-System-with-MCP-Integration'

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