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.
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
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
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.
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"
}
}
}
}
Once installed and configured, you can interact with the MCP server through Claude using natural language queries. For example:
The MCP server provides several tools to query stock data:
These tools allow Claude to retrieve and analyze Vietnamese stock market data based on your queries, enabling natural language interactions with financial information.
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.
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.
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"
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. 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