1. AI and MCP
  2. Connect your agent

In every client, the address is the same:

https://mcp.treeunfe.com.br/mcp

This address operates in production. See Environment.

On the first connection, the client opens the issuer-app sign-in page. Sign in with your account and authorize access. See Sign-in.

  • Claude (web and desktop)

  • Claude Code

  • Cursor

  • VS Code

  • Codex

  • Gemini CLI

  1. Open Settings → Connectors.
  2. Click Add custom connector.
  3. Give it a name (for example, Treeunfe) and paste the server address.
  4. Click Connect and sign in to the issuer app.

The Treeunfe tools show up in the conversation’s tools menu.

​
Other clients

Any client that supports remote MCP and OAuth sign-in works:

FieldValue
URLhttps://mcp.treeunfe.com.br/mcp
TransportHTTP (Streamable HTTP)
AuthenticationOAuth 2.1 with PKCE and dynamic client registration

The client discovers sign-in on its own, from the server’s 401 response.

​
Test the connection

Start with read-only requests:

List the Treeunfe tools you have available.
Is my company ready to issue NF-e? Check the checklist.

If the agent says it has no access, check:

  • that sign-in finished (in Claude Code, see /mcp);
  • that the company is active in the issuer app;
  • that you authorized the permissions for what you asked (nfe:read to look up, nfe:emit to issue).