Skip to main content
Glama
Status Invest MCP Server

Status Invest MCP Server

by newerton

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 as StatusInvestApiService, responsible for making HTTP calls to the Status Invest API.

  • Application (src/application): Contains business logic in StatusInvestService, 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 the McpServer, 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 config

Installation

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

MCP Server Configuration in VSCode

  1. Press Ctrl+Shift+P and select "MCP: List Servers"

  2. Select "stocks" and then "Start Server"

MCP Server Output in VSCode

  1. Press Ctrl+Shift+P and select "MCP: List Servers"

  2. 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 tools
analise-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

    B3.4/5.0

    Scored across 8 tools

    Disambiguation4/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    8 tools is well-scoped for a financial data server covering stocks, REITs, and portfolio analysis, avoiding both bloat and insufficiency.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Investidor10 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 Zod
      1
      5
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Mercado 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 Zod
      1
      16
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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 npm
      73
      ISC
    • A
      license
      B
      quality
      B
      maintenance
      A Model Context Protocol (MCP) server for agentic retrieval of financial data from Yahoo Finance, enabling stock information, historical data, analyst data, and more.
      71
      125 PyPI
      7
      AGPL 3.0