Skip to main content
Glama

Financial Modeling Prep MCP Server

Apache 2.0
17
59
  • Linux
  • Apple
ESGClient.ts1.61 kB
import { FMPClient } from "../FMPClient.js"; import type { FMPContext } from "../../types/index.js"; import type { ESGDisclosure, ESGRating, ESGBenchmark } from "./types.js"; export class ESGClient extends FMPClient { constructor(apiKey?: string) { super(apiKey); } /** * Get ESG disclosures for a symbol * @param symbol The stock symbol * @param options Optional parameters including abort signal and context * @returns Array of ESG disclosures */ async getDisclosures( symbol: string, options?: { signal?: AbortSignal; context?: FMPContext; } ): Promise<ESGDisclosure[]> { return super.get<ESGDisclosure[]>( "/esg-disclosure", { symbol }, options ); } /** * Get ESG ratings for a symbol * @param symbol The stock symbol * @param options Optional parameters including abort signal and context * @returns Array of ESG ratings */ async getRatings( symbol: string, options?: { signal?: AbortSignal; context?: FMPContext; } ): Promise<ESGRating[]> { return super.get<ESGRating[]>("/esg-ratings", { symbol }, options); } /** * Get ESG benchmarks * @param year Optional year to get benchmarks for * @param options Optional parameters including abort signal and context * @returns Array of ESG benchmarks */ async getBenchmarks( year?: string, options?: { signal?: AbortSignal; context?: FMPContext; } ): Promise<ESGBenchmark[]> { return super.get<ESGBenchmark[]>( "/esg-benchmark", { year }, options ); } }

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/imbenrabi/Financial-Modeling-Prep-MCP-Server'

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