# QuantSet integrations

Canonical URL: https://quantset.dev/integrations
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

Pick the tool you use and copy its setup. Every setup below works with the sample key `mw_demo` on the sample tickers.

## AI assistants

### Claude

claude.ai and the desktop app. Sign-in: Sign in with OAuth.

1. Open Settings, then Connectors, and choose Add custom connector.
2. Enter the server address below.
3. On the QuantSet page that opens, paste your key or continue with the sandbox.
4. In a new chat, turn the connector on from the tools menu and ask a question.

Server address:

```
https://api.quantset.dev/mcp
```

[Claude setup guide](https://quantset.dev/docs/agents#claude)

### Claude Code

One command in the terminal. Sign-in: OAuth or a key.

1. Add the server.
2. Type /mcp inside Claude Code and sign in from the browser.
3. Optional: add the research skills for DCF, comps and screening.

Terminal:

```
claude mcp add --transport http quantset https://api.quantset.dev/mcp
```

Add the skills:

```
claude plugin marketplace add quantset/skills
```

[Claude Code setup guide](https://quantset.dev/docs/agents#claude-code)

### ChatGPT

Custom connector in developer mode. Sign-in: Sign in with OAuth.

1. In Settings, open Apps or Connectors, then Advanced settings, and turn on Developer mode.
2. Choose Create, enter the server address below and pick OAuth.
3. On the QuantSet page that opens, paste your key or continue with the sandbox.
4. In a chat, add the connector as a source and ask a question.

Server address:

```
https://api.quantset.dev/mcp
```

[ChatGPT setup guide](https://quantset.dev/docs/agents#chatgpt)

### Codex

Two commands in the terminal. Sign-in: OAuth or a key.

1. Add the server, then sign in from the browser.
2. codex mcp list shows it once it is connected.

Terminal:

```
codex mcp add quantset --url https://api.quantset.dev/mcp
codex mcp login quantset
```

[Codex setup guide](https://quantset.dev/docs/agents#codex)

### Cursor

One entry in .cursor/mcp.json. Sign-in: OAuth or a key.

1. Add the server to .cursor/mcp.json in your project, or to the global file in your home folder.
2. With only the address, Cursor asks you to sign in. With the header, it uses the key.

.cursor/mcp.json:

```
{
  "mcpServers": {
    "quantset": {
      "url": "https://api.quantset.dev/mcp",
      "headers": {
        "Authorization": "Bearer mw_demo"
      }
    }
  }
}
```

[Cursor setup guide](https://quantset.dev/docs/agents#cursor)

### VS Code

One entry in .vscode/mcp.json. Sign-in: OAuth or a key.

1. Add the server to .vscode/mcp.json.
2. Leave out headers to sign in from the browser instead.

.vscode/mcp.json:

```
{
  "servers": {
    "quantset": {
      "type": "http",
      "url": "https://api.quantset.dev/mcp",
      "headers": {
        "Authorization": "Bearer mw_demo"
      }
    }
  }
}
```

[VS Code setup guide](https://quantset.dev/docs/agents#vscode)

### Gemini CLI

One command for the current project. Sign-in: A key.

1. Add the server.
2. gemini mcp list shows it.

Terminal:

```
gemini mcp add --transport http quantset https://api.quantset.dev/mcp \
  --header "Authorization: Bearer mw_demo"
```

[Gemini CLI setup guide](https://quantset.dev/docs/agents#gemini)

### Windsurf

One entry in mcp_config.json. Sign-in: A key.

1. Add the server to ~/.codeium/windsurf/mcp_config.json.
2. Refresh the server list in Cascade. Windsurf names the field serverUrl, not url.

mcp_config.json:

```
{
  "mcpServers": {
    "quantset": {
      "serverUrl": "https://api.quantset.dev/mcp",
      "headers": {
        "Authorization": "Bearer mw_demo"
      }
    }
  }
}
```

[Windsurf setup guide](https://quantset.dev/docs/agents#windsurf)

### Any MCP client

Plain HTTP, no session to keep. Sign-in: A key.

1. Point the client at the server address.
2. Each call is one request. This one lists the tools.

Terminal:

```
curl "https://api.quantset.dev/mcp" \
  -H "Authorization: Bearer mw_demo" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'
```

[Bring your own agent](https://quantset.dev/docs/agents#own-agent)

## Agent frameworks

### LangChain and LangGraph

Ready-made tools for a LangGraph agent. Sign-in: A key, or the sample key.

1. Install the client with the LangChain extra.
2. Pass the tools to your agent.

Terminal:

```
pip install "quantset[langchain]"
```

python:

```
from quantset.tools import langchain_tools

tools = langchain_tools()  # reads QUANTSET_API_KEY, or uses the sample key
```

[Python client guide](https://quantset.dev/docs/integrations/sdks)

### CrewAI

Ready-made tools for a crew. Sign-in: A key, or the sample key.

1. Install the client with the CrewAI extra.
2. Give the tools to the agents that need market data.

Terminal:

```
pip install "quantset[crewai]"
```

python:

```
from quantset.tools import crewai_tools

tools = crewai_tools()
```

[Python client guide](https://quantset.dev/docs/integrations/sdks)

### PydanticAI, AutoGen and OpenAI Agents SDK

Eight typed Python functions. Sign-in: A key, or the sample key.

1. Install the client.
2. Register the functions as tools in any framework that accepts typed Python functions.

Terminal:

```
pip install quantset
```

python:

```
from quantset.tools import build_agent_functions

tools = build_agent_functions()
```

[Python client guide](https://quantset.dev/docs/integrations/sdks)

### Vercel AI SDK and Mastra

Tool definitions for TypeScript agents. Sign-in: A key, or the sample key.

1. Install the client.
2. Pass the tools to generateText or streamText.

Terminal:

```
npm install quantset
```

typescript:

```
import { generateText } from "ai";
import { createQuantsetTools } from "quantset/tools";

const { text } = await generateText({
  model,
  tools: createQuantsetTools(),
  prompt: "Which ETFs hold the most NVDA?",
});
```

[JavaScript client guide](https://quantset.dev/docs/integrations/sdks)

## SDKs and API

### Python

pip install, then one line per dataset. Sign-in: A key, or the sample key.

1. Install the client.
2. Call a dataset. The sample key works on the sample tickers.

Terminal:

```
pip install quantset
```

python:

```
import quantset as qs

page = qs.prices("NVDA", limit=5)
for bar in page.data:
    print(bar["date"], bar["close"], bar["quote_currency"])
```

[Python client guide](https://quantset.dev/docs/integrations/sdks)

### JavaScript and TypeScript

A typed client for Node, Bun, Deno and edge runtimes. Sign-in: A key, or the sample key.

1. Install the client.
2. Call a dataset.

Terminal:

```
npm install quantset
```

javascript:

```
import { Quantset } from "quantset";

const client = new Quantset();
const page = await client.prices("NVDA", { limit: 5 });
for (const bar of page.data) console.log(bar.date, bar.close, bar.quote_currency);
```

[JavaScript client guide](https://quantset.dev/docs/integrations/sdks)

### One-command setup

Signs you in and writes the config for Claude, Cursor and Codex. Sign-in: Sign in from the browser.

1. Run the command in your project.
2. Approve the sign-in in the browser.

Terminal:

```
npx quantset init
```

[Quickstart](https://quantset.dev/docs/quickstart)

### Research skills

Seven skills, including DCF, comps and screening. Sign-in: Uses your connected server or key.

1. Add the skills to your coding agent.
2. Ask for a DCF, a comps table or a screen.

Terminal:

```
npx skills add quantset/skills
```

[AI agents guide](https://quantset.dev/docs/agents)

### REST

One request, JSON or CSV back. Sign-in: A key, or the sample key.

1. Send a GET request with your key in a header.
2. Add format=csv to any dataset for a table.

Terminal:

```
curl "https://api.quantset.dev/api/v1/prices?ticker=NVDA&limit=5" -H "X-API-Key: mw_demo"
```

[Quickstart](https://quantset.dev/docs/quickstart)

### OpenAPI and Postman

The full contract as one file. Sign-in: No key needed.

1. Download the OpenAPI 3.1 file.
2. Import it into Postman or a client generator.

OpenAPI file:

```
https://api.quantset.dev/openapi.json?download=true
```

[OpenAPI guide](https://quantset.dev/docs/integrations/openapi)

## Spreadsheets

### Google Sheets

One formula for quotes, statements, funds and screens. Sign-in: A key in the script.

1. Open Extensions, then Apps Script, and paste the function from the guide.
2. Type the formula in any cell.

Google Sheets:

```
=QUANTSET("quotes", "us:NVDA,us:AAPL,global:SHEL.L")
```

[Spreadsheet guide](https://quantset.dev/docs/spreadsheets)

### Excel

Power Query reads any dataset as a table. Sign-in: A key in the address.

1. Open Data, then From Web.
2. Paste a dataset address that ends in format=csv, with your key.
3. Refresh the table whenever you want new rows.

Dataset address:

```
https://api.quantset.dev/api/v1/screener?min_market_cap_b=10&limit=20&format=csv
```

[Spreadsheet guide](https://quantset.dev/docs/spreadsheets)

### Notion

Templates for a portfolio tracker and a DCF. Sign-in: A key.

1. Open the templates guide.
2. Follow the Notion steps there.

[Templates guide](https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates)

## Automation

### Webhooks

Signed events for filings, earnings and insider trades. Sign-in: A key.

1. Register an HTTPS address and the events you want.
2. Verify the signature on each delivery.

Terminal:

```
curl -X POST "https://api.quantset.dev/api/v1/webhooks" \
  -H "X-API-Key: $QUANTSET_API_KEY" -H 'Content-Type: application/json' \
  --data '{"url":"https://receiver.example/quantset","events":["filing.created"]}'
```

[Webhook guide](https://quantset.dev/docs/integrations/webhooks)

### n8n, Make and Pipedream

Any workflow tool with an HTTP request step. Sign-in: A key in a header.

1. Add an HTTP request step.
2. Set the address to a dataset and send your key in the X-API-Key header.
3. Use format=csv if the next step wants a table.

Request:

```
GET https://api.quantset.dev/api/v1/quotes?tickers=us:NVDA,us:AAPL
X-API-Key: $QUANTSET_API_KEY
```

[Quickstart](https://quantset.dev/docs/quickstart)

### Agent accounts

Let an agent create its own key with your email. Sign-in: No key needed to start.

1. The agent posts the owner's email.
2. It gets a key back and can make its first read.

Terminal:

```
curl -X POST "https://api.quantset.dev/api/v1/agent/signup" \
  -H 'Content-Type: application/json' \
  --data '{"email":"you@example.com","agent_name":"Research agent"}'
```

[Agent account guide](https://quantset.dev/docs/integrations/agent-onboarding)

## Switching

### Yahoo Finance and yfinance

A documented API in place of scraping. Sign-in: A key, or the sample key.

1. Install the client.
2. Swap the calls. The guide maps each yfinance call to its replacement.

python:

```
import quantset as qs

bars = qs.prices("NVDA", start="2015-01-01").to_df()
```

[yfinance switching guide](https://quantset.dev/docs/switch/yfinance)

### GOOGLEFINANCE

Sheet formulas that keep working. Sign-in: A key in the script.

1. Add the QUANTSET function to your sheet.
2. Replace each GOOGLEFINANCE formula. The guide lists the equivalents.

Google Sheets:

```
=QUANTSET("quotes", "us:NVDA,us:AAPL")
```

[GOOGLEFINANCE switching guide](https://quantset.dev/docs/switch/googlefinance)

### Financial Modeling Prep

Change the host and the key, keep your code. Sign-in: A key in the address.

1. Replace the host in your existing requests.
2. Keep the same paths and parameters.

Before and after:

```
Before  https://financialmodelingprep.com/stable/income-statement?symbol=NVDA&apikey=FMP_KEY
After   https://api.quantset.dev/api/v1/fmp/stable/income-statement?symbol=NVDA&apikey=mw_demo
```

[FMP switching guide](https://quantset.dev/docs/switch/fmp)

