VNStock MCP Server
About
The unofficial MCP server for the vnstock package, designed and tested for Claude Desktop
Details
- Author
- gahoccode
- Downloads
- 257
- Categories
- Other
Jump to
- Dual Transport Support: auto-detects STDIO or HTTP 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
VNStock MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install from PyPI by running uvx vnstock-mcp@latest. Then add one of the provided configurations to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json). For remote access, connect to a hosted instance via a Streamable HTTP endpoint at /mcp.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"vnstock mcp server": {
"vnstock-mcp": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
}
McpServers
{
"vnstock-mcp": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
The 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 consistent item, item_id, and period-column output. Financial labels are provider-native; use item_id for stable metric identification.
- Company information uses Company(source="VCI") because ratio_summary and trading_stats are VCI-specific compatibility methods.
- Mutual fund data uses the top-level Fund adapter.
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_USERNAME with your actual username in Methods 2 and 6
- Replace USERNAME and PATH_TO with 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 uvx is in your PATH. If not, add ~/.local/bin to 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:
- vnstock GitHub repository
- vnstock 4.x release notes
- vnstock architecture documentation
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



