Skip to main content
Nordvec Docs

MCP

Connect an AI agent to your workspace knowledge base over the Model Context Protocol with an API key.

  • View as Markdown
  • View context pack

External assistants

These open a third-party AI service outside the EU. The link passes it this page's address, and anything you ask there is processed by that provider under its own terms.

Nordvec serves the Model Context Protocol (MCP), so an agent or an assistant that speaks MCP can discover your workspace's operations as tools and call them natively, without an OpenAPI document to reason about.

There are two servers:

ServerURLAuthWhat it exposes
Documentationhttps://nordvec.com/api/mcpnoneThese guides and the connector catalog, for an agent that is integrating with Nordvec
Knowledge basehttps://nordvec.com/api/v1/mcpAPI keyYour workspace's documents, search and ingestion: the same operations as the REST API

Both run in the EU, on the same infrastructure as the rest of the API.

Connecting a client

Point an MCP client at the knowledge-base server with your API key as a bearer token. Most clients take a configuration block like this one:

{
  "mcpServers": {
    "nordvec": {
      "url": "https://nordvec.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer nv_eu_live_your_api_key"
      }
    }
  }
}

The server is stateless Streamable HTTP: every message is one POST carrying one JSON-RPC request, and the answer comes back in the response body. There are no sessions to keep and no server-initiated stream, so a GET on the URL answers 405, and a POST whose Content-Type is not application/json answers 415 before the body is read.

Only an API key can use the knowledge-base server. A signed-in browser session is refused, and every tool needs the key scope the matching REST operation needs, so a key created for one job can do exactly that job through MCP too.

The server authenticates with a static bearer key and does not offer OAuth discovery. A client that lets you set request headers (coding agents, IDE extensions, the MCP Inspector in header mode) connects as shown above; a hosted client that only supports the OAuth authorization flow cannot connect yet.

A client that sends the MCP-Protocol-Version header is answered under that version when the server supports it (2025-06-18 and 2024-11-05) and refused with 400 when it does not, so a version mismatch is reported at the first message rather than as a malformed reply later.

Tools

The tools are derived from the REST API, one tool per operation an API key may call. A tool's name is the operation's contract path in snake case, with a segment that repeats the one before it dropped. The scope column is the API key scope the tool needs:

REST operationContract pathMCP toolScope
POST /documents/searchdocuments.searchdocuments_searchsearch:read
GET /documents/{id}documents.getdocuments_getsearch:read
POST /documents/batchdocuments.batchGetdocuments_batch_getsearch:read
GET /documents/listdocuments.listdocuments_listsearch:read
POST /documents/pushdocumentPush.pushdocument_pushindex:write
POST /documents/push/bulkdocumentPush.pushBulkdocument_push_bulkindex:write
POST /documents/push/permissionsdocumentPush.pushUpdatePermissionsdocument_push_update_permissionsindex:write
POST /documents/push/deletedocumentPush.pushDeletedocument_push_deleteindex:delete
GET /documents/push/statusdocumentPush.pushStatusdocument_push_statusindex:status
GET /documents/push/uploaddocumentPush.pushUploadStatusdocument_push_upload_statusindex:status
POST /documents/push/upload/restoredocumentPush.pushUploadRestoredocument_push_upload_restoreindex:write
GET /analytics/ingestionanalytics.ingestionanalytics_ingestionindex:status
GET /quota/embeddingquota.embeddingquota_embeddingquota:read
GET /analytics/usageanalytics.usageanalytics_usagequota:read
POST /tenant/audit-log/searchauditLog.listaudit_log_listaudit:read
GET /tenant/audit-log/catalogauditLog.catalogaudit_log_catalogaudit:read

tools/list is the authoritative catalog: it shows a key only the tools its scopes admit, and each tool's description names the scope it requires. A tool's inputSchema is the operation's request schema and, where the operation returns an object, its outputSchema is the response schema and results carry structuredContent alongside the JSON text.

Calling a tool the key's scopes do not admit answers with a tool error naming FORBIDDEN, the same refusal the REST route gives, so a client holding a cached listing from another key learns why rather than that the tool is missing.

Retrying a write

document_push and document_push_bulk take an optional idempotencyKey argument, so an agent or client that retries a push does not index the documents twice. Send one key per logical write, such as a UUID, and repeat the same key with the same arguments on every retry:

  • the same key with the same arguments within 24 hours returns the first call's result without running it again;
  • the same key with different arguments is refused: the tool result has isError: true and names UNPROCESSABLE_CONTENT;
  • a retry that arrives while the first call is still running is refused the same way, naming CONFLICT; retry it after a short delay.

A key is 1 to 256 printable ASCII characters and belongs to the API key that sent it: another API key using the same value runs its own write. A key used with the REST Idempotency-Key header is not shared with the MCP tool, so a tool call that reuses it is refused with UNPROCESSABLE_CONTENT. A call without the argument runs again every time, which is why these tools do not declare idempotentHint. The REST behaviour is described under retrying writes safely.

Limits and errors

A tool call draws on the same rate-limit bucket as the REST operation it corresponds to, and every other message on the endpoint's own bucket. The X-RateLimit-* headers, the 429 answer with its Retry-After, and the error envelope are the same as on the REST API, so a client that already handles them for REST handles them here.

A failed tool call returns an MCP tool result with isError: true whose text is the REST error body (code, message, data); validation failures carry the same fieldErrors shape the REST API returns. A JSON-RPC error is reserved for the protocol itself: an unparsable body, an unknown method, or a server fault.

Request bodies are capped at 1 MB, the same bound as the REST routes.

A first exchange

# Discover the tools your key can call
curl https://nordvec.com/api/v1/mcp \
  -H "Authorization: Bearer $NORDVEC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

# Search the workspace
curl https://nordvec.com/api/v1/mcp \
  -H "Authorization: Bearer $NORDVEC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"documents_search","arguments":{"query":"data retention policy"}}}'

The documentation server

The documentation server at /api/mcp needs no key. It offers list_guides, get_guide, search_docs and list_connectors, so an agent that is building an application on the API can read these guides directly. It is rate limited per IP like the other public endpoints.

Was this page helpful?

On this page