Skip to main content

Vietnamese Stock Market MCP Server - FastMCP 2.0

Project description

VNStock MCP Server

The unofficial MCP server that provides all the features of vnstock, allowing you to interact with your Claude Desktop using natural language processing capabilities.

Features

  • 🚀 Direct MCP Integration: Connect to your vnstock MCP server via stdio
  • 🤖 LLM-Powered: Natural language processing with Anthropic Claude
  • 💬 Interactive CLI: Rich terminal interface with auto-completion and history
  • 📊 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

1. Installation

# Clone or navigate to your vnstock-mcp directory
cd vnstock-mcp

# Install uv if you don't have it
pip install uv

# Install dependencies with uv (recommended)
uv sync

# Or install with pip (legacy method)
pip install -e .

2. Run the Server

# Start the MCP server (recommended with uv)
uv run python server.py

# Or with python directly
python server.py

Usage Examples

> What's the current price of VNM stock?
> Show me FPT's financial statements for 2024
> Get the latest SJC gold price
> What are HPG's key financial ratios?
> Show me dividend history for ACB stock

Project Structure

vnstock-mcp/
├── pyproject.toml          # Project configuration and dependencies
├── server.py               # Main MCP server
├── client.py               # CLI client (if exists)
├── tests/                  # Test suite
├── .venv/                  # uv-managed virtual environment
├── uv.lock                 # Dependency lock file
└── README.md               # This file

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):

{
  "mcpServers": {
    "vnstock-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/vnstock-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

Note: Replace /ABSOLUTE/PATH/TO/vnstock-mcp with the actual absolute path to your project directory.

License

This project is part of the vnstock-mcp ecosystem. See the main repository for licensing information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnstock_mcp-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnstock_mcp-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file vnstock_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: vnstock_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for vnstock_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 841d8320b4241e164a12787a5eded22928054de8b19a657b8e04e9c4cc30849d
MD5 97b41e39e1e77edc67925da248eca1f8
BLAKE2b-256 43624b2f3317271dfc7a9deb46e23b335de8f32ae948727059fbaf6fd01fb509

See more details on using hashes here.

File details

Details for the file vnstock_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vnstock_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3159bc2876a98e5a0986bea72202722c3705a421f019bb7c845b7b35bd08efee
MD5 c96de80ce4c3b5e0031d3b5a40e257ef
BLAKE2b-256 8a5c495db47821702efc810e714897c4383846ffb67a5cf0b394edc49a189049

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page