logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-financial-data-query

Facilitates immediate retrieval of equity market metrics via the Status Invest external service interface, encompassing stock valuation levels, analytical aggregates, and scheduled payout dates.

Author

mcp-financial-data-query logo

newerton

MIT License

Quick Info

GitHub GitHub Stars 3
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

apiapisstockinvest apistatus investapis http
# Status Invest Integration Module for MCP This utility module belongs to the Model Context Protocol (MCP) framework, providing streamlined mechanisms to interface with external data endpoints and enforce domain-specific data structures. It is engineered to illustrate the construction of an MCP server incorporating third-party API connectivity and robust data schema validation.
A specialized connector enabling MCP mechanisms to interrogate financial market intelligence, such as current share valuations, key performance indicators, and dividend disbursement schedules, leveraging the Status Invest data feed. Status Invest - MCP Server

Operational Capabilities

  • fetch-securities: Obtain fundamental metadata pertaining to designated equity instruments.
  • retrieve-metrics: Secure comprehensive details regarding calculated investment performance metrics.
  • query-payout-schedules: Retrieve chronological records for scheduled corporate payments to shareholders.
  • Schema integrity enforcement utilizing the Zod library.
  • Abstraction layer interfacing with the Status Invest platform via native fetch operations (part of the service infrastructure).

Structural Blueprint

The system adheres to a layered computational structure, drawing inspiration from Domain-Driven Design (DDD) methodologies:

  • Domain Layer (src/domain): Establishes abstract definitions and type specifications modeling the resultant data (e.g., StatusInvest data shapes).

  • Infrastructure Layer (src/infrastructure): Houses concrete implementations for external dependencies, notably the StatusInvestApiService, which manages all remote Hypertext Transfer Protocol (HTTP) communications with the Status Invest backend.

  • Application Layer (src/application): Orchestrates the core operational sequencing within StatusInvestService, focusing on data transformation and refinement sourced from the infrastructure.

  • Interface Layer (src/interface): Comprises the necessary execution controllers (StatusInvestToolsController) responsible for registering operational tools within the MCP environment, defining input validation constraints, and formatting the final output payload.

  • Bootstrap File (src/main.ts): The primary initialization routine. It orchestrates the McpServer setup, configures the standard I/O transport mechanism (StdioServerTransport), instantiates all required services and controllers, and activates the listening process over the standardized input/output streams.

The module directory layout is organized as follows:

src/ ├── domain/ │ └── models/ # Definitions of domain-specific types ├── infrastructure/ │ └── services/ # Implementations connecting to external endpoints (Status Invest) ├── application/ │ └── services/ # Business logic handlers and data normalization routines ├── interface/ │ └── controllers/ # MCP tool registration logic and schema definition points └── main.ts # Server bootstrap and lifecycle management build/ # Transpiled JavaScript artifacts .vscode/ # Configuration directory, including MCP server launch profiles

Deployment Procedure

bash git clone git@github.com:newerton/mcp-status-invest.git cd mcp-status-invest npm install npm run build

VSCode Integration Setup for MCP Server

  1. Initiate the command palette (Ctrl+Shift+P) and choose the "MCP: List Servers" command.
  2. Select the configuration labeled "stocks" and subsequently execute "Start Server".

Monitoring MCP Server Activity in VSCode

  1. Initiate the command palette (Ctrl+Shift+P) and choose the "MCP: List Servers" command.
  2. Select the configuration labeled "stocks" and subsequently choose "Show Output".

Collaborative Development

Contributions, via pull requests or the submission of new feature requests/issue reports, are highly encouraged for collaborative enhancement.

Software Licensing

This implementation is distributed under the terms of the MIT License. Refer to the official LICENSE document for comprehensive legal specifications.

WIKIPEDIA: XMLHttpRequest (XHR) is an API in the form of a JavaScript object whose methods transmit HTTP requests from a web browser to a web server. The methods allow a browser-based application to send requests to the server after page loading is complete, and receive information back. XMLHttpRequest is a component of Ajax programming. Prior to Ajax, hyperlinks and form submissions were the primary mechanisms for interacting with the server, often replacing the current page with another one.

== History == The concept behind XMLHttpRequest was conceived in 2000 by the developers of Microsoft Outlook. The concept was then implemented within the Internet Explorer 5 browser (1999). However, the original syntax did not use the XMLHttpRequest identifier. Instead, the developers used the identifiers ActiveXObject("Msxml2.XMLHTTP") and ActiveXObject("Microsoft.XMLHTTP"). As of Internet Explorer 7 (2006), all browsers support the XMLHttpRequest identifier. The XMLHttpRequest identifier is now the de facto standard in all the major browsers, including Mozilla's Gecko layout engine (2002), Safari 1.2 (2004) and Opera 8.0 (2005).

=== Standards === The World Wide Web Consortium (W3C) published a Working Draft specification for the XMLHttpRequest object on April 5, 2006. On February 25, 2008, the W3C published the Working Draft Level 2 specification. Level 2 added methods to monitor event progress, allow cross-site requests, and handle byte streams. At the end of 2011, the Level 2 specification was absorbed into the original specification. At the end of 2012, the WHATWG took over development and maintains a living document using Web IDL.

== Usage == Generally, sending a request with XMLHttpRequest has several programming steps.

Create an XMLHttpRequest object by calling a constructor: Call the "open" method to specify the request type, identify the relevant resource, and select synchronous or asynchronous operation: For an asynchronous request, set a listener that will be notified when the request's state changes: Initiate the request by calling the "send" method: Respond to state changes in the event listener. If the server sends response data, by default it is captured in the "responseText" property. When the object stops processing the response, it changes to state 4, the "done" state. Aside from these general steps, XMLHttpRequest has many options to control how the request is sent and how the response is processed. Custom header fields can be added to the request to indicate how the server should fulfill it, and data can be uploaded to the server by providing it in the "send" call. The response can be parsed from the JSON format into a readily usable JavaScript object, or processed gradually as it arrives rather than waiting for the entire text. The request can be aborted prematurely or set to fail if not completed in a specified amount of time.

== Cross-domain requests ==

In the early development of the World Wide Web, it was found possible to brea

See Also

`