Kya Brasil

io.github.celfonsPublished by GitHub account celfonsv0.4.1Updated Oct 25, 2026

KYA backed by a real company: e-CNPJ-signed agent mandates, revocation-checked, signed verdicts

VerifiedStreamable HTTPWeb executableSecurity & MonitoringBusiness & Commerce

Overview

AI-generated overview

Remote MCP server for KYA Brasil that lets an assistant register, verify, renew and revoke Brazilian company-backed AI agent credentials signed with e-CNPJ.

What you can do
Register agents and complete the e-CNPJ signing flow for a Brazilian company, including sign links and proof submission, renewal and revocation of credentials, and company webhook setup and agent listings. Verify an agent's credential, status and mandate, and check whether a proposed action or amount falls inside the mandate. Match a person's CPF against the e-CPF holder behind an agent and list that person's live credentials. Read revocations since a date and get an overview of the service, prices and schemas.
When to use it
Use it when an assistant must act for a Brazilian company and needs a verifiable, revocable mandate tied to a real CNPJ, or when a verifier wants signed answers about an agent's credential, mandate scope or revocation status.
Requirements
A remote streamable HTTP endpoint; no local runtime, package or declared authentication. An EVM address or Web Bot Auth Ed25519 key for the agent, a CNPJ, and an e-CNPJ certificate held by the company (A1 file, A3 token or cloud signer) for signing challenges. Some tools are paid per call via x402.
Before you install
Several tools cost money per call, including paid verification and the principal match. Registration, renewal and revocation depend on e-CNPJ signatures and on the company being ATIVA at the Receita. Webhook setup stores a URL that receives signed events. CPF data is checked against e-CPF holders; the service states the CPF is not stored, published or revealed.

Installation

In SourceWeft

  1. Open Kya Brasil in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.celfons%2Fkya-brasil/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "kya-brasil": {
      "type": "http",
      "url": "https://kya-br-agents.marcelfons.workers.dev/mcp"
    }
  }
}

Tools

15

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.

Parameterscnpjagentrequiredmandaterequiredprincipal

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.

Parameterscredential_idrequired

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.

Parametersactionamountcurrencyspent_todaycounterpartycredential_idrequiredpayment_networkpayment_ref_sha256

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.

Parameterscredential_idrequired

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).

Parameterschallenge_idrequiredcredential_idrequiredagent_signaturerequiredecnpj_signaturerequired

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.

Parameterscpfrequiredcredential_idrequired

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).

Parameterssigned_textrequiredecpf_signaturerequired

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=.

Parametersagentcredential_id

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.

Parameterschallenge_idrequiredcredential_idrequiredagent_signaturerequiredecnpj_signaturerequired

kya_revoke

Free. The company revokes the credential at once (e-CNPJ-signed request). Revocations are listed at /v1/revocations.

Parametersreasonsigned_textrequiredcredential_idrequiredecnpj_signaturerequired

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

Parameterscnpjrequiredsigned_textrequiredecnpj_signaturerequired

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.

Parameterscnpjrequiredsigned_textrequiredecnpj_signaturerequired

kya_revocations

Free. Credentials revoked since a date (default: last 30 days), for verifiers that cache credentials.

Parameterssince

kya_about

Free. What KYA Brasil is, how the credential flow works, prices, and where the schemas and signing keys are.

Takes no parameters.

Version history

2
  1. v0.4.1LatestOct 13, 2026
  2. v0.2.1Oct 13, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.