Web API MCP server
Connect coding agents and MCP clients to 25 Web API, research, extraction, official-source, and search tools over stateless Streamable HTTP.
POST /v1/mcpThe Web API is also an MCP server, so an agent can find and call data sources, read pages and, where the operator offers it, search Google through the tools its client already understands. It uses the same vitna_web_ key or org key as every other route, sent as a bearer token:
claude mcp add --transport http vitna https://web.vitna.ai/v1/mcp \
--header "Authorization: Bearer $VITNA_WEB_KEY"A client configured with JSON takes the same URL and header:
{ "mcpServers": { "vitna": { "type": "http", "url": "https://web.vitna.ai/v1/mcp", "headers": { "Authorization": "Bearer vitna_web_..." } } } }Connect to the API host itself. The website relay at /api/web does not forward /v1/mcp or MCP's headers. GET /v1/status reports the endpoint and the protocol versions it speaks in capabilities.mcp, and unauthenticated GET /.well-known/mcp.json, GET /.well-known/mcp/server.json (official MCP Registry 2025-12-11 schema), GET /.well-known/agent-card.json, GET /openapi.json, and GET /llms.txt expose the machine-readable schema and full tool catalog before signup.
| Tool | What it does | Route it calls |
|---|---|---|
find_sources | Ranks source capabilities for a task, each with its input schema and a working example | POST /v1/sources/find |
describe_source | A provider's contracts, or one capability's, with output schemas and terms | GET /v1/sources/:provider |
run_source | Calls one capability and returns its data with its source | POST /v1/sources/run |
read_page | Reads one public page as markdown or text, cut at 20,000 characters unless maxCharacters says otherwise; also accepts onlyMainContent, includeTags, excludeTags, highlights, question, extract, injection and redact | POST /v1/read |
batch_scrape | Reads up to 20 public pages in one call with shared reader, DOM filter, highlights, question, extract, injection and redact options; per-URL errors are isolated in errors | POST /v1/batch |
extract_data | Pulls fields from one page, up to 20 pages, or pages discovered from a starting URL, by selectors, a JSON Schema, a prompt (where a language model is configured), or a saved recipe; waits for the result | POST /v1/extract |
map_site | A site's URLs from its links and optionally its sitemaps, without reading them | POST /v1/map |
crawl_site | Starts a background crawl and returns its job id: 25 pages of 20,000 characters each, for up to 5 minutes, unless asked otherwise; accepts per-page DOM filters, highlights, question, extract, injection and redact | POST /v1/crawl |
get_crawl | A crawl's status and a slice of its pages, 25 at a time and without their text unless includeContent asks | GET /v1/jobs/:id |
cancel_crawl | Stops a queued or running crawl; pages already read stay readable | DELETE /v1/jobs/:id |
research_web | Runs bounded multi-page research across search hits or supplied urls, with optional followLinks and structured schema output; waits for the result | POST /v1/research |
list_open_roles | A company's open roles from its Greenhouse, Lever, Ashby, Workable, Recruitee or Personio board: the first 25 postings without their text unless maxJobs or descriptions says otherwise | POST /v1/careers |
diff_pages | Deterministic structural change detection and redlines across two URLs or inline text snapshots with materiality scoring and SHA-256 attestation | POST /v1/diff |
parse_document | Parses PDF, DOCX, XLSX or PPTX into structured pages, typed blocks, tables, markdown and character citation offsets | POST /v1/parse |
verify_claim | Deterministically verifies a factual claim against supplied URLs or search discovery with verbatim evidence offsets | POST /v1/verify |
entity_dossier | Builds a live company alt-data dossier across web profile, ATS roles, IR releases, DNS/SaaS infra, SEC filings and news | POST /v1/entity |
enrich_grid | Evaluates a synchronous entities-by-columns enrichment matrix across entity, search, verify and official source strategies | POST /v1/grid |
discover_grid | Discovers and verifies up to 10 entities against explicit criteria with verbatim quotes and sha256: attestations under hard budget controls, with optional columns enrichment | POST /v1/grid |
investor_relations | Discovers Investor Relations presentations, earnings releases, financial reports, transcripts and webcasts | POST /v1/ir |
list_firehose_events | Reads normalized CISA KEV, Federal Register, FDA, Treasury, SEC 8-K, SC 13D and Form 4 event feeds | GET /v1/firehose/events |
capture_screenshot | Renders a page in Chromium and returns a PNG or JPEG screenshot | POST /v1/screenshot |
capture_pdf | Renders a page in Chromium to PDF with pageRanges, scale and printBackground controls | POST /v1/pdf |
list_linked_documents | Discovers or downloads PDF, DOCX, XLSX and PPTX files linked from a page | POST /v1/documents |
search_index | Ranked pages from Vitna's own web and vertical indexes (index), with domains, excludeDomains, maxAgeDays, startCrawlDate/endCrawlDate, includeText/excludeText phrase filters, asOf snapshot cutoff, ranking, effort, minScore semantic abstention, webFallback live-web SERP fusion, inline contents (including summary, extras, subpages/subpageTarget, and livecrawl), and one-call live scrape | POST /v1/search |
google_search | Google or Bing SERP results across web, news, images, videos, shopping, and local verticals (supporting SerpApi vertical engine aliases like bing_news, bing_images, google_news), in SerpApi's field names unless shape asks for Vitna's own | POST /v1/serp on the search service |
The source tools are listed only while sources are enabled, search_index and discover_grid only where a search engine is configured, and google_search only where the operator names a search service in VITNA_WEB_SERP_URL. read_page, batch_scrape, list_open_roles and the crawl tools ask for less than their routes do by default, because a whole page, job board or crawl can be more than a model should take in one result. A crawl tool's job deadline is the exception: it defaults to five minutes, where the route's defaults to one page's 30 seconds. extract_data does not offer the route's background mode; it waits for the result within the request deadline. Every tool is read-only except crawl_site and cancel_crawl, which start and stop a background crawl. A tool call is the REST request it stands for, sent with the caller's key, so it counts against the same request and page limits, is metered the same way (find_sources and describe_source are free, and a run_source call is one sourceRequests once it returns data), and appears in /v1/usage under the route's own operation.
google_search is the exception, because its route is not this service's. The call goes to the search service's POST /v1/serp with the caller's own org key, vitna_key_... (see one key), so the search service admits it, counts it against the org's search limits, applies its deadline, cache and fresh captures, and logs it, exactly as a direct request. It does not count against this service's request limit or appear in /v1/usage. A vitna_web_ key covers the Web APIs only and is not sent on: the tool answers platform_key_required.
Its arguments are SerpApi's, mapped onto the route's fields:
| Argument | Route field | Allowed values |
|---|---|---|
q | query | Required; 1 to 1,000 characters |
engine | engine | google (default), bing, or SerpApi vertical engine aliases (google_news, google_images, google_videos, google_shopping, google_local, bing_news, bing_images, bing_videos, bing_shopping, bing_local, bing_maps) |
type | type | web, news, images, videos, shopping, or local across Google and Bing (cannot accompany tbm) |
timeRange | timeRange | hour, day, week, month, or year across Google and Bing (cannot accompany tbs) |
gl | country | Two-letter country code, such as us |
hl | language | Language tag, such as en or pt-BR |
google_domain | googleDomain | Regional Google domain (e.g. google.co.uk, google.de); Google only |
location / uule | location / uule | Canonical location name or raw UULE token (mutually exclusive); Google only |
tbs / tbm | tbs / tbm | Google search filter (qdr:w) or vertical tab (nws, isch, vid, shop, lcl); Google only |
lr / cr / safe / nfpr / udm / filter / include_omitted | matching route fields | Standard Google/Bing SERP controls (safe works on both engines; others Google only) |
start | offset | 0 to 190; 0 unless given |
num | maxResults | 1 to 30; 10 unless given |
device | device | desktop (default) or mobile |
extras | extras | true adds answer box, knowledge graph, AI Overview, top stories, local results, People Also Ask, related searches, and ads |
no_cache | fresh | true captures a new page rather than reuse the key's recent answer |
shape | shape | serpapi unless given, or vitna for the route's default fields |
The result is the route's answer as structuredContent, in the shape described under SerpApi-shaped response. When Google does not answer and the search service hands the search to Bing, the result says so: meta.engine is bing, and in SerpApi's shape search_metadata gives bing_url instead of google_url. A search can take up to the search service's deadline, about a minute on the hosted service, so give the client's tool-call timeout at least that.
Results carry the route's response as structuredContent and as JSON text. When a route refuses a call, the tool result has isError: true and its text gives the route's code and message, such as invalid_options: options.title must be at most 50. or, for a rate limit, the number of seconds to wait. Arguments that break a tool's input schema are refused the same way, as invalid_arguments. An unknown tool or a malformed message is a JSON-RPC protocol error.
Protocol versions
The endpoint speaks protocol 2026-07-28 and the earlier 2025-11-25, 2025-06-18 and 2025-03-26, and keeps no session for any of them:
- A
2026-07-28request carriesio.modelcontextprotocol/protocolVersionandio.modelcontextprotocol/clientCapabilitiesinparams._meta, and mirrors its version, method and tool name into theMCP-Protocol-Version,Mcp-MethodandMcp-Nameheaders. A header that is missing or does not match the body is refused with-32020(400), missing metadata with-32602(400), and an unknown method with-32601(404).server/discoverreports the supported versions and the server's identity. - An earlier client opens with
initializeand is answered with the version it asked for, or2025-11-25when it asked for one this server does not speak. Later requests name the version inMCP-Protocol-Version; a request without the header is read as2025-03-26. NoMcp-Session-Idis issued, and one sent by the client is ignored. - A version the server does not speak is refused with
-32022(400), whosedata.supportedlists the versions it does.
Each POST carries one JSON-RPC message; batches are refused. Responses are always a single JSON object, never an SSE stream, so GET and DELETE answer 405. A request carrying an Origin header is refused with 403 unless the operator lists that origin in VITNA_WEB_MCP_ORIGINS (comma-separated), so only the browser origins the operator names can call it from a web page.
