Status Invest MCP Server
The Status Invest MCP Server enables querying and managing stock market data through external API integration.
Fetch basic stock information: Use
get-acoescommand with an array of stock symbols (e.g.,["PETR4", "VALE3"]).Fetch detailed stock indicator information: Use
get-indicadorescommand with an array of stock symbols (e.g.,["ITUB4", "BBDC4"]).Fetch stock payment dates: Use
get-acoes-datas-pagamentocommand with stock symbols and date range (e.g.,{"stock": ["PETR4"], "initialDate": "2023-01-01", "finalDate": "2023-12-31"}).
Input validation is enforced using Zod and JSON Schema to ensure data integrity.
Used for input validation in the MCP server, ensuring data sent to the Status Invest API is properly formatted
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Status Invest MCP Server get stock indicators for PETR4"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Status Invest - MCP Server
This project is part of the Model Context Protocol (MCP) ecosystem and provides tools to interact with external APIs and manage specific domain models. It is designed to demonstrate how to build an MCP server with external API integration and data validation.
Table of Contents
Related MCP server: Mercado Livre MCP Server
Features
get-acoes: Fetch basic stock information.
get-indicadores: Fetch detailed stock indicator information.
get-acoes-datas-pagamento: Fetch stock payment dates.
Input validation using Zod.
Integration with the Status Invest API using
fetch(infrastructure layer).
Architecture
The project follows a layered architecture inspired by Domain-Driven Design (DDD) patterns:
Domain (
src/domain): Defines interfaces and types that represent data structures (e.g.,StatusInvest).Infrastructure (
src/infrastructure): Implements external services, such asStatusInvestApiService, responsible for making HTTP calls to the Status Invest API.Application (
src/application): Contains business logic inStatusInvestService, which processes and formats data from the infrastructure.Interface (
src/interface): Includes controllers (StatusInvestToolsController) that register tools in the MCP server, define validation schemas, and return results.Entry Point (
src/main.ts): Initializes theMcpServer, configures the transport (StdioServerTransport), instantiates services and controllers, and starts listening on stdio.
The folder structure is as follows:
src/
├── domain/
│ └── models/ # Domain interfaces
├── infrastructure/
│ └── services/ # External API implementations (Status Invest)
├── application/
│ └── services/ # Business logic and data formatting
├── interface/
│ └── controllers/ # MCP tool registration and validation
└── main.ts # Server entry point
build/ # Compiled JavaScript code
.vscode/ # Contains the mcp.json file, MCP Server configInstallation
git clone git@github.com:newerton/mcp-status-invest.git
cd mcp-status-invest
npm install
npm run buildMCP Server Configuration in VSCode
Press
Ctrl+Shift+Pand select "MCP: List Servers"Select "stocks" and then "Start Server"
MCP Server Output in VSCode
Press
Ctrl+Shift+Pand select "MCP: List Servers"Select "stocks" and then "Show Output"
Contribution
Pull requests are welcome! Feel free to open issues and discuss improvements.
License
This project is licensed under the MIT license - see the LICENSE file for details.
Available Tools
8 toolsanalise-carteiraB
Análise completa de carteira com rebalanceamento multifatorial
Inputs: stocks (required), orderCost (required), totalAmount (required), strategy.
get-acoesC
Buscar informações básicas de ações
Inputs: stocks (required).
get-acoes-datas-pagamentoC
Buscar datas de pagamento de ações
Inputs: finalDate (required), initialDate (required), stocks.
get-fiagrosA
Buscar indicadores fundamentalistas de FIAgros (Fundos de Investimento nas Cadeias Produtivas Agroindustriais)
Inputs: tickers (required).
get-fii-infraB
Buscar indicadores fundamentalistas de FII-Infra (Fundos de Investimento em Infraestrutura)
Inputs: tickers (required).
get-fiisB
Buscar indicadores fundamentalistas de FIIs (Fundos Imobiliários)
Inputs: tickers (required).
get-fundos-imobiliariosA
Buscar indicadores de FIIs, FIAgros e FII-Infra automaticamente. A tool identifica o tipo de cada ticker e retorna os dados consolidados. Use esta tool para buscar múltiplos tickers sem se preocupar com a classificação.
Inputs: tickers (required).
get-indicadoresB
Buscar informações de indicadores de ações
Inputs: stocks (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools target distinct asset types or operations (stocks vs REITs vs portfolio analysis), but get-fundos-imobiliarios consolidates three specific tools (get-fiis, get-fii-infra, get-fiagros), creating potential confusion about which to use.
Tool names are mostly hyphenated lowercase with a 'get-' prefix, but 'analise-carteira' breaks the pattern and 'get-fundos-imobiliarios' uses a longer descriptive phrase, resulting in mixed consistency.
8 tools is well-scoped for a financial data server covering stocks, REITs, and portfolio analysis, avoiding both bloat and insufficiency.
Covers core read operations (basic info, indicators, payment dates, portfolio analysis) for the main asset classes. Minor gaps like lack of historical data or search, but adequate for its purpose.
Maintenance
Related MCP Connectors
MCP server for Financial Modeling Prep API with 250+ financial data tools
brapi.dev MCP — Brazilian stock + crypto + ETF quotes.
Official Intrinio MCP server. US stock prices, options and fundamentals for AI agents.
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Related MCP Servers
- AlicenseBqualityCmaintenanceInvestidor10 MCP Server: A Model Context Protocol (MCP) server for interacting with the Status Invest API. Provides tools for fetching stock data and indicators, with a layered architecture and data validation using Zod15MIT
- AlicenseCqualityBmaintenanceMercado Livre MCP Server: A Model Context Protocol (MCP) server for interacting with the Mercado Livre. Provides tools for fetching product data, such as prices and availability, with a layered architecture and data validation using Zod116MIT
- AlicenseNot gradedqualityDmaintenanceA production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript. Provides a complete layered architecture pattern, working example implementation, and comprehensive developer infrastructure to connect AI assistants with external APIs and data sources.78 npm73ISC
- AlicenseBqualityBmaintenanceA Model Context Protocol (MCP) server for agentic retrieval of financial data from Yahoo Finance, enabling stock information, historical data, analyst data, and more.71125 PyPI7AGPL 3.0