{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["connect-mcp"]},"type":"markdown"},"seo":{"title":"Use the docs with AI","description":"Give AI assistants accurate context on the Vanda API through llms.txt, Markdown pages and the docs MCP server, with a starter prompt for coding assistants.","llmstxt":{"title":"Vanda API documentation","description":"Data on investor positioning, capital flows, retail activity and macroeconomics across global markets, available through a REST API, the vanda-api Python SDK, an MCP connector for AI assistants and Snowflake Marketplace.","details":{"content":"- Base URL: https://api.vanda-analytics.com. Authenticate with an API key in the `x-api-key` header, or a bearer token from POST /auth/basic.\n- Python SDK: `pip install vanda-api`, then `VandaClient()` reads VANDA_SDK_KEY (or VANDA_LOGIN_EMAIL and VANDA_PASSWORD) from the environment.\n- Find series through each API's /catalog endpoint first. Use series_label for Positioning, slug for Flow and series_id for Macro.\n- Positioning values are z-scores against each series' own history; crowded_long at +1.5 sigma or above, crowded_short at -1.5 sigma or below.\n- Flow units differ between series; read `unit` on every value and never combine different units.\n- Normalisation and transformations apply to one series per request.\n"},"sections":[{"title":"Get started","description":"Products, quickstart, authentication and the concepts needed to read the data correctly.","includeFiles":["guides/index.md","guides/quickstart.md","guides/authentication.md","guides/concepts.md","guides/ai.md"]},{"title":"API reference","description":"Every endpoint, parameter and response field of the public Vanda APIs.","includeFiles":["apis/positioning/vanda-msvc-positioning.json","apis/flow/vanda-msvc-flow.json","apis/macro/vanda-msvc-macro.json","apis/series/vanda-msvc-series.json","apis/aggregates/vanda-msvc-aggregates.json","apis/auth/vanda-msvc-auth.json"]},{"title":"AI assistants (Vanda MCP)","description":"Connect Claude, ChatGPT or another assistant to Vanda data and research.","includeFiles":["ai-assistants/index.md","ai-assistants/vandatrack.md","ai-assistants/vandaxasset.md","ai-assistants/vandainsights.md","ai-assistants/vandamacro.md"]},{"title":"Snowflake","description":"Vanda datasets on Snowflake Marketplace, with views, metrics and example SQL.","includeFiles":["snowflake/index.md","snowflake/us-equities-daily.md","snowflake/us-equities-intraday.md","snowflake/vandaxasset.md"]},{"title":"About","includeFiles":["release-notes.md","policy-of-independence.md"]}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"use-the-docs-with-ai","__idx":0},"children":["Use the docs with AI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These docs are written to be read by AI assistants as well as people. There are two separate ways to bring Vanda into an assistant, and it helps to know which one you need:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"You want to…"},"children":["You want to…"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Use"},"children":["Use"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Needs code?"},"children":["Needs code?"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Write code"]}," against the Vanda API with help from an assistant"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The docs: llms.txt, Markdown pages and the docs MCP server, below"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ask questions about Vanda data"]}," in plain English and get answers, tables and charts"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ai-assistants"},"children":["Vanda MCP"]},", the data connector for Claude, ChatGPT and others"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"give-an-assistant-the-docs","__idx":1},"children":["Give an assistant the docs"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["llms.txt."]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.vanda-analytics.com/llms.txt"},"children":["docs.vanda-analytics.com/llms.txt"]}," is a plain-text map of every page, grouped by topic. Paste the link into your assistant as a starting point."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Markdown pages."]}," Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".md"]}," to any docs address to get it as clean Markdown, for example ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.vanda-analytics.com/apis/positioning/vanda-msvc-positioning.md"},"children":["the Positioning reference"]},". Each API reference includes every endpoint, parameter and response field."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Copy and View."]}," The buttons at the top of each page copy it as Markdown or open the Markdown version."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-the-docs-mcp-server","__idx":2},"children":["Connect the docs MCP server"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The docs MCP server lets a coding assistant search these docs and look up APIs, endpoints and parameters for itself, instead of relying on what it remembers. It is read-only: it reads documentation and never calls the Vanda API or touches your data."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Server address:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"https://docs.vanda-analytics.com/mcp\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"ConnectMCP","attributes":{"placement":"bottom","alignment":"start","options":["cursor","vscode","claude","claude-code","codex","copy"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Claude Code, run:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"claude mcp add --transport http vanda-docs https://docs.vanda-analytics.com/mcp\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"starter-prompt-for-coding-assistants","__idx":3},"children":["Starter prompt for coding assistants"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Paste this at the start of a session, then describe what you want to build:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"text","header":{"controls":{"copy":{}}},"source":"I'm working with the Vanda Analytics API. Use the docs at\nhttps://docs.vanda-analytics.com/llms.txt (or the docs MCP server if connected)\nrather than memory. Follow these rules:\n- Use the vanda-api Python SDK (VandaClient). My API key is in the VANDA_SDK_KEY\n  environment variable; never ask me for it or print it.\n- Find series through the /catalog endpoints before querying. Use series_label\n  for Positioning, slug for Flow and series_id for Macro.\n- Request one positioning series per call when normalising or transforming.\n- Read the unit on every flow and macro value and never combine different units.\n- Follow pagination.has_next until every page is fetched.\n","lang":"text"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tips","__idx":4},"children":["Tips"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Never paste a key or password"]}," into an assistant. Tell it which environment variable holds the key."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ask it to check the catalog first."]}," Labels are easy to guess wrong, and the catalog also tells you each series' cadence and units."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Check its numbers against the platform."]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Copy API"]}," on a Vanda Analytics chart gives you the exact request behind it, a quick way to confirm the assistant is querying what you think."]}]}]},"headings":[{"value":"Use the docs with AI","id":"use-the-docs-with-ai","depth":1},{"value":"Give an assistant the docs","id":"give-an-assistant-the-docs","depth":2},{"value":"Connect the docs MCP server","id":"connect-the-docs-mcp-server","depth":2},{"value":"Starter prompt for coding assistants","id":"starter-prompt-for-coding-assistants","depth":2},{"value":"Tips","id":"tips","depth":2}],"frontmatter":{"seo":{"title":"Use the docs with AI","description":"Give AI assistants accurate context on the Vanda API through llms.txt, Markdown pages and the docs MCP server, with a starter prompt for coding assistants."}},"lastModified":"2026-11-26T21:58:54.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/ai","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}