Get started
01 / 01DocumentationCorpus · reference · markdown
DocumentationWeb APIs

Web API MCP server

Source

Connect coding agents and MCP clients to 25 Web API, research, extraction, official-source, and search tools over stateless Streamable HTTP.

text
POST /v1/mcp

The 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:

bash
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:

json
{ "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.

ToolWhat it doesRoute it calls
find_sourcesRanks source capabilities for a task, each with its input schema and a working examplePOST /v1/sources/find
describe_sourceA provider's contracts, or one capability's, with output schemas and termsGET /v1/sources/:provider
run_sourceCalls one capability and returns its data with its sourcePOST /v1/sources/run
read_pageReads 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 redactPOST /v1/read
batch_scrapeReads 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 errorsPOST /v1/batch
extract_dataPulls 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 resultPOST /v1/extract
map_siteA site's URLs from its links and optionally its sitemaps, without reading themPOST /v1/map
crawl_siteStarts 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 redactPOST /v1/crawl
get_crawlA crawl's status and a slice of its pages, 25 at a time and without their text unless includeContent asksGET /v1/jobs/:id
cancel_crawlStops a queued or running crawl; pages already read stay readableDELETE /v1/jobs/:id
research_webRuns bounded multi-page research across search hits or supplied urls, with optional followLinks and structured schema output; waits for the resultPOST /v1/research
list_open_rolesA 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 otherwisePOST /v1/careers
diff_pagesDeterministic structural change detection and redlines across two URLs or inline text snapshots with materiality scoring and SHA-256 attestationPOST /v1/diff
parse_documentParses PDF, DOCX, XLSX or PPTX into structured pages, typed blocks, tables, markdown and character citation offsetsPOST /v1/parse
verify_claimDeterministically verifies a factual claim against supplied URLs or search discovery with verbatim evidence offsetsPOST /v1/verify
entity_dossierBuilds a live company alt-data dossier across web profile, ATS roles, IR releases, DNS/SaaS infra, SEC filings and newsPOST /v1/entity
enrich_gridEvaluates a synchronous entities-by-columns enrichment matrix across entity, search, verify and official source strategiesPOST /v1/grid
discover_gridDiscovers and verifies up to 10 entities against explicit criteria with verbatim quotes and sha256: attestations under hard budget controls, with optional columns enrichmentPOST /v1/grid
investor_relationsDiscovers Investor Relations presentations, earnings releases, financial reports, transcripts and webcastsPOST /v1/ir
list_firehose_eventsReads normalized CISA KEV, Federal Register, FDA, Treasury, SEC 8-K, SC 13D and Form 4 event feedsGET /v1/firehose/events
capture_screenshotRenders a page in Chromium and returns a PNG or JPEG screenshotPOST /v1/screenshot
capture_pdfRenders a page in Chromium to PDF with pageRanges, scale and printBackground controlsPOST /v1/pdf
list_linked_documentsDiscovers or downloads PDF, DOCX, XLSX and PPTX files linked from a pagePOST /v1/documents
search_indexRanked 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 scrapePOST /v1/search
google_searchGoogle 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 ownPOST /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:

ArgumentRoute fieldAllowed values
qqueryRequired; 1 to 1,000 characters
engineenginegoogle (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)
typetypeweb, news, images, videos, shopping, or local across Google and Bing (cannot accompany tbm)
timeRangetimeRangehour, day, week, month, or year across Google and Bing (cannot accompany tbs)
glcountryTwo-letter country code, such as us
hllanguageLanguage tag, such as en or pt-BR
google_domaingoogleDomainRegional Google domain (e.g. google.co.uk, google.de); Google only
location / uulelocation / uuleCanonical location name or raw UULE token (mutually exclusive); Google only
tbs / tbmtbs / tbmGoogle search filter (qdr:w) or vertical tab (nws, isch, vid, shop, lcl); Google only
lr / cr / safe / nfpr / udm / filter / include_omittedmatching route fieldsStandard Google/Bing SERP controls (safe works on both engines; others Google only)
startoffset0 to 190; 0 unless given
nummaxResults1 to 30; 10 unless given
devicedevicedesktop (default) or mobile
extrasextrastrue adds answer box, knowledge graph, AI Overview, top stories, local results, People Also Ask, related searches, and ads
no_cachefreshtrue captures a new page rather than reuse the key's recent answer
shapeshapeserpapi 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-28 request carries io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities in params._meta, and mirrors its version, method and tool name into the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers. 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/discover reports the supported versions and the server's identity.
  • An earlier client opens with initialize and is answered with the version it asked for, or 2025-11-25 when it asked for one this server does not speak. Later requests name the version in MCP-Protocol-Version; a request without the header is read as 2025-03-26. No Mcp-Session-Id is issued, and one sent by the client is ignored.
  • A version the server does not speak is refused with -32022 (400), whose data.supported lists 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.