Skip to main content
Glama
Status Invest MCP Server

Status Invest MCP Server

by newerton

Status Invest - MCP 服务器

该项目是模型上下文协议 (MCP) 生态系统的一部分,提供与外部 API 交互和管理特定领域模型的工具。它旨在演示如何构建具有外部 API 集成和数据验证功能的 MCP 服务器。

目录

Related MCP server: Mercado Livre MCP Server

特征

  • get-acoes :获取基本股票信息。

  • get-indicadores :获取详细的股票指标信息。

  • get-acoes-datas-pagamento :获取股票支付日期。

  • 使用Zod进行输入验证。

  • 使用fetch (基础设施层)与 Status Invest API 集成。

建筑学

该项目遵循受领域驱动设计(DDD)模式启发的分层架构:

  • 域( src/domain ):定义表示数据结构的接口和类型(例如StatusInvest )。

  • 基础设施( src/infrastructure ):实现外部服务,例如StatusInvestApiService ,负责对 Status Invest API 进行 HTTP 调用。

  • 应用程序( src/application ):包含StatusInvestService中的业务逻辑,用于处理和格式化来自基础设施的数据。

  • 接口( src/interface ):包括在 MCP 服务器中注册工具、定义验证模式并返回结果的控制器( StatusInvestToolsController )。

  • 入口点( src/main.ts ):初始化McpServer ,配置传输( StdioServerTransport ),实例化服务和控制器,并开始监听stdio 。

文件夹结构如下:

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

安装

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

VSCode 中的 MCP 服务器配置

  1. 按Ctrl+Shift+P并选择“MCP:列出服务器”

  2. 选择“股票”,然后选择“启动服务器”

VSCode 中的 MCP 服务器输出

  1. 按Ctrl+Shift+P并选择“MCP:列出服务器”

  2. 选择“股票”,然后选择“显示输出”

贡献

欢迎提交 Pull 请求!欢迎随时提出问题并讨论改进。

执照

该项目根据 MIT 许可证进行授权 - 有关详细信息,请参阅LICENSE文件。

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

    ActivityNo data
    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
      18
      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.
      96 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
      1,099 PyPI
      7
      AGPL 3.0