# Use Webcite in Codex and VS Code: document and citation tools

Canonical URL: https://webcite.co/mcp/codex-and-vs-code | Last updated: 2026-11-25

In Codex, run `codex mcp add webcite --url https://api.webcite.co/mcp` and `codex mcp login webcite`. In VS Code, run `code --add-mcp` with the same URL and sign in on first use. Either agent then has 34 tools to read PDFs and spreadsheets, check claims against sources and quote the exact passage.

## Codex

```bash
codex mcp add webcite --url https://api.webcite.co/mcp
codex mcp login webcite
```

This writes `[mcp_servers.webcite]` with `url = "https://api.webcite.co/mcp"` to `~/.codex/config.toml`. In a terminal without a local browser, use `codex mcp login webcite --no-browser`. [Codex MCP docs](https://learn.chatgpt.com/docs/extend/mcp?surface=cli).

## VS Code

```bash
code --add-mcp '{"name":"webcite","type":"http","url":"https://api.webcite.co/mcp"}'
```

Or add `"webcite": { "type": "http", "url": "https://api.webcite.co/mcp" }` under `servers` in `.vscode/mcp.json`. VS Code opens a browser to sign in on first use. [VS Code MCP docs](https://code.visualstudio.com/docs/agents/reference/mcp-configuration).

## VS Code with an API key

An input variable keeps the key out of the file; VS Code asks for it once.

```json
{
  "inputs": [
    { "type": "promptString", "id": "webcite-api-key", "description": "Webcite API key", "password": true }
  ],
  "servers": {
    "webcite": {
      "type": "http",
      "url": "https://api.webcite.co/mcp",
      "headers": { "Authorization": "Bearer ${input:webcite-api-key}" }
    }
  }
}
```

For local files, use `"type": "stdio"` with `"command": "npx"`, `"args": ["-y", "webcite-mcp-server"]` and `"env": { "WEBCITE_API_KEY": "${input:webcite-api-key}" }`. Create the key on the [API keys page](https://webcite.co/api-keys).

## What the tools do

- Read a PDF, scan, image, spreadsheet or office file as Markdown, OCR included: `upload_url` or `upload_file`, then `extract_document`.
- Check a claim against web sources, with a verdict and the quoted passage from each source: `verify_claim`.
- Check that quotes appear in their sources: `verify_batch` and `get_source_preview`.
- Pull figures out of a document and find the ones that conflict: `extract_figures`, `analyze_document`, `analyze_conflicts`.

`webcite_guide` picks the workflow for a request and costs nothing. [All 34 tools by job](https://webcite.co/mcp).

## Prompts to start with

| Prompt | What came back |
| --- | --- |
| "Upload https://webcite.co/samples/bls-employment-situation-2026-10-summary-table-a.pdf with upload_url and give me summary table A with its headers." | The table came back as HTML with its two-row header and row groups kept, for 0.3981 credits. [Saved response](https://webcite.co/samples/doc-bls-table.json). |
| "Verify this claim: The Great Wall of China is visible from the Moon with the naked eye." | `verify_claim` came back `contradicted`: 4 of 6 sources contradicted the claim, each with the passage quoted, for 4 credits. [Saved response](https://webcite.co/samples/claim-great-wall.json). |
| "Upload https://webcite.co/samples/irs-form-w9-page-1.pdf with upload_url, extract it and list the form fields." | The page was read as a form into 45 elements with page positions; checkboxes came back as `[ ]` lines and blank fields as `___`, for 0.4966 credits. [Saved response](https://webcite.co/samples/doc-irs-w9.json). |

Each result is read from a saved response of the endpoint the tool calls, recorded on 24 November 2026.

Every call needs a Webcite account. The free plan includes 100 credits, renewing every 30 days while credits remain; [see pricing](https://webcite.co/pricing).

## A shorter tool list

Add `?profile=core` to the URL (`https://api.webcite.co/mcp?profile=core`) for 16 tools that still cover every job, or `?read_only=true` for only the read-only tools.

## Next

- [Connect an AI client](https://webcite.co/connect) has the Claude and ChatGPT steps and troubleshooting.
- [The MCP guide](https://webcite.co/api-docs/mcp) lists credits per tool.
- [Read PDFs with citations in Claude Code, Claude and Cursor](https://webcite.co/blog/claude-code-cursor-mcp-document-citations/) works through one document task end to end.

[Create a free account](https://webcite.co/signup)
