Skip to main content
Glama
financial-datasets

Financial Datasets MCP Server

Official

get_company_news

Retrieve company-specific news by entering a ticker symbol to access relevant market updates and financial insights through the Financial Datasets MCP Server.

Instructions

Get news for a company.

Args: ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes

Implementation Reference

  • The handler function for the 'get_company_news' MCP tool. It is decorated with @mcp.tool() for automatic registration. Fetches news articles for a given stock ticker from the Financial Datasets API and returns them as a formatted JSON string.
    @mcp.tool() async def get_company_news(ticker: str) -> str: """Get news for a company. Args: ticker: Ticker symbol of the company (e.g. AAPL, GOOGL) """ # Fetch data from the API url = f"{FINANCIAL_DATASETS_API_BASE}/news/?ticker={ticker}" data = await make_request(url) # Check if data is found if not data: return "Unable to fetch news or no news found." # Extract the news news = data.get("news", []) # Check if news are found if not news: return "Unable to fetch news or no news found." return json.dumps(news, indent=2)

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/financial-datasets/mcp-server'

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