About VNStock MCP Server
VNStock MCP Server brings Vietnamese market data from vnstock to MCP clients. It is for users querying stocks and funds in natural language, and supports both local STDIO and remote HTTP access to financial statements, ratios, company information, and fund data.
Key features
- 01Retrieve financial statements and ratios
- 02Query company information and trading stats
- 03Access mutual fund data
- 04Support STDIO and HTTP transports
- 05Parse Vietnamese stock symbols and date formats
- 06Present tables, charts, and visualizations
Use cases
- 01Look up a company's annual statements
- 02Review key financial ratios
- 03Retrieve company or mutual fund information
MCP support
The MCP server exposes vnstock data capabilities to clients over local STDIO or remote Streamable HTTP. Its remote endpoint uses the `/mcp` path.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEThe unofficial MCP server that provides Vietnamese stock market financial data, allowing you to interact with your Claude Desktop using natural language processing capabilities.
Features
- Dual Transport Support: Auto-detects STDIO (local) or HTTP (cloud) transport
- Cloud Deployment: One-click deploy to Render.com free tier
- LLM-Powered: Natural language processing with Anthropic Claude
- Beautiful Output: Formatted tables, charts, and data visualization
- Tool Management: Automatic tool discovery and validation
- Smart Parsing: Vietnamese stock symbol and date format support
- Error Handling: Robust error recovery and user-friendly messages
Quick Start
# Install from PyPI and run directly
uvx vnstock-mcp@latest
Usage Examples
> Show me FPT's income statements for 2024
> What are HPG's key financial ratios?
Data Sources
This server uses vnstock 4.x public adapters:
- Financial statements and ratios use
Finance(source="KBS")for consistentitem,item_id, and period-column output. Financial labels are provider-native; useitem_idfor stable metric identification. - Company information uses
Company(source="VCI")becauseratio_summaryandtrading_statsare VCI-specific compatibility methods. - Mutual fund data uses the top-level
Fundadapter.
Financial statement and ratio responses are returned as metric rows with period columns:
item | item_id | 2025 | 2024 | 2023 | 2022
The reports company info type is not supported in vnstock 4.x and has been removed.
Claude Desktop Integration
To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Method 1: Using uvx (if PATH configured)
{
"mcpServers": {
"vnstock-mcp": {
"command": "uvx",
"args": ["vnstock-mcp"]
}
}
}
Method 2: Using uvx (if PATH NOT configured)
{
"mcpServers": {
"vnstock-mcp": {
"command": "/Users/YOUR_USERNAME/.local/bin/uvx",
"args": ["vnstock-mcp"]
}
}
}
Method 3: Development from source (script path)
{
"mcpServers": {
"vnstock-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/USERNAME/PATH_TO/src/vnstock_mcp",
"run",
"server.py"
]
}
}
}
Method 4: Development from source (Python module)
{
"mcpServers": {
"vnstock-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/USERNAME/PATH_TO/vnstock-mcp",
"run",
"python",
"-m",
"vnstock_mcp.server"
]
}
}
}
Method 5: Docker MCP Gateway (simple)
{
"mcpServers": {
"MCP_DOCKER": {
"type": "stdio",
"command": "docker",
"args": ["mcp", "gateway", "run"]
}
}
}
Method 6: Docker MCP Gateway (explicit catalog/registry)
{
"mcpServers": {
"mcp-toolkit-gateway": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/var/run/docker.sock:/var/run/docker.sock",
"-v",
"/Users/YOUR_USERNAME/.docker/mcp:/mcp",
"docker/mcp-gateway",
"--catalog=/mcp/catalogs/vnstock.yaml",
"--config=/mcp/config.yaml",
"--registry=/mcp/registry.yaml",
"--transport=stdio"
]
}
}
}
Note:
- Replace
YOUR_USERNAMEwith your actual username in Methods 2 and 6 - Replace
USERNAMEandPATH_TOwith your actual username and path in Methods 3 and 4 - Methods 5 and 6 require Docker Desktop with the MCP Toolkit enabled. See Setup Guide for details
- Method 5 lets Docker manage catalogs automatically; Method 6 pins specific catalog, config, and registry files
- After quitting and restarting Claude Desktop, if it still can't detect the mcp server, check if
uvxis in your PATH. If not, add~/.local/binto your PATH:
# For zsh (macOS default)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
# For bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Claude Code Integration
claude mcp add vnstock-mcp --transport http https://your-app.onrender.com/mcp
Remote MCP Server
Connect to a hosted VNStock MCP server deployed on Render (or any cloud provider) without installing anything locally. The remote server exposes a Streamable HTTP endpoint at /mcp.
Use the server URL https://your-app.onrender.com/mcp when adding the remote MCP server in each client's GUI. Guides per client:
- Claude Desktop — Add via Settings > MCP Servers
- Claude Code (CLI) —
claude mcp add vnstock-mcp https://your-app.onrender.com/mcp --transport http - Perplexity — Follow Adding Custom Remote Connectors
Note: Replace your-app.onrender.com with your actual Render deployment URL and add /mcp at the end.
You can verify the server is running with a custom health endpoint /health like this :
curl https://your-app.onrender.com/health
When the service is running from a tagged git checkout, the version field in /health reports that tag. For packaged or deployed environments without .git, it falls back to the installed package metadata or VNSTOCK_MCP_VERSION.
Development
Setup the docker mcp gateway Setup Guide
Project structure, Docker builds, and deployment guides, see Development Guide.
Tips on fixing common issues include Quick diagonostic commands,verifying catalogs, registry, validating Claude Config, Authentication and Permission Troubleshooting Guide
License
This project is wrapper of the vnstock library. See the main repository and documentation for licensing and API information:
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.