finbud-data
AI & Developer centric financial data API
claude mcp add --transport stdio glaksmono-finbud-data-mcp npx -y finbud-data
How to use
Finbud Data is a TypeScript/JavaScript client library that provides convenient access to the Finbud Data REST API from server-side code. It exposes a structured API surface (e.g., client.analysts.retrieveEstimates) and includes TypeScript definitions for request params and response shapes, enabling strong typing and editor hover documentation. To use it, install the package in your Node.js project, instantiate the client with optional API key and configuration, and call the API methods as you would with any typed client. The library handles API communication, error translation into specific API error classes, and supports per-request or global configuration for retries and timeouts. It also offers utilities to access raw response data and to customize logging when needed.
Typical usage involves creating a FinbudData client with your API key (if required by the API), then invoking endpoint groups like analysts.retrieveEstimates with the necessary parameters. You can also inspect the TypeScript types (e.g., FinbudData.AnalystRetrieveEstimatesResponse) to ensure correct usage of request parameters and responses, and you can catch and inspect APIError subclasses to handle specific HTTP status codes gracefully.
How to install
Prerequisites:
- Node.js (recommended LTS) and npm or yarn installed.
- Initialize your project (if you haven't already):
mkdir my-project && cd my-project
npm init -y
- Install the Finbud Data library:
npm install finbud-data
- (Optional) If you plan to run the API client with a specific API key, set it in your environment or pass it to the client constructor:
export FINBUD_DATA_API_KEY=your_api_key_here
- Example usage in a project file (e.g., index.js or index.ts):
import FinbudData from 'finbud-data';
const client = new FinbudData({
apiKey: process.env['FINBUD_DATA_API_KEY'] // optional, default may be omitted
});
async function main() {
const response = await client.analysts.retrieveEstimates('REPLACE_ME');
console.log(response);
}
main();
- Optional: adjust retries and timeouts via the client options as described in the library's documentation.
Additional notes
Notes and tips:
- The library includes TypeScript definitions for request parameters and responses to ensure type-safe usage.
- You can access raw fetch responses via .asResponse() or .withResponse() for custom parsing or streaming scenarios.
- If the API encounters errors, the library throws APIError subclasses corresponding to HTTP status codes (e.g., BadRequestError, AuthenticationError, NotFoundError, etc.).
- Retries are enabled by default for a subset of errors (e.g., network issues, 408, 429, server errors). You can customize maxRetries globally or per-request.
- You can configure logging with the logLevel option or provide a custom logger instance.
- If you need to call undocumented endpoints, use the generic client methods (get, post, etc.) with proper caution, as these are not part of the typed API surface.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.