Skip to content
Documentation/Guides & tools

Connect an AI agent to Webcite MCP

Add the hosted Webcite MCP server to Claude, ChatGPT, Codex, Cursor, VS Code or Gemini CLI with OAuth sign-in or an API key, or run the local npm server.

Last updated

Markdown

Connect Webcite to your AI agent

Hosted connections sign in with OAuth, so the commands below carry no key. The client opens a browser to sign in with your Webcite account (sign up first). A client without OAuth needs a Webcite API key from the API Keys page; the key examples use webcite_your_api_key_here. Replace it with your key, and never paste a key into a chat.

Each line was checked against that client's own documentation on 25 November 2026.

Claude Code (docs):

bash
claude mcp add --transport http webcite https://api.webcite.co/mcp

Then run /mcp in Claude Code, or claude mcp login webcite in your shell, to sign in.

Claude (web and desktop) (help): Customize, Connectors, + Add, Add custom connector. Paste https://api.webcite.co/mcp and sign in when Claude asks. On Team and Enterprise plans an Owner adds it under Organization settings, Connectors, Add, Custom, Web. No Node, key or config file is needed. webcite.co/connect walks through the same steps.

ChatGPT (docs): open ChatGPT Plugins, select the plus button, then Add custom MCP server. Enter https://api.webcite.co/mcp as the URL (Webcite signs in with OAuth), configure authentication, select I understand and want to continue, then Create as a plugin, and sign in with your Webcite account. Account and workspace policies decide whether custom MCP servers are available.

Codex (docs):

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.

Gemini CLI (docs):

bash
gemini mcp add --transport http webcite https://api.webcite.co/mcp

Then run /mcp auth webcite in Gemini CLI to sign in. In settings.json the entry is "webcite": { "httpUrl": "https://api.webcite.co/mcp" } under mcpServers.

Cursor (docs): add to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project, and sign in when Cursor asks:

json
{
  "mcpServers": {
    "webcite": {
      "url": "https://api.webcite.co/mcp"
    }
  }
}

VS Code (docs):

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 mcpServers in .mcp.json at the workspace root, or under servers in .vscode/mcp.json. VS Code opens a browser to sign in on first use. An install link that opens the server in VS Code for review: vscode:mcp/install.

Devin Desktop (formerly Windsurf) (docs): add to .devin/mcp_config.json in your project, or ~/.config/devin/mcp_config.json:

json
{
  "mcpServers": {
    "webcite": {
      "url": "https://api.webcite.co/mcp",
      "transport": "http"
    }
  }
}

Smaller tool list. Append ?profile=core to the URL (for example https://api.webcite.co/mcp?profile=core) for 16 tools that still cover every job, or ?read_only=true for the read-only tools. The npm package documentation lists the tools in each profile.

Hosted with an API key (headless agents and clients without OAuth). Send the key as Authorization: Bearer <key> (an x-api-key header also works). Claude Code:

bash
claude mcp add --transport http webcite https://api.webcite.co/mcp --header "Authorization: Bearer webcite_your_api_key_here"

In Claude (web and desktop), choose No sign in and add a request header named Authorization with the value Bearer webcite_your_api_key_here. In Cursor, add "headers": { "Authorization": "Bearer webcite_your_api_key_here" } to the entry above. In VS Code, keep the key out of the file with an input variable:

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}" }
    }
  }
}

Hosted MCP

The hosted endpoint is:

text
https://api.webcite.co/mcp

Sign in with OAuth where the client supports it. Use an API key in a client without OAuth.

  1. OAuth sign-in (ChatGPT, Claude, MCP Inspector and other OAuth clients): add the URL, choose OAuth or Sign in, sign in to Webcite and select Allow. Discovery starts from the WWW-Authenticate header on the 401 and https://api.webcite.co/.well-known/oauth-protected-resource/mcp. The connection appears on your API keys page; delete it there to disconnect.
  2. API key: create a key on the API Keys page and send it as an Authorization: Bearer YOUR_API_KEY (or x-api-key) header.

Both bill the same account credits. The steps for each client are in Connect Webcite to your AI agent. The connect page has the same steps. The public profile exposes the API workflows plus webcite_guide; mcp-health reports the live version and toolCount (34 public tools verified 9 October 2026). Call the guide first to select a workflow. Tool availability does not override backend feature gates.

Tools added since the earlier 22-tool profile:

ToolWhat it doesCredits
upload_urlStores the original bytes of a file at a public HTTPS URL and returns asset_id, asset_url and source_version_id. No caller credentials or headers are forwarded. Private addresses, unsafe redirects, unsupported formats, empty files and files over 100 MB are refused.0
review_documentStarts a durable full review of every material claim in an uploaded file and returns a job_id. Repeating the same input reuses its job without a new charge.Per claim after the review starts
get_document_review_jobPolls a review job. queued, running, waiting_parse and waiting_review are nonterminal; complete, partial_coverage, credits_exhausted and failed are terminal.0
get_document_reviewReads a saved review by review_id: claims, uncovered passages, rejected candidates and reviewer dispositions. No new analysis.0
get_review_source_spanReads the exact text of one saved uncovered source passage.0
record_review_nonclaimRecords an explicit assessment, with rationale and reviewer identity, that an exact heading, table title or navigation passage contains no factual assertion. Inspect the passage with get_review_source_span first; a structural role alone never proves nonclaim.0
revise_document_claim_analysisRe-evaluates one settled saved claim from retained snippets under the current evidence policy, without new research or model calls. Preserves the original result and credit receipt.0
get_credit_balanceReads remaining, used and total credits for the authenticated account. No billing change is made.0

Local MCP

The npm server webcite-mcp-server runs on your machine and authenticates with an API key. Set the environment variable before starting the server:

bash
export WEBCITE_API_KEY="YOUR_API_KEY"
npx -y webcite-mcp-server

For Claude Code, with the key available in its environment:

bash
claude mcp add webcite -- npx -y webcite-mcp-server

See the package documentation for profiles and configuration. Context and evaluation tools are opt-in and have separate backend requirements.

The tutorial on reading PDFs with citations in Claude Code, Claude and Cursor has copyable setup for each client and a worked prompt. MCP tools for AI agents compares search and verification servers.

Upload through MCP

Hosted upload_file takes a filename and base64 content, up to 20 MB. It cannot read a path on your computer. File paths are supported only by a local MCP server with access to that file.

For a file at a public HTTPS URL, use upload_url. It stores the original bytes (up to 100 MB, free) and returns an owned asset_id, asset_url and source_version_id. It cannot read a local file or a private chat attachment. After an uncertain failure, keep the receipt instead of repeating the upload automatically.

Review a whole document

To check every material claim in an uploaded file, call review_document with its existing asset_id. Separate verify_claim calls can omit claims and lose saved progress. The tool returns a job_id immediately. Poll get_document_review_job until the job reaches complete, partial_coverage, credits_exhausted or failed, then page through claims and uncovered source passages with get_document_review.

A completed job means processing finished; it does not prove complete source coverage. Report full coverage only when the saved review has coverage_complete: true and no pending claims. To read a balance on request, or after an unresolved credit refusal, call get_credit_balance. A saved review of a public document is on the document review page.

HTTP tools and automation

An agent or workflow builder can use OpenAPI to inspect operation names, parameters, and schemas. Configure API-key authentication with header name x-api-key. Handle non-success status codes and preserve source IDs in later steps.

For documentation context, start with llms.txt. Every page has a .md equivalent; llms-full.txt combines the guides and reference. These formats provide direct access to the text, without requiring a JavaScript browser.

MCP evidence and saved results

The hosted API uses evidence policy 13. The hosted MCP connector runs the current release; mcp-health reports its live version and tool count. A local MCP server runs the npm package version you installed. Inspect response metadata and the installed client version; saved responses retain their original policy and evidence time.

  • verify_claim and verify_claim_stream return readable text plus structuredContent containing the complete backend response, including optional evidence and real IDs.
  • verify_batch returns { results: [...] }, preserving item records, binding details and feedback tokens.
  • get_citation preserves the API { data: ... } envelope and adds normalized citations and optional final_response from stored metadata (or a verdict-bearing legacy object). The snapshot preserves final evidence before credit settlement, so usage fields can differ from the final response. It does not generate a replacement verdict.
  • Text labels unknown and heuristic scores; 0 is displayed as zero. Generated snippets are not presented as publisher quotations.
  • Streaming requires a full result followed by done. Partial groups, missing completion, backend errors and accounting errors return partial_result, not raw events presented as a finished verification. Successful stream usage is preserved as stream_usage.

Malformed stored JSON or response shapes return invalid_api_output. Check isError before consuming structured evidence. The package changes do not alter backend feature gates or prove that historical sources were read.

Choose the MCP profile

The default profile is public, which exposes the public API workflows and webcite_guide. A local core profile exposes a smaller tool set. Context and evaluation tools are opt-in and require their corresponding backend access and feature gates. Check the actual tool catalog and /mcp-health before configuring a client; a package version alone does not prove the serving backend supports every workflow.

Public tool catalog (34 public tools verified 9 October 2026; check mcp-health for the live version and tool count):

WorkflowTools
Guidance and balancewebcite_guide, get_credit_balance
Web verificationverify_claim, verify_claim_stream, search_sources, verify_batch, verify_feedback
Saved citationslist_citations, get_citation, get_source_preview
File intake and extractionupload_file, upload_url, extract_document, extract_pages, extract_figures, classify_document, document_gaps
Full document reviewreview_document, get_document_review_job, get_document_review, get_review_source_span, record_review_nonclaim, revise_document_claim_analysis
Document answers and numbersask_document, get_ask_result, analyze_document, analyze_conflicts, accuracy_report, verify_numeric_claim
Retained sources and OCRregister_source, publish_text_representation, get_latest_representation, read_source_unit, prepare_ocr_rescue

Folder workflow boundaries

Account-scoped context workflows file owned source versions into folders, analyze those sources, then query or generate against the retained analysis. They use /api/v2/folders/{id}/query and /api/v2/folders/{id}/generate, not a universal /api/v2/context prefix. Use account authentication or a scoped app key with permission to the selected folder; consult the enabled server contract for those routes. Public-profile MCP tools do not grant account access.

Folder citations identify retained source units and spans. Memory notes and generated retrieval queries are context, not evidence. A source not searched or not yet analyzed remains a coverage gap, not proof that a fact is absent. Generation is a separate 5-credit operation on a completed billable result; preserve its actual usage receipt and any unresolved billing state. Do not resubmit after an uncertain outcome merely because no draft reached your client.

On servers implementing retained generation navigation, evidence_refs selects retained source-unit hints. At the default retrieval limit of 16, hints and their mandatory core context keep a separate 32,000-character allowance. Let N be the number of validated retained navigation queries, or 1 when none are present; at most 16 queries are accepted. Ordinary retrieval has a 32,000 × N character allowance after that core, for at most 32,000 + 32,000 × N retained-text characters. Without references, the text limit is 32,000 × N characters. Ordinary retrieval admits up to 16 × N anchors, with a physical-unit allowance of 48 × N plus three times the reference count. The mandatory hint stage keeps its original 48 plus three times the reference count allowance. Each passage contributes at most 2,000 UTF-16 characters. With no navigation queries, N is 1 and the original allowances remain unchanged. These limits do not bound the complete prompt or provider tokens, or guarantee full source coverage. retrieval.evidence_refs reports requested and offered counts and omissions with source_unit_id and a reason: retained_text_budget, physical_unit_budget or quote_outside_passage_window. Offered hints are not necessarily grounded; omissions do not prove absence.

Implicit generation scope includes every authorized filed source in the resolved folder scope; an explicit source_version_ids request is limited to 100 sources. Each preparation, freshness recheck and external folder-answer publication has a 100 MiB (104,857,600-byte) stored-inventory allowance shared across its source representations. It is checked before inventory payload loading and subsequent provider dispatch. Initial preparation checks it before credit reservation; a later freshness recheck can follow an earlier reservation. Exceeding it returns HTTP 409 folder_generation_read_budget_exhausted, without clipping the source scope or returning a missing-evidence answer. Passing the guard does not establish exhaustive coverage. Confirm the serving contract before using these account workflows.

Connect an AI agent to Webcite MCP | API docs | Webcite