- AI and MCP
- Connect your agent
AI and MCP
Connect your agent
Set up the Treeunfe MCP in Claude, Claude Code, Cursor, VS Code, Codex, Gemini CLI, and other clients.
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
- Open Settings → Connectors.
- Click Add custom connector.
- Give it a name (for example,
Treeunfe) and paste the server address. - 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:
| Field | Value |
|---|---|
| URL | https://mcp.treeunfe.com.br/mcp |
| Transport | HTTP (Streamable HTTP) |
| Authentication | OAuth 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:readto look up,nfe:emitto issue).