Skip to main content

vn-value-screener

An MCP server that screens every company listed in Vietnam (HOSE, HNX, UPCOM) with Benjamin Graham's tests and the measurable parts of Philip Fisher's 15 points. Ask your AI assistant "which Vietnamese companies pass Graham's defensive test?" or "walk me through FPT's numbers", and it calls these tools instead of guessing.

Not investment advice. A screen finds companies worth reading about. It cannot tell you what to buy or sell, and the figures can be wrong. Check them against the audited annual report.

Tools

Tool What it returns
screen_stocks(list_name="all", limit=10) Six lists over every liquid non-financial company. defensive: Graham's defensive investor, ≥ 6 of 7 tests. qarp: quality at a reasonable price. enterprising: Graham's enterprising investor, 6 of 6. net_net: price below ⅔ of net current assets. leaders: quality ≥ 7 of 8, at any price. fisher: Fisher growth candidates. Each list gives its rule, how many companies pass, and the top limit with price, P/E, P/B, Graham number, scores and growth.
analyze_company(ticker) One company's worksheet: valuation, every Graham and quality test with the numbers behind it, ten years of figures, the last eight quarters, warnings about the data, and Fisher's questions that numbers can't answer. Works for illiquid tickers too.
explain_method() Every test and threshold, how each was adapted to Vietnam, and the method's known blind spots. Needs no network.

All three are read-only. Prices are in VND, *_bn fields in billions of VND, and ratios are fractions (0.15 = 15%). Banks, insurers, brokers and lenders are left out: Graham's tests don't fit their balance sheets.

Install

You need uv. uvx downloads and runs the package; nothing else to set up.

Claude Code

claude mcp add vn-value-screener -- uvx vn-value-screener

Claude Desktop, Cursor, and other clients (claude_desktop_config.json, .cursor/mcp.json, …):

{
  "mcpServers": {
    "vn-value-screener": {
      "command": "uvx",
      "args": ["vn-value-screener"]
    }
  }
}

If the client can't find uvx, put its full path in command. To find it, run which uvx on macOS/Linux or where uvx on Windows.

First call of the day: about a minute

The first call downloads what the screens need (about 55 requests to VNDirect, one per second). Later calls take seconds. Every response is stored as it arrives, so if your client gives up waiting, just ask again: the next call picks up where the last one stopped.

Options, as arguments or environment variables:

Argument Environment variable Default
--data-dir PATH VN_VALUE_SCREENER_DATA_DIR $XDG_CACHE_HOME/vn-value-screener, else ~/.cache/vn-value-screener
--offline VN_VALUE_SCREENER_OFFLINE=1 off: answer only from stored data, never call the API

The store is a SQLite file. It holds a few tens of MB after a day's screen and grows as you look at more companies.

Data source

Everything comes from VNDirect's finfo API (api-finfo.vndirect.com.vn): the public, undocumented API behind VNDirect's website. This project is not affiliated with VNDirect, and the API may change or stop without notice.

The client stays polite on purpose:

  • It names itself in its User-Agent (vn-value-screener/<version> (+repository URL)).
  • It waits at least one second between requests and backs off on errors.
  • It stores every response, so the same question isn't asked twice in a day.

If VNDirect objects, this project will slow down or stop. It will never disguise its traffic.

Method, briefly

explain_method has the full list. In short:

  • Graham defensive (The Intelligent Investor, ch. 14), adapted to Vietnam:
    • sales ≥ 1,000 bn VND;
    • current ratio ≥ 2;
    • profit in each of 10 years;
    • cash dividends in each of 10 years (Graham asked 20, but HOSE opened in 2000);
    • earnings up a third;
    • P/E ≤ 15 on 3-year earnings;
    • P/B ≤ 1.5, or P/E × P/B ≤ 22.5.
  • Graham enterprising (ch. 15) and net-nets (price below ⅔ of net current assets).
  • Eight quality signals for the parts of Fisher's points that numbers can show:
    • sales growth and steadiness;
    • operating margin above the median, and margins holding;
    • ROE ≥ 15%;
    • cash conversion;
    • little dilution;
    • conservative debt.
  • EPS for every year uses today's share count. Vietnamese companies pay many stock dividends, and reported EPS hides that growth.

Known blind spots:

  • Shares held by subsidiaries and preferred shares count as ordinary shares.
  • Profit is struck before the bonus-and-welfare fund and staff share schemes.
  • One-off gains stay inside profit.
  • Cyclical companies pass the growth tests at the top of their cycle.

Read the company's filings before trusting any result.

Development

uv sync
uv run pytest -q          # synthetic data, no network
uv run ruff check .
uv run vn-value-screener --help

src/vn_value_screener/engine/ is the screening engine. It is copied unchanged from the author's research tool, and scripts/sync-engine.sh refreshes it. The MCP layer is service.py (tool logic, JSON shapes) and server.py (the MCP server).

Releases: push a tag vX.Y.Z that matches the version in pyproject.toml, src/vn_value_screener/__init__.py and server.json. The release workflow then tests the code, publishes it to PyPI (trusted publishing), and publishes server.json to the MCP Registry.

License

MIT. See LICENSE.

Metadata

Release files for vn-value-screener 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vn-value-screener 0.1.0
File Size Uploaded Provenance Actions
vn_value_screener-0.1.0.tar.gz 114.8 kB With provenance Details for vn_value_screener-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vn-value-screener 0.1.0
File Interpreter ABI Platform Actions
vn_value_screener-0.1.0-py3-none-any.whl Python 3 none any Details for vn_value_screener-0.1.0-py3-none-any.whl

Total release size: 176.3 kB

Release files / vn_value_screener-0.1.0.tar.gz

Download URL vn_value_screener-0.1.0.tar.gz
Size 114.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c4ae9db8c8efedb439c29a1c3c734dcbcddb0fac6580b966a519ee544ade1e83
BLAKE2b-256 checksum
How to use checksums
0ede2d6bb86680f4dad279430d16756dfcdfac1223b51baf4bba1f3ba7340a7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vn_value_screener-0.1.0-py3-none-any.whl

Download URL vn_value_screener-0.1.0-py3-none-any.whl
Size 61.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bb65d950bebee010cf804653a26427f7ebb821402831ded8967549e57843529
BLAKE2b-256 checksum
How to use checksums
f0c920f7675459cf36a404daa84c21f7d2cb7575894a2d59d90990aedf2f8387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for vn-value-screener 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vn_value_screener-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page