- AI and MCP
- Treeunfe MCP
AI and MCP
Treeunfe MCP
Connect Claude and other AI agents to your Enterprise account to issue and look up NF-e.
MCP (Model Context Protocol) is an open standard that lets AI agents — such as Claude, Cursor, VS Code Copilot, Codex and Gemini — use external tools. With the Enterprise MCP, an agent issues, looks up and cancels NF-e for the companies in your account from a natural-language request.
List the companies in the account. For organization ORGANIZATION_ID, issue a
sales NF-e for customer 12345678909, with 1 unit of product 6654.
Before sending, show me the company, the customer, the items and the total.
Server URL
https://mcp.enterprise.treeunfe.com.br/mcp
The server uses the HTTP (Streamable HTTP) transport.
Sign-in
The Enterprise MCP uses OAuth sign-in with the Enterprise account.
- You add the server address to your AI client.
- The client opens the Enterprise account sign-in.
- You sign in, name the integration, select the permissions and choose the environment:
HOMOLOGACAOorPRODUCAO. - The client stores the access and renews it on its own.
Each authorization creates a new Enterprise key, in the environment you chose. The agent uses that session for the whole account and sends the company’s organizationId on each operation.
Environment
The environment comes from the choice you make at sign-in.
HOMOLOGACAOissues invoices with no fiscal value (sandbox, homologação).PRODUCAOissues real invoices.
To test, authorize the agent in the sandbox. To go live, create another authorization in production.
A production authorization issues invoices with fiscal value. Ask the agent to show the company, the customer, the items and the amounts before sending.
Working safely with agents
- Require confirmation before issuing or cancelling. Set the client to ask for your approval before those tools.
- Select only the permissions that integration needs.
- Review connections. Each sign-in creates an integration. Disconnect the ones you no longer use.