Status Invest MCP server

Provides a bridge to the Status Invest platform for accessing Brazilian stock market data, including payment dates, stock information, and financial indicators through an API that scrapes the website.
Back to servers
Setup instructions
Provider
Newerton Vargas de Araujo
Release date
Apr 27, 2025
Language
TypeScript
Stats
3 stars

This project enables you to query stock market data from Status Invest API through an MCP (Model Context Protocol) server integration. It provides tools for fetching stock information, indicators, and payment dates with built-in validation.

Installation

To get started with the Status Invest MCP server:

git clone [email protected]:newerton/mcp-status-invest.git
cd mcp-status-invest
npm install
npm run build

Setting Up in VSCode

Configure the Server

  1. Press Ctrl+Shift+P and select "MCP: List Servers"
  2. Select "stocks" and then "Start Server"

View Server Output

  1. Press Ctrl+Shift+P and select "MCP: List Servers"
  2. Select "stocks" and then "Show Output"

Available Tools

The server provides three main tools to interact with Status Invest API:

Get Basic Stock Information

Use the get-acoes tool to fetch basic information about stocks.

Get Detailed Stock Indicators

The get-indicadores tool provides comprehensive stock indicator information.

Get Payment Dates

Use get-acoes-datas-pagamento to retrieve stock payment dates.

Features

  • Input validation using Zod ensures proper data formatting
  • Integration with Status Invest API via fetch requests
  • Organized architecture following Domain-Driven Design patterns
  • All requests are processed through a layered structure:
    • Domain layer defines data structures
    • Infrastructure layer handles API communication
    • Application layer processes business logic
    • Interface layer manages tools registration and validation

Each tool accepts specific parameters and returns formatted stock market data that can be used within your MCP workflows.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "stocks" '{"command":"node","args":["build/main.js"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "stocks": {
            "command": "node",
            "args": [
                "build/main.js"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "stocks": {
            "command": "node",
            "args": [
                "build/main.js"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later