← MCP server and skill grades

mcp-server

financial-datasets/mcp-server

A
Type
MCP server
Scanned
Nov 12, 2026
Version
08e7a3dbb949
Files read
7

This MCP server lets an AI assistant look up company financial statements, stock and cryptocurrency prices, market news, and SEC filings through the Financial Datasets API. Its risk is low because it only makes read-only HTTPS requests to api.financialdatasets.ai using your API key, with its main code flaw being unencoded URL query parameters that could let prompt-injected inputs alter parameters on those API calls.

What it can reach

Files
Reads environment variables from a local .env file on every API call using python-dotenv.
Secrets
Reads FINANCIAL_DATASETS_API_KEY from the environment and sends it in the X-API-KEY header to https://api.financialdatasets.ai.
Network
Makes outbound HTTPS GET requests to https://api.financialdatasets.ai for financial statements, stock and crypto prices, company news, and SEC filings.

Findings

1 low
  1. LowTool arguments are interpolated into API query strings without URL encoding

    server.py:57

    All parameterized tools build request URLs by inserting arguments such as ticker, period, start_date, end_date, interval, and filing_type directly into f-strings without URL-encoding them. If untrusted content tricks the AI assistant into passing characters like & or # inside an argument, those characters can inject extra query parameters or truncate existing ones in the request sent to api.financialdatasets.ai, potentially consuming extra API quota. Because the https://api.financialdatasets.ai host and path appear before the ? query marker and httpx does not follow redirects by default, this cannot redirect requests or leak FINANCIAL_DATASETS_API_KEY to another server.

    Fix: Pass query arguments through httpx's params dictionary (for example, client.get(url, params={"ticker": ticker, "period": period, "limit": limit}, headers=headers)) so httpx properly URL-encodes every value.