KYA Brasil MCP
Provides an MCP endpoint for verifying and managing AI agent mandates backed by Brazilian e-CNPJ signatures. It allows agents to register, prove credentials, sign links, check principal matches, and verify agent status offline using Ed25519 signatures, with optional paid verification via x402.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://kya-br-agents.marcelfons.workers.dev/mcpWhat its tools do
15 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (9)
Can change data (1)
Not annotated (5)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
What you can do with it
- Verify an AI agent's credential from a terminal
- Register a new agent with a company mandate
- Check if an agent is allowed to perform a specific action
- Revoke an agent's mandate immediately
Source and maintenance
Protocol and capabilities
- Server
- KYA Brasil 0.12.2
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 15 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Tools
15 advertised
kya_register
Register an AI agent for a Brazilian company: agent key (EVM address or Web Bot Auth Ed25519 key), CNPJ and a mandate (JSON, validated against /.well-known/kya-mandate.schema.json). Returns a one-time challenge the agent signs with its key and the company signs with its e-CNPJ (CMS/PKCS#7). Price covers the checks at issuance.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"agent",
"mandate"
],
"properties": {
"cnpj": {
"type": "string",
"maxLength": 18,
"minLength": 14,
"description": "The company's CNPJ (company agents). Leave out with principal \"person\"."
},
"agent": {
"type": "object",
"required": [
"kind",
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 160,
"minLength": 20,
"description": "0x address for evm; base64url raw Ed25519 public key for web-bot-auth; eip155:<chainId>:<identityRegistry>:<agentId> for erc8004."
},
"kind": {
"enum": [
"evm",
"web-bot-auth",
"erc8004"
],
"type": "string",
"description": "evm: an Ethereum-style wallet (EIP-191 signatures). web-bot-auth: an Ed25519 key (RFC 9421 / Web Bot Auth). erc8004: an agent registered in an ERC-8004 Identity Registry; its on-chain agentWallet signs."
}
}
},
"mandate": {
"type": "object",
"description": "Mandate JSON validated by https://kya-br-agents.marcelfons.workers.dev/.well-known/kya-mandate.schema.json. Reserved fields: actions, max_per_operation, max_per_day, currencies, counterparties, valid_from, valid_until.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"principal": {
"enum": [
"company",
"person"
],
"type": "string",
"description": "\"person\": the agent acts for a natural person who signs with an e-CPF (no CNPJ; no name or CPF is ever published)."
}
}
}{
"openWorldHint": true
}kya_verify_paid
Same as the free verification, without daily limit, plus a signed receipt of the verification itself (what was checked, when). Pay per call with x402.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id"
],
"properties": {
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_check_action
Signed verdict: is this action (action, amount, currency, counterparty, payment instrument) inside the agent's mandate and is the credential active? Evaluates the reserved mandate fields; lists the fields it did not evaluate.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id"
],
"properties": {
"action": {
"type": "string",
"maxLength": 64,
"description": "Action the agent wants to perform (e.g. pay, order, sign)."
},
"amount": {
"type": "number",
"minimum": 0
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "BRL, USDC, ..."
},
"spent_today": {
"type": "number",
"minimum": 0,
"description": "What this agent already spent today, if you track it (used for max_per_day)."
},
"counterparty": {
"type": "string",
"maxLength": 128,
"description": "CNPJ, domain or wallet address of the other side."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
},
"payment_network": {
"type": "string",
"maxLength": 32,
"description": "Payment network or rail of this operation: visa, mastercard, elo, pix, ..."
},
"payment_ref_sha256": {
"type": "string",
"pattern": "^[0-9a-fA-F]{64}$",
"description": "SHA-256 hex of the payment token reference or PAR used (never a card number); checked against mandate.payment_instruments."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_renew
Re-issue the credential for 90 more days. The company signs the renewal challenge with an e-CNPJ in force (not revoked); the company must still be ATIVA at the Receita.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id"
],
"properties": {
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
}
}
}{
"openWorldHint": true
}kya_prove
Free. Send both signatures of the challenge. The e-CNPJ chain is validated against ICP-Brasil roots, the CNPJ must match, the certificate must not be revoked (CRL) and the company must be ATIVA; then the credential is issued (90 days, Ed25519-signed).
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id",
"challenge_id",
"agent_signature",
"ecnpj_signature"
],
"properties": {
"challenge_id": {
"type": "string",
"description": "challenge.id from kya_register (or kya_renew)."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
},
"agent_signature": {
"type": "string",
"description": "Signature of challenge.text by the agent key: EIP-191 personal_sign hex (evm) or raw Ed25519 base64url (web-bot-auth)."
},
"ecnpj_signature": {
"type": "string",
"description": "CMS/PKCS#7 SignedData (detached, base64 DER) of challenge.text, signed with the company's e-CNPJ certificate."
}
}
}{
"openWorldHint": true
}kya_principal_match
Signed answer ($0.01) for a person's agent (principal.kind person): does the CPF you already have match the e-CPF holder behind it? On a match, a subject_ref of your own for that person (stable for you, different for every verifier). The CPF is never stored, published or revealed; 3 non-matching answers per credential stop your checks. The person sees every check.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id",
"cpf"
],
"properties": {
"cpf": {
"type": "string",
"maxLength": 14,
"minLength": 11,
"description": "The CPF you already have for this person; used for the comparison only, never stored."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_person_agents
Free, person only: every live credential behind your e-CPF and every CPF check made against each one. Sign "KYA Brasil: my agents\nat: <ISO time>" with the e-CPF (valid 10 minutes).
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"signed_text",
"ecpf_signature"
],
"properties": {
"signed_text": {
"type": "string",
"description": "\"KYA Brasil: my agents\\nat: <ISO time>\""
},
"ecpf_signature": {
"type": "string",
"description": "CMS/PKCS#7 of signed_text with the person's e-CPF, base64 DER."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_sign_link
Free. Link for whoever holds the company's e-CNPJ (owner, accountant): give challenge_id and the agent's signature, get the /sign URL. They see agent, company and mandate and sign in the browser (A1 .pfx) or with any ICP-Brasil signer (A3 token, cloud), or run kya-sign (npm @kya-brasil/agent-tools) with the link. The issuer never sees the certificate.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id",
"challenge_id"
],
"properties": {
"challenge_id": {
"type": "string",
"description": "challenge.id from kya_register or kya_renew."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
},
"agent_signature": {
"type": "string",
"maxLength": 600,
"description": "The agent's signature of challenge.text, so the person only signs with the e-CNPJ."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_verify
Free (50/day per IP). The agent's current credential: principal company, mandate, status (active, suspended, revoked, expired) and signature. Also by key: /v1/agents/by-key?kind=&id=.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"agent": {
"type": "object",
"required": [
"kind",
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 160,
"minLength": 20,
"description": "0x address for evm; base64url raw Ed25519 public key for web-bot-auth; eip155:<chainId>:<identityRegistry>:<agentId> for erc8004."
},
"kind": {
"enum": [
"evm",
"web-bot-auth",
"erc8004"
],
"type": "string",
"description": "evm: an Ethereum-style wallet (EIP-191 signatures). web-bot-auth: an Ed25519 key (RFC 9421 / Web Bot Auth). erc8004: an agent registered in an ERC-8004 Identity Registry; its on-chain agentWallet signs."
}
},
"description": "Alternative to credential_id: look up active credentials by agent key."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_renew_prove
Free. Second step of kya_renew: send both signatures of the renewal challenge; the credential is re-issued for 90 days if the e-CNPJ is not revoked and the company is still ATIVA.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id",
"challenge_id",
"agent_signature",
"ecnpj_signature"
],
"properties": {
"challenge_id": {
"type": "string",
"description": "challenge.id from kya_register (or kya_renew)."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
},
"agent_signature": {
"type": "string",
"description": "Signature of challenge.text by the agent key: EIP-191 personal_sign hex (evm) or raw Ed25519 base64url (web-bot-auth)."
},
"ecnpj_signature": {
"type": "string",
"description": "CMS/PKCS#7 SignedData (detached, base64 DER) of challenge.text, signed with the company's e-CNPJ certificate."
}
}
}{
"openWorldHint": true
}kya_revoke
Free. The company revokes the credential at once (e-CNPJ-signed request). Revocations are listed at /v1/revocations.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"credential_id",
"signed_text",
"ecnpj_signature"
],
"properties": {
"reason": {
"type": "string",
"maxLength": 200
},
"signed_text": {
"type": "string",
"description": "Exactly \"KYA Brasil: revoke <credential_id>\" followed by a newline and a nonce of your choice."
},
"credential_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "credential_id returned by kya_register."
},
"ecnpj_signature": {
"type": "string",
"description": "CMS/PKCS#7 SignedData (detached, base64 DER) of signed_text with the company's e-CNPJ."
}
}
}{
"openWorldHint": true,
"destructiveHint": true
}kya_company_agents
Free, company only. Every credential ever registered for your CNPJ, any status, whoever held the certificate (an accountant, another employee). Request signed with your e-CNPJ over "KYA Brasil: agents <cnpj>" + "at: <ISO time>".
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"cnpj",
"signed_text",
"ecnpj_signature"
],
"properties": {
"cnpj": {
"type": "string",
"maxLength": 20,
"description": "The company's CNPJ."
},
"signed_text": {
"type": "string",
"maxLength": 1200,
"description": "\"KYA Brasil: <agents|webhook> <cnpj>\", for the webhook a \"url: <https url or ->\" line, then \"at: <ISO time>\" (within 10 minutes)."
},
"ecnpj_signature": {
"type": "string",
"description": "CMS/PKCS#7 SignedData of signed_text with the company's e-CNPJ, detached, base64 DER."
}
}
}{
"readOnlyHint": true,
"openWorldHint": true
}kya_company_webhook
Free, company only. Sets the https URL that receives signed events about your agents: credential issued, renewed, suspended, reinstated, revoked. Request signed with your e-CNPJ; url "-" removes it.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"cnpj",
"signed_text",
"ecnpj_signature"
],
"properties": {
"cnpj": {
"type": "string",
"maxLength": 20,
"description": "The company's CNPJ."
},
"signed_text": {
"type": "string",
"maxLength": 1200,
"description": "\"KYA Brasil: <agents|webhook> <cnpj>\", for the webhook a \"url: <https url or ->\" line, then \"at: <ISO time>\" (within 10 minutes)."
},
"ecnpj_signature": {
"type": "string",
"description": "CMS/PKCS#7 SignedData of signed_text with the company's e-CNPJ, detached, base64 DER."
}
}
}{
"openWorldHint": true,
"idempotentHint": true
}kya_revocations
Free. Credentials revoked since a date (default: last 30 days), for verifiers that cache credentials.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"since": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
}
}{
"readOnlyHint": true,
"idempotentHint": true
}kya_about
Free. What KYA Brasil is, how the credential flow works, prices, and where the schemas and signing keys are.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}{
"readOnlyHint": true,
"idempotentHint": true
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 3199 ms
- 95th percentile latency
- 3549 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 3588 ms · 15 tool(s)
- · probe · passed · 2810 ms · metadata changed · 15 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http kya-brasil-mcp https://kya-br-agents.marcelfons.workers.dev/mcpCodex
codex mcp add kya-brasil-mcp --url https://kya-br-agents.marcelfons.workers.dev/mcpCursor
{
"mcpServers": {
"kya-brasil-mcp": {
"url": "https://kya-br-agents.marcelfons.workers.dev/mcp"
}
}
}Cline
{
"mcpServers": {
"kya-brasil-mcp": {
"type": "streamableHttp",
"url": "https://kya-br-agents.marcelfons.workers.dev/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"kya-brasil-mcp": {
"type": "http",
"url": "https://kya-br-agents.marcelfons.workers.dev/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http kya-brasil-mcp https://kya-br-agents.marcelfons.workers.dev/mcpClaude Desktop
https://kya-br-agents.marcelfons.workers.dev/mcpWindsurf
{
"mcpServers": {
"kya-brasil-mcp": {
"serverUrl": "https://kya-br-agents.marcelfons.workers.dev/mcp"
}
}
}Let your agent find its tools
Find servers like KYA Brasil MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.