Agent Toolkit
An MCP (Model Context Protocol) server that lets a coding agent (Claude Code, Cursor, or your own automated system) initiate and read back Nexiel Verify and Nexiel Age checks, and validate/generate Nexiel Invoice/ViDA e-invoices, without you writing any HTTP client code.
Hosted at agent-toolkit.nexiel.io. The tool list, response shapes and authentication model below describe the hosted server. Point an MCP-capable client at it with Step 2.
Scope: two different trust models in one server. The Verify/Age tools are a thin adapter: every call is forwarded, as-is, to the Verify API's REST endpoints, authenticated with your own API key. The Invoice/ViDA tools are different: they run the Nexiel Invoice EN 16931 validator and serializers and the sandbox-only Peppol transport layer directly, take no bearer token at all, and cannot issue, persist, or look up the status of a real invoice (see "Nexiel Invoice / ViDA tools" below). This toolkit never touches Nexiel Screen or Nexiel MiCA, and never exposes a way to resolve or clear a POSSIBLE_MATCH result: the EU AI Act human-in-the-loop requirement always applies, with no automation shortcut.
The one thing worth understanding before you use this
The Agent Toolkit MCP server holds no credentials of its own. It does not store an API key, does not have elevated access, and does not decide what a caller is allowed to do. Every single tool call carries forward the Authorization: Bearer token you supplied when you pointed your MCP client at it, and Nexiel Verify, not this server, makes the authorization decision on every request, with the token checked for revocation each time.
What an agent can do is decided by your API key's scope, checked on Nexiel's server on every call, never by which tools happen to be registered on the MCP server your agent talks to. A modified MCP client cannot reach a route its key does not allow.
Step 1: get a restricted (agent-readonly) key
On your dashboard's API Keys page, choose product Nexiel Verify and select scope Agent read-only. A live key needs approved business verification (KYB) (see Going live). This restricts the key to session-creation and read-only routes. It can never reach the EUDI wallet callback, regardless of what any MCP tool tries to do. The dashboard shows the new credentials once:
client_id: nx-live-acme-corp-agent-key-<ts>
client_secret: ...
token_endpoint: https://auth.nexiel.io/realms/nexiel/protocol/openid-connect/tokenStore the secret now. It is never shown again. The key also appears in your key list going forward, labeled agent-readonly under its product, so you can confirm its scope or revoke it at any time.
Exchange the key for a short-lived access token as shown in Authentication, and keep it in NEXIEL_ACCESS_TOKEN. The token, never the client secret, goes in the Authorization header.
Step 2: point an MCP-capable coding agent at the server
Configuring an MCP-capable agent against agent-toolkit.nexiel.io is a one-time step with nothing to install. For Claude Code's (or any compatible client's) MCP config:
{
"mcpServers": {
"nexiel-agent-toolkit": {
"type": "http",
"url": "https://agent-toolkit.nexiel.io/mcp",
"headers": {
"Authorization": "Bearer ${NEXIEL_ACCESS_TOKEN}"
}
}
}
}NEXIEL_ACCESS_TOKEN is the access token from Step 1. Your MCP client reads it from your own environment and sends it as a bearer header on every call. The server is stateless per request and identifies you entirely from that token. Access tokens last 300 seconds, so mint a fresh one when calls start returning 401.
Step 3: calling a tool
A coding agent calls create_age_verification_session the same way it calls any MCP tool: an initialize handshake, a tools/list, then the tool call itself. The response mirrors exactly what Nexiel Verify's own POST /v1/verify/sessions returns. The example below shows the shape of that response:
{
"sessionId": "e3c79f37-9914-4d8b-a64a-621ebe04b8d8",
"templateVersion": "age-verification@3",
"livemode": false,
"clientId": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"requestUri": "https://compliance.nexiel.io/v1/verify/sessions/e3c79f37-9914-4d8b-a64a-621ebe04b8d8/request-object",
"flow": "cross_device",
"profile": "haip",
"sessionToken": "Yq3nW0vR8tLx...(truncated, 43 chars)",
"authorizationRequest": {
"client_id": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
"response_type": "vp_token",
"response_mode": "direct_post.jwt",
"response_uri": "https://compliance.nexiel.io/v1/verify/sessions/e3c79f37-9914-4d8b-a64a-621ebe04b8d8/responses",
"nonce": "zBXjdv3b8dtgS1YcR8PraBCGsCZW4ohW9WrB3c70v9w",
"state": "B2tR6-36jnY9as2QLzPdpDqErgVOtwjd5JOsK-q_6HQ",
"dcql_query": {
"credentials": [
{
"id": "av_age_over_18",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.av.1"
},
"claims": [
{
"path": [
"eu.europa.ec.av.1",
"age_over_18"
]
}
]
},
{
"id": "pid_birthdate",
"format": "dc+sd-jwt",
"meta": {
"vct_values": [
"urn:eudi:pid:1",
"urn:eudi:pid:de:1"
]
},
"claims": [
{
"path": [
"birthdate"
]
}
]
},
{
"id": "pid_birthdate_mdoc",
"format": "mso_mdoc",
"meta": {
"doctype_value": "eu.europa.ec.eudi.pid.1"
},
"claims": [
{
"path": [
"eu.europa.ec.eudi.pid.1",
"birth_date"
]
}
]
}
],
"credential_sets": [
{
"options": [
[
"av_age_over_18"
],
[
"pid_birthdate"
],
[
"pid_birthdate_mdoc"
]
],
"required": true
}
]
},
"client_metadata": {
"jwks": {
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "kqYdLbmVZ0n7...(truncated)",
"y": "cU2k2Zp7z5oq...(truncated)",
"kid": "6f1c2e0a-4b7d-4f8e-9a3c-2d1e0f9b8a7c",
"use": "enc",
"alg": "ECDH-ES"
}
]
},
"encrypted_response_enc_values_supported": [
"A128GCM",
"A256GCM"
],
"vp_formats_supported": "...(truncated)"
},
"verifier_info": [
{
"format": "registration_cert",
"data": "eyJ0eXAiOiJyYy13cnArand0Ii...(truncated)"
}
]
},
"authorizationRequestUri": "openid4vp://?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2Fe3c79f37-9914-4d8b-a64a-621ebe04b8d8%2Frequest-object&request_uri_method=post",
"dcApi": null,
"expiresAt": "2026-07-05T14:49:53.884Z",
"hostedUrl": "https://compliance.nexiel.io/v1/verify/hosted/e3c79f37-9914-4d8b-a64a-621ebe04b8d8#token=Yq3nW0vR8tLx...",
"sandboxWalletUrl": "https://sandbox.nexiel.io/present?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2Fe3c79f37-9914-4d8b-a64a-621ebe04b8d8%2Frequest-object&request_uri_method=post",
"metadata": {},
"transactionData": []
}Reading it back with get_verification_session, called immediately after creation:
{
"sessionId": "e3c79f37-9914-4d8b-a64a-621ebe04b8d8",
"clientId": "nx-live-acme-corp-agent-key-<ts>",
"checkType": "age-verification",
"templateVersion": "age-verification@3",
"status": "pending",
"createdAt": "2026-07-05T14:39:53.884Z",
"expiresAt": "2026-07-05T14:49:53.884Z",
"decision": null
}clientId above is the client id of the key behind the bearer token, not a value you supply, which confirms the call is authorized by your own key. Once a wallet completes the session (see verification sessions), the same tool call returns status: "completed" with the decision, including the frozen decision artifact.
Idempotency
Both create_verification_session and create_age_verification_session accept an optional idempotencyKey. If you do not supply one, the tool generates one for you. An agent retrying a tool call after a network error can never start two sessions for what was meant to be one request. See Idempotency.
Nexiel Invoice / ViDA tools
Four tools: validate_en16931_invoice, generate_en16931_invoice_document, submit_invoice_to_sandbox_peppol, and check_peppol_participant_can_receive. They run the Nexiel Invoice 32-rule EN 16931 validator, its UBL and CII serializers, and its sandbox Peppol transport directly. No Authorization header is read or required for any of them.
What these tools are not. Nexiel Invoice does not have a bearer-token-authenticated API yet, so there is no issue_invoice, no list_invoices, and no invoice-status tool here. This is on our roadmap. These four tools give you the same EN 16931 compliance engine (validate and generate) and sandbox Peppol transport the dashboard issuing flow uses, without persistence. submit_invoice_to_sandbox_peppol's network field is always "sandbox", and nothing it submits is stored where a later call, or the dashboard, could look it up.
Reference
See the full tool reference: every tool, its parameters, its response shape, and an explicit PII/human-review (or, for the Invoice tools, persistence-scope) callout for each.