Spedy NFS-e MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spedy NFS-e MCPIssue an NFS-e for order 12345 with integration ID ord-12345"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Spedy NFS-e MCP
An Invokta Action Engine that exposes Spedy NFS-e emission and status operations through an authenticated MCP Streamable HTTP endpoint.
The engine contains three capabilities:
nota-fiscal.emitir: creates and enqueues an NFS-e for asynchronous issue.nota-fiscal.consultar: reads the current status of one NFS-e.nota-fiscal.listar-nfse: lists NFS-e records with Spedy filters and pagination.
All capabilities require an authenticated principal. Spedy credentials remain server-side and are never accepted as MCP tool input.
First run
npm run check
npm run build
npm run mcp:httpThe included local configuration serves MCP at http://127.0.0.1:3400/mcp. Clients
authenticate via Better Auth OAuth 2.1 and send Authorization: Bearer <token>.
The committed .env.example and the ignored local .env contain mock values.
Configure BETTER_AUTH_URL and SPEDY_API_KEY before making real requests. The
default connector target is Spedy's sandbox; production is never selected
implicitly.
Related MCP server: Receita Federal NFS-e: Notas Recebidas MCP
Configuration
Variable | Purpose |
| Base URL of the Better Auth OAuth 2.1 authorization server (e.g. |
| (Optional) Shared secret for symmetric JWT verification. |
| (Optional) Custom JWKS endpoint for asymmetric token verification (defaults to |
| (Optional) Public MCP resource URL (defaults to |
| Server-side credential sent by the connector as |
| Spedy API origin, normally |
| Bind host; defaults to |
| Bind port; the local example uses |
Emission is asynchronous. A successful emitir-nfse result means Spedy
accepted and enqueued the request; use consultar-nfse or Spedy webhooks to
observe authorization or rejection. Always provide a stable integrationId
to make retries idempotent.
Project map
src/capabilities/owns domain actions and their input, output, access, and execution contracts.src/engine.tsregisters stable capability IDs and supplies engine-owned dependencies.src/direct.tsis the smallest executable smoke path.test/engine.test.tsproves behavior through the public engine boundary.AGENTS.mdrecords the project's non-negotiable architecture and delivery rules..agents/skills/develop-invokta-project/SKILL.mdgives compatible agents a complete change workflow.
Review the generated capabilities
Read
AGENTS.mdand the generated development skill.Add a failing engine-level test for the domain outcome you need.
Update or replace the module under
src/capabilities/, then register its literal capability ID insrc/engine.ts.Keep direct and generated adapter entry points on the same exported engine; do not duplicate the capability handler in an adapter.
Run
npm run check, then inspect the capability in the devtools before deploying it.
Develop interactively
npm run devtoolsBuilds the engine and starts the Invokta devtools, normally on http://localhost:4100/. Open the URL printed by the command to browse capabilities, invoke them from schema-seeded JSON through the execution path you select, follow the live invocation trace, switch test identities, and read the doctor report. Source changes rebuild and restart the hosted engine automatically.
Run the read-only devtools diagnostics with:
npm run devtools:doctorStart MCP HTTP
npm run build
npm run mcp:httpPackage the server and probe an existing endpoint with:
npm run deploy:package
npm run deploy:probe -- --url https://engine.example/mcpReview every generated capability's domain meaning and access rule before deployment.
This server cannot be deployed
Maintenance
Related MCP Connectors
Issue and manage Brazilian fiscal documents: NF-e for goods, NFS-e for services.
Brazilian fiscal MCP server - issue NF-e, NFC-e, NFS-e, CT-e, MDF-e and DC-e via SEFAZ.
Brazil NFS-e service invoices for AI agents via Focus NFe and NFe.io. Stateless, never stores data.
Issue and manage Brazilian service invoices (NFS-e) by chatting with your agent, platform-hosted, no
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAllows consultation of NFS-e (electronic service invoices) from the Brazilian Federal Revenue official source, with a single read-only tool.MIT
- AlicenseNot gradedqualityCmaintenanceQueries official Brazilian federal received electronic invoices (NFS-e) via a hosted, read-only MCP server with prepaid credits, requiring no platform credentials.MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying official electronic service invoice (NFS-e) data from the Recife city government through a read-only, hosted MCP server with pay-per-use prepaid credits.MIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only consultation of NFS-e (electronic service invoices) from the official source of the Farroupilha city hall. Works with any MCP client over HTTP.MIT