Skip to main content
These docs are written for people and for the AI agents that work for them. An agent can list every page, read any page as Markdown, search the docs over MCP and call the data API’s 164 tools.

What the site serves to agents

The menu in each page’s header copies the page as Markdown, opens it in Claude, ChatGPT, Perplexity or Grok, or connects the docs search to Cursor, VS Code, Windsurf or Devin. API pages also download the spec.

Three MCP servers

The docs search server, https://docs.darvas.app/mcp, answers questions about the docs: which endpoint gives insider sales, what a field means, how pagination works. It needs no key. The data API server, https://api.darvas.app/mcp, answers with data: a company’s income statements, a fund’s holdings, last week’s 8-Ks. It needs your API key. Each message counts against your account’s rate limit as one request, and a tool call that returns data costs one credit, however many rows it holds. It lists 10 tools by default; search_data_tools finds the other 154 by keyword, and ?mode=full lists all 164. The account server, https://darvas.app/mcp, is for apps that connect by sign-in, such as Claude and ChatGPT. It uses your Darvas account through OAuth 2.1 instead of an API key. An agent that writes code against the API uses the docs server. An agent that answers questions with numbers uses the data API server, and the docs server when it needs to know which tool to call.

Which endpoint answers which question

Every read and search endpoint is also a tool on the data API server, so the two tables below name all 164 tools. Pass the endpoint’s parameters as arguments.

Discovery and catalog tools

These lists tell an agent which tickers, types and series a dataset takes before it asks for data. Each costs at most 1 credit per call, and 0 when the list is empty. The catalog resources hold the series tables for 0 credits. When an agent does not know a tool’s name, search_data_tools on the MCP server finds it by keyword or domain. Market coverage gives the history and update time of each dataset.

How an agent uses the docs

  1. Read /llms.txt to find the page of what it needs. Endpoint pages are grouped by dataset: financial statements, filings, insider trades, institutional holdings, prices, macro and the rest.
  2. Read that page’s .md. It names the endpoint, every parameter with its type and limits, and an example answer.
  3. Call https://api.darvas.app/v1 with the key in X-API-KEY. Companies go by ticker or cik, and dates are YYYY-MM-DD.
  4. Follow next_page_url until the answer has none. See Pagination.
  5. On 429, wait the seconds in Retry-After. Other errors carry a stable error code, listed in Errors.

Add the docs to your agent

Install the skill, so the agent knows what Darvas offers before it reads a page:
Connect the docs search to Claude Code:
Connect the docs search to Codex in ~/.codex/config.toml:
Connect the data API, with your key. MCP server has the same setup for Codex, Cursor, VS Code, Windsurf and Devin.
Or give the agent the index and let it read on: