VNStock Agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@VNStock Agentget the historical prices for VNM stock this year"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
VNStock Agent
MCP server and CLI for Vietnamese stock market data. Integrates vnstock (hỗ trợ tác giả gốc thinh-vu) with AI tools via Model Context Protocol (MCP).
Features
21 MCP tools for AI assistants (Claude, GPT, etc.)
22 CLI commands for terminal use
3 MCP transports: stdio, SSE, Streamable HTTP
Vietnamese stocks, forex, crypto, world indices, mutual funds
Historical prices, financials, company info, trading data
Related MCP server: ashare-mcp
Quick Start
Install
pip install vnstock-agentOr from source:
git clone https://github.com/anhnd2102/vnstock-mcp.git
cd vnstock-mcp
pip install -e .Set API Key
export VNSTOCK_API_KEY=your_api_key_hereGet a free API key at vnstocks.com/login.
CLI Usage
# Stock history
vnstock-agent history VNM --start 2025-01-01 --end 2025-03-31
# Company overview
vnstock-agent overview FPT
# Financial statements
vnstock-agent balance-sheet VCB --period quarter
vnstock-agent income VCB --period annual
vnstock-agent cashflow VCB
vnstock-agent ratio VCB
# Market data
vnstock-agent symbols # All listed symbols
vnstock-agent group --group VN30 # VN30 stocks
vnstock-agent board "VNM,FPT,ACB,VCB" # Price board
vnstock-agent industries # ICB industries
# Company details
vnstock-agent shareholders FPT
vnstock-agent officers FPT
vnstock-agent news FPT
vnstock-agent events FPT
# Intraday & depth
vnstock-agent intraday VNM --page-size 200
# Global markets
vnstock-agent fx EURUSD --start 2025-01-01
vnstock-agent crypto BTC --start 2025-01-01
vnstock-agent index DJI --start 2025-01-01
# Mutual funds
vnstock-agent funds
# JSON output
vnstock-agent --format json history VNMMCP Server
stdio (for Claude Desktop, Cursor, etc.)
Add to your MCP client config:
{
"mcpServers": {
"vnstock": {
"command": "vnstock-mcp",
"env": {
"VNSTOCK_API_KEY": "your_api_key_here"
}
}
}
}SSE Transport
VNSTOCK_MCP_TRANSPORT=sse VNSTOCK_MCP_PORT=8000 vnstock-mcpStreamable HTTP Transport
VNSTOCK_MCP_TRANSPORT=http VNSTOCK_MCP_PORT=8000 vnstock-mcpOr via CLI:
vnstock-agent serve --transport sse --port 8000
vnstock-agent serve --transport http --port 8000MCP Tools
Tool | Description |
| Historical OHLCV price data |
| Today's intraday trading data |
| Order book / bid-ask data |
| Company overview info |
| Major shareholders |
| Management team |
| Company news |
| Dividends, AGM, etc. |
| Balance sheet |
| Income statement |
| Cash flow statement |
| P/E, P/B, ROE, ROA, etc. |
| All listed symbols |
| VN30, HNX30, etc. |
| By exchange (HOSE, HNX, UPCOM) |
| ICB industry classification |
| Real-time price board |
| Forex historical data |
| Cryptocurrency data |
| World market indices |
| Mutual fund listing |
Environment Variables
Variable | Default | Description |
| (none) | VNStock API key |
|
| Default data source (VCI, KBS) |
|
| MCP transport (stdio, sse, http) |
|
| Server host |
|
| Server port |
Development
git clone https://github.com/anhnd2102/vnstock-mcp.git
cd vnstock-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
# Run tests
pytest
# Lint
ruff check src/License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceVietnamese Financial Markets Data MCP Server providing real-time quotes, financials, and technical indicators.Last updated35401MIT
- FlicenseBqualityBmaintenanceAn MCP server that exposes all 23 baostock data endpoints as tools, including K-line, quarterly financials, performance reports, dividends, industry classification, index constituents, and macro series.Last updated242
- Alicense-qualityCmaintenanceUnofficial MCP server providing Vietnamese stock market financial data, enabling natural language interaction with Claude Desktop.Last updatedMIT
- AlicenseBqualityDmaintenanceMCP server for Vietnamese stock market data, enabling AI assistants to access stock history, financials, company info, and global market data through 21 tools.Last updated2199MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Twelve Data MCP: real-time & historical market data (stocks, crypto, forex, etc).
Alpaca MCP — real-time US stock market data via the Alpaca Market Data API
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anhnd2102/vnstock-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server