How it works
1
Authorize
Your users connect their accounts via Nango’s auth flow. Nango stores and refreshes credentials automatically.
2
Expose tools
Each Nango Action becomes a callable tool. You can use prebuilt templates or write your own — they run in Nango’s sandboxed runtime.
3
Call tools
Your agent invokes Nango-hosted Actions via
nango.triggerAction() or through Nango’s MCP server. Nango authenticates each request and returns the result.4
Observe and optimize
Every tool call is logged in Nango’s observability dashboard. Monitor performance, inspect errors, and track usage per connection.
When to use Nango for tool calling
Use Nango whenever your AI needs to take action in the real world:- An AI agent creates or updates a CRM opportunity on behalf of a user.
- A chatbot fetches live context from Notion, Linear, or HubSpot.
- An LLM workflow runs automations: “schedule a meeting”, “create a task”, “send a message”.
Key capabilities
Framework-agnostic
Works with OpenAI Agents SDK, Anthropic SDK, Vercel AI SDK, LangChain, LlamaIndex, Mastra, Google SDK, and any framework that supports tool calling.
Managed auth
Nango handles OAuth, API keys, and token refresh. Surface connect links directly in your chat UI for user-driven authorization.
800+ prebuilt tools
Use prebuilt action templates for common tools across 700+ APIs, or write your own custom Actions for full control.
MCP-compatible
Expose all your integrations through Nango’s built-in MCP server. Also supports connecting to existing official MCP servers (Notion, Linear, etc.) with Nango’s auth.
Framework examples
- OpenAI SDK
- Anthropic SDK
- Vercel AI SDK
- LangChain
Install the dependencies:The following example checks whether a user has authorized HubSpot, prompts them to connect if not, then lets the OpenAI model call the
who_am_i tool via Nango:MCP server
Nango has a built-in MCP (Model Context Protocol) server that exposes all your integrations as MCP tools. Any MCP-compatible client — Claude Desktop, Cursor, or a custom agent — can connect to it. With the Nango MCP server you can:- Expose any Nango Action as an MCP tool automatically.
- Connect to existing official MCP servers (Notion, Linear, etc.) using Nango’s managed auth.
- Let users authorize APIs directly through your MCP-connected interface.
See the MCP server implementation guide for setup instructions, including how to generate a server URL scoped to a specific connection.
Auth for tool calling
Nango manages all credential storage and refresh. For user-facing agents, you can embed an auth flow directly in your chat UI:triggerAction call uses that connection’s credentials automatically — no token management in your agent code.