TOOL WIKI · TOOLS & PROTOCOLS

Nango

Provides authentication and integration capabilities for connecting agents to APIs.

Download example files Code + setup + checks in a ZIP
Jump to a section 10 sections

EXAMPLE USE CASE

Read an already connected account through an OAuth proxy

An agent application needs a stable capability interface or a user-bound connection before it can invoke an external operation.

Input
A trusted integration/connection mapping and server-side Nango key.
Expected output
Selected profile ID/login fields from the connected GitHub account.
  • Success check: With an existing GitHub connection, the proxy returns that connected account’s profile.
  • Try a failure: A revoked or wrong-user connection must stop the request rather than fall back to another account.

Example scope: Actual proxy request; the account connection must already exist and no account changes are made.

Official reference · Nango

WHAT IT ISIntegration and tool layer
WHERE IT FITSTools & protocols
SEE HOW THE SYSTEM FITS TOGETHERSELECT A COMPONENT
inputprocessresultcheckoutputCalling applicationTask + actorNangoIntegration and tool layerRemote capabilityTool, agent, or integrationPermission boundaryActor + resource checkBusiness operationRead or approved writeResult + auditEvidence for the next turn
  1. The agent host owns the task and the authenticated user context.

  2. Managing per-user service connections and tool access. Keep end-user connection scope separate from your application’s service identity.

  3. Discover a supported operation and validate its schema and version.

  4. The receiving service enforces identity, scopes, and resource authorization.

  5. Use timeouts and idempotency for operations that may be retried.

  6. Return the authoritative outcome and record the effective actor and operation.

    Result or stopping point
Nango

Managing per-user service connections and tool access. Keep end-user connection scope separate from your application’s service identity.

Follow the arrows, then select a component to inspect its responsibility. On mobile, downward arrows connect the next step; bent arrows identify branches and return paths. Select a destination to jump to that component.

When to consider it

  • Managing per-user service connections and tool access.

A design decision to make

  • Keep end-user connection scope separate from your application’s service identity.

Prerequisites and setup

  • A configured GitHub integration and an authorized test-user connection in Nango. The request reads the account profile and does not modify it.
Shell
python3 -m venv .venv
source .venv/bin/activate
pip install requests
export NANGO_SECRET_KEY="YOUR_KEY"
export NANGO_INTEGRATION_ID="YOUR_GITHUB_INTEGRATION_ID"
export NANGO_CONNECTION_ID="YOUR_TEST_USER_CONNECTION_ID"

Try a small integration

proxy.py

Python · proxy.py
import os
import requests

response = requests.get("https://api.nango.dev/proxy/user",timeout=15,
    headers={"Authorization":"Bearer "+os.environ["NANGO_SECRET_KEY"],
             "Provider-Config-Key":os.environ["NANGO_INTEGRATION_ID"],
             "Connection-Id":os.environ["NANGO_CONNECTION_ID"]})
response.raise_for_status()
profile = response.json()
print({"id":profile.get("id"),"login":profile.get("login")})

Run and check the result

Shell
python proxy.py
  • With an existing GitHub connection, the proxy returns that connected account’s profile.
  • The application calls Nango with its server secret; Nango supplies/refreshes the provider credentials.

Common failures

  • A transport acknowledgement is not task completion. Inspect error/terminal state and the actual returned artifact.
  • Do not retry external writes without a durable operation identifier and documented idempotency behavior.

Production decisions

  • Map external user, connection and session IDs from authenticated application state. Never let a model choose another user’s account.
  • Restrict available operations and require review for consequential writes. Record request, task, tool and idempotency identifiers across boundaries.
  • Treat raw proxy requests as a low-level capability: allowlist provider endpoints and methods, and apply per-connection authorization and rate limits.

Keep exploring

A governed tool layer with MCPSpecialists with a clear contract

Explore the same layer

Model Context ProtocolAgent2AgentFastMCPComposio

Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.