# Awa Rails — API fiscal para agentes > PT-BR: Awa Rails é uma API fiscal para agentes de IA e automações, em beta fechado (early access). O objetivo é emitir e receber NF via API e MCP, com certificado digital. Hoje API, MCP e webhook de eventos estão em testes; recepção, ciência, manifestação e emissão reais estão em desenvolvimento e ainda não estão ativas. > EN: Awa Rails is a fiscal (Brazilian invoice, "nota fiscal") API for AI agents, in closed beta (early access). Goal: issue and receive invoices via API and MCP using a digital certificate. API, MCP and event webhook are in testing; real receiving, acknowledgment, manifestation and issuing are in development and NOT live yet. Status: closed beta, live at https://rails.awafinance.com (signup, API keys, MCP, webhook working; fiscal transport still mocked). Host: https://rails.awafinance.com. All fiscal results are currently mocked (mocked: true, no fiscal validity). Do not state that Awa Rails currently issues or receives real invoices. ## Live in closed beta, core working / No ar em beta fechado, núcleo funcionando - Cadastro, envio de certificado, chave de API, MCP, webhook, formulário de beta / signup, certificate upload, API key, MCP, webhook, beta form - Login sem senha (Google ou código por email): ainda em testes / passwordless login still in testing ## In development, not live / Em desenvolvimento, ainda não ativo - Recepção de notas, ciência automática, manifestação básica, emissão básica de NFS-e / receiving, automatic acknowledgment, basic manifestation, basic NFS-e issuing ## Product shape - Front-end mínimo: onboarding, configurações, cobrança, pagamentos, métricas de uso, chaves de API e MCP. Sem visualização de documentos fiscais. / Minimal UI; no fiscal-document viewer. - Beta gratuito, acesso com aprovação manual / Free beta, manual approval ## Links - [Landing](https://rails.awafinance.com/): visão geral e pedido de acesso antecipado / overview and early-access request - [Docs: Como emitir uma NF com um agente](https://rails.awafinance.com/docs/): guia e status / guide and status ## Notes - MCP endpoint: POST https://rails.awafinance.com/mcp. Streamable HTTP, stateless, JSON responses only. Auth header: Authorization: Bearer afk_... (API key from the web app). GET returns 405; unauthenticated POST returns 401. - MCP status: in testing. Verified with Claude Code against a local build of the same code; NOT yet called with a production key (no approved org in production yet). - Claude Code: claude mcp add --transport http awa-rails https://rails.awafinance.com/mcp --header "Authorization: Bearer afk_YOUR_KEY" - Generic client JSON (format only tested in Claude Code): {"mcpServers":{"awa-rails":{"url":"https://rails.awafinance.com/mcp","headers":{"Authorization":"Bearer afk_YOUR_KEY"}}}} - REST base: https://rails.awafinance.com/api/v1 (same Bearer key). NFS-e emission example: POST /api/v1/companies/{company_id}/emissions. Response is mocked: DPS built and signed but NOT transmitted to SEFIN; no fiscal validity. - Webhook: per-company https URL, headers Awa-Rails-Signature (t=,v1=) and Awa-Rails-Delivery; events nfe.received, nfe.manifested, nfe.full_xml_available, nfse.emitted, webhook.test. Reception is mocked. - Certificate security: the A1 certificate is stored encrypted (AES-256-GCM) and used only for your company's fiscal operations. Security details will be published before general availability. - Skill to teach agents the API and MCP: in preparation, not yet published. - Designed for agents such as Claude, GPT and Grok via MCP or API (intended use; not an announced partnership).