SSI Stock (Vietnamese Market Data) MCP server

Provides a bridge to the SSI Financial Connector Data API for accessing Vietnamese stock market data, including securities listings, stock information, index components, OHLC data, price movements, and foreign trading activities.
Back to servers
Setup instructions
Provider
Chung Phan
Release date
May 17, 2025
Stats
15 stars

The SSI Stock Data MCP Server is a Model Context Protocol server that provides Vietnamese stock intraday data. It allows AI assistants and tools to programmatically query stock information using the SSI FastConnect API, making it easier to access financial market data through natural language requests.

Installation

Prerequisites

  • Python 3.12 or higher
  • Docker (optional, for containerized deployment)
  • SSI FastConnect service credentials (consumer ID and secret)

Installing via Smithery

The easiest way to install SSI Stock MCP Server for Claude Desktop is via Smithery:

npx -y @smithery/cli install @archiephan78/ssi-stock-mcp-server --client claude

Local Installation

To install and run locally:

# Clone the repository
git clone https://github.com/archiephan78/ssi-stock-mcp-server.git

Configure the environment variables:

# Set environment variables (see .env.sample)
FC_DATA_URL=https://fc-data.ssi.com.vn/ #optional
FC_DATA_AUTH_TYPE=Bearer #optional
FC_DATA_CONSUMER_ID=your_consumer_id 
FC_DATA_CONSUMER_SECRET=your_consumer_secret  

Claude Desktop Configuration

Add the server configuration to your Claude Desktop configuration file:

{
  "mcpServers": {
    "SSIStockMCPServer": {
      "command": "uv",
      "args": ["--directory", "full-path", "run", "ssi-stock-mcp-server"],
      "env": {
        "FC_DATA_CONSUMER_ID": "id",
        "FC_DATA_CONSUMER_SECRET": "id",
        "FC_DATA_URL": "https://fc-data.ssi.com.vn/",
        "FC_DATA_AUTH_TYPE": "Bearer"
      }
    }
  }
}

After configuration, restart Claude Desktop to load the new settings.

Docker Installation

You can also run the server using Docker:

docker run -p 8000:8000 \
           -e FC_DATA_CONSUMER_ID=id \
           -e FC_DATA_CONSUMER_SECRET=id \
           ghcr.io/archiephan78/ssi-stock-mcp-server

For Claude Desktop with Docker:

{
  "mcpServers": {
    "SSIStockMCPServer": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e", "FC_DATA_CONSUMER_ID",
        "-e", "FC_DATA_CONSUMER_SECRET",
        "ghcr.io/archiephan78/ssi-stock-mcp-server:latest"
      ],
      "env": {
        "FC_DATA_CONSUMER_ID": "your_username",
        "FC_DATA_CONSUMER_SECRET": "your_password"
      }
    }
  }
}

Usage

Once installed and configured, you can interact with the MCP server through Claude using natural language queries. For example:

  • "chỉ số VN30 hôm nay có gì hot không"
  • "get volume room ngoại đã bán của SSI hôm nay"
  • "so sánh vol của SSI với VND trong ngày hôm nay"
  • "total matchvol của SSI trong 1 tuần trở lại đây"

Available Tools

The MCP server provides several tools to query stock data:

  • get_securities_list(): Get a list of stock codes by exchange
  • get_securities_details(): Retrieve detailed information about a stock code
  • get_index_components(): Get the list of stock codes in an index basket
  • get_index_list(): Retrieve the list of index codes
  • get_daily_ohlc(): Get open, high, low, close, volume data for a stock by day
  • get_intraday_ohlc(): Get open, high, low, close, volume data for a stock by tick
  • get_daily_index(): Retrieve daily trading results of composite indices
  • get_stock_price(): Get daily trading information for a stock code

These tools allow Claude to retrieve and analyze Vietnamese stock market data based on your queries, enabling natural language interactions with financial information.

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 "ssi-stock-mcp-server" '{"command":"uv","args":["--directory","{INSTALLATION_PATH}","run","ssi-stock-mcp-server"],"env":{"FC_DATA_CONSUMER_ID":"{YOUR_CONSUMER_ID}","FC_DATA_CONSUMER_SECRET":"{YOUR_CONSUMER_SECRET}","FC_DATA_URL":"https://fc-data.ssi.com.vn/","FC_DATA_AUTH_TYPE":"Bearer"}}'

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": {
        "ssi-stock-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "{INSTALLATION_PATH}",
                "run",
                "ssi-stock-mcp-server"
            ],
            "env": {
                "FC_DATA_CONSUMER_ID": "{YOUR_CONSUMER_ID}",
                "FC_DATA_CONSUMER_SECRET": "{YOUR_CONSUMER_SECRET}",
                "FC_DATA_URL": "https://fc-data.ssi.com.vn/",
                "FC_DATA_AUTH_TYPE": "Bearer"
            }
        }
    }
}

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": {
        "ssi-stock-mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "{INSTALLATION_PATH}",
                "run",
                "ssi-stock-mcp-server"
            ],
            "env": {
                "FC_DATA_CONSUMER_ID": "{YOUR_CONSUMER_ID}",
                "FC_DATA_CONSUMER_SECRET": "{YOUR_CONSUMER_SECRET}",
                "FC_DATA_URL": "https://fc-data.ssi.com.vn/",
                "FC_DATA_AUTH_TYPE": "Bearer"
            }
        }
    }
}

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